{"id":18287762,"url":"https://github.com/csunny/algorithm","last_synced_at":"2025-09-06T07:32:16.946Z","repository":{"id":144260423,"uuid":"144861214","full_name":"csunny/algorithm","owner":"csunny","description":"Python3数据结构与算法、实现常用算法以及分布式系统相关算法。","archived":false,"fork":false,"pushed_at":"2025-03-30T11:06:29.000Z","size":3306,"stargazers_count":50,"open_issues_count":1,"forks_count":47,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-19T23:06:39.912Z","etag":null,"topics":["algorithm","data-structures","distrubuted","graph","heap","python3","tree-structure"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/csunny.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-08-15T14:08:26.000Z","updated_at":"2025-03-30T11:06:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"9724341b-5d98-403e-b95b-726c908b3ab9","html_url":"https://github.com/csunny/algorithm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/csunny/algorithm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csunny%2Falgorithm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csunny%2Falgorithm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csunny%2Falgorithm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csunny%2Falgorithm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csunny","download_url":"https://codeload.github.com/csunny/algorithm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csunny%2Falgorithm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273873372,"owners_count":25183363,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["algorithm","data-structures","distrubuted","graph","heap","python3","tree-structure"],"created_at":"2024-11-05T13:28:57.890Z","updated_at":"2025-09-06T07:32:16.936Z","avatar_url":"https://github.com/csunny.png","language":"Python","readme":"## Python 数据结构与算法实现\n\nimpletement data-structure and algorithm with python\n\n随着人工智能、区块链等技术的进步与发展。数据结构与算法显得越来越重要。全球顶尖的工程师。正在利用算法重构整个世界。\n不管是以人工智能为代表的生产力的技术，还是以区块链为代表的生产关系的技术，算法都正在扮演着非常重要的作用。作为一个\n技术信仰者，我其实特别期待。期待人工智能跟区块链碰撞、融合的那一天。期待虚拟世界与现实世界打通的那一天，或许这一天离\n我们还很遥远，但这一切都正在发生。\n\n当下，人工智能、区块链、IOT、生物科技等技术正在以融合的姿态进入到我们大众的视野。区块链技术的出现，在一定程度给了我们\n一个美好的愿望，让我们看到了这一切融合的可能，看到了物理世界与虚拟世界融合的可能。当然，就当下来说，这一切都才刚刚开始，\n未来还有很长的路要走。所以在这里我希望尽我所能，做一点有意义的事情，希望更多的人加入进来，希望这一切能更快的到来。\n\n爱她，就要让她像花儿一样绽放！\n\n![flower](https://github.com/csunny/algorithm/blob/master/images/bg.jpg)\n\n![flower](https://github.com/csunny/algorithm/blob/master/images/light.jpg)\n\n## 数据结构\n数据结构里面包含了基础的数据结构，比如列表、链表、队列、栈、堆、二叉树、图、哈希表等数据结构。\n\n- [列表](https://github.com/csunny/algorithm/blob/master/common/reverse_list.py)\n- [链表](https://github.com/csunny/algorithm/blob/master/linklist/base.py)\n- [队列](https://github.com/csunny/algorithm/blob/master/mqueue/base.py)\n- [栈](https://github.com/csunny/algorithm/blob/master/stack/base.py)\n- [树](https://github.com/csunny/algorithm/tree/master/tree) \n    - [二叉搜索树](https://github.com/csunny/algorithm/blob/master/tree/binary_search_tree.py)     \n    - [btree](https://github.com/csunny/algorithm/blob/master/tree/b_tree.py)\n    - [红黑树](https://github.com/csunny/algorithm/blob/master/tree/red_black_tree.py)\n- [图](https://github.com/csunny/algorithm/tree/master/graph)\n    - [无向图]()\n    - [DAG]()\n- [堆](https://github.com/csunny/algorithm/tree/master/heap)\n- [哈希表](https://github.com/csunny/algorithm/tree/master/hashtable)\n\n\n## 算法\n- 排序算法\n    - [快速排序](https://github.com/csunny/algorithm/blob/master/algorithm/quick_sort.py)\n    - [冒泡排序](https://github.com/csunny/algorithm/blob/master/algorithm/bubble_sort.py)\n    - [归并排序](https://github.com/csunny/algorithm/blob/master/algorithm/merge_sort.py)\n- 搜索算法\n    - [二分查找](https://github.com/csunny/algorithm/blob/master/algorithm/binary_search.py)\n    \n    \n- NP(贪婪算法)\n    - []()\n- DP(动态规划)\n    - []()\n    \n- 分布式算法\n    - [Raft](https://github.com/csunny/algorithm/tree/master/algorithm/distributed_system/raft.py)\n    - [Paxos](https://github.com/csunny/algorithm/tree/master/algorithm/distributed_system/paxos.py)\n    - [Pow](https://github.com/csunny/algorithm/tree/master/algorithm/distributed_system/pow.py)\n    - [Pos](https://github.com/csunny/algorithm/tree/master/algorithm/distributed_system/pos.py)\n    - [Dpos](https://github.com/csunny/algorithm/tree/master/nlp/transformer.py)\n    - [BPFT]()\n    - [MapReduce]()\n\n- 机器学习算法\n    - []()\n    \n- 深度学习算法\n    - [transformer](https://github.com/csunny/algorithm/tree/master/nlp/transformer.py)\n    - [alpaca-7b本地微调](https://github.com/csunny/algorithm/tree/master/llmodels/alpaca/finetune.py)\n\n\n- 强化学习\n    - [RL](./rl/README.md)\n    - [GRPO](./rl/grpo.py)\n\n## 文档\n[文档](https://github.com/csunny/algorithm/tree/master/docs/readme.md)\n\n## 贡献\nFork 此项目提交pull requests即可。欢迎大家加入Python数据结构与算法项目，贡献自己的一份力量。\n作为Pythoner加入进来吧，让python变得更美好！\n\n## Licence\nMIT License\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsunny%2Falgorithm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsunny%2Falgorithm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsunny%2Falgorithm/lists"}