An open API service indexing awesome lists of open source software.

https://github.com/csunny/algorithm

Python3数据结构与算法、实现常用算法以及分布式系统相关算法。
https://github.com/csunny/algorithm

algorithm data-structures distrubuted graph heap python3 tree-structure

Last synced: about 1 month ago
JSON representation

Python3数据结构与算法、实现常用算法以及分布式系统相关算法。

Awesome Lists containing this project

README

          

## Python 数据结构与算法实现

impletement data-structure and algorithm with python

随着人工智能、区块链等技术的进步与发展。数据结构与算法显得越来越重要。全球顶尖的工程师。正在利用算法重构整个世界。
不管是以人工智能为代表的生产力的技术,还是以区块链为代表的生产关系的技术,算法都正在扮演着非常重要的作用。作为一个
技术信仰者,我其实特别期待。期待人工智能跟区块链碰撞、融合的那一天。期待虚拟世界与现实世界打通的那一天,或许这一天离
我们还很遥远,但这一切都正在发生。

当下,人工智能、区块链、IOT、生物科技等技术正在以融合的姿态进入到我们大众的视野。区块链技术的出现,在一定程度给了我们
一个美好的愿望,让我们看到了这一切融合的可能,看到了物理世界与虚拟世界融合的可能。当然,就当下来说,这一切都才刚刚开始,
未来还有很长的路要走。所以在这里我希望尽我所能,做一点有意义的事情,希望更多的人加入进来,希望这一切能更快的到来。

爱她,就要让她像花儿一样绽放!

![flower](https://github.com/csunny/algorithm/blob/master/images/bg.jpg)

![flower](https://github.com/csunny/algorithm/blob/master/images/light.jpg)

## 数据结构
数据结构里面包含了基础的数据结构,比如列表、链表、队列、栈、堆、二叉树、图、哈希表等数据结构。

- [列表](https://github.com/csunny/algorithm/blob/master/common/reverse_list.py)
- [链表](https://github.com/csunny/algorithm/blob/master/linklist/base.py)
- [队列](https://github.com/csunny/algorithm/blob/master/mqueue/base.py)
- [栈](https://github.com/csunny/algorithm/blob/master/stack/base.py)
- [树](https://github.com/csunny/algorithm/tree/master/tree)
- [二叉搜索树](https://github.com/csunny/algorithm/blob/master/tree/binary_search_tree.py)
- [btree](https://github.com/csunny/algorithm/blob/master/tree/b_tree.py)
- [红黑树](https://github.com/csunny/algorithm/blob/master/tree/red_black_tree.py)
- [图](https://github.com/csunny/algorithm/tree/master/graph)
- [无向图]()
- [DAG]()
- [堆](https://github.com/csunny/algorithm/tree/master/heap)
- [哈希表](https://github.com/csunny/algorithm/tree/master/hashtable)

## 算法
- 排序算法
- [快速排序](https://github.com/csunny/algorithm/blob/master/algorithm/quick_sort.py)
- [冒泡排序](https://github.com/csunny/algorithm/blob/master/algorithm/bubble_sort.py)
- [归并排序](https://github.com/csunny/algorithm/blob/master/algorithm/merge_sort.py)
- 搜索算法
- [二分查找](https://github.com/csunny/algorithm/blob/master/algorithm/binary_search.py)


- NP(贪婪算法)
- []()
- DP(动态规划)
- []()

- 分布式算法
- [Raft](https://github.com/csunny/algorithm/tree/master/algorithm/distributed_system/raft.py)
- [Paxos](https://github.com/csunny/algorithm/tree/master/algorithm/distributed_system/paxos.py)
- [Pow](https://github.com/csunny/algorithm/tree/master/algorithm/distributed_system/pow.py)
- [Pos](https://github.com/csunny/algorithm/tree/master/algorithm/distributed_system/pos.py)
- [Dpos](https://github.com/csunny/algorithm/tree/master/nlp/transformer.py)
- [BPFT]()
- [MapReduce]()

- 机器学习算法
- []()

- 深度学习算法
- [transformer](https://github.com/csunny/algorithm/tree/master/nlp/transformer.py)
- [alpaca-7b本地微调](https://github.com/csunny/algorithm/tree/master/llmodels/alpaca/finetune.py)

- 强化学习
- [RL](./rl/README.md)
- [GRPO](./rl/grpo.py)

## 文档
[文档](https://github.com/csunny/algorithm/tree/master/docs/readme.md)

## 贡献
Fork 此项目提交pull requests即可。欢迎大家加入Python数据结构与算法项目,贡献自己的一份力量。
作为Pythoner加入进来吧,让python变得更美好!

## Licence
MIT License