我找到一个github标星75.5k+star的仓库,把各种常见算法用python实现了,而且还有动图演示,非常值得推荐。(黄海广)
仓库说明
这个仓库用python语言实现了绝大部分算法,主要是用于教学目的,因此效率稍微低于工业界。
仓库地址:https://github.com/TheAlgorithms/Python
内容说明
包含了常见的算法的python实现,如二叉树、排序、查找等等。这些是算法工程师必须掌握的技能。
文件目录
冒泡排序
桶排序
快速排序
排序典型代码(这个是冒泡排序的代码):
总结
数据结构与算法设计怎么学?
免费的我推荐严蔚敏老师的数据结构课程,网上可以查到,用c语言实现,当年考博士时候学的就是这个。
收费的我推荐极客时间的《数据结构与算法之美》:http://gk.link/a/108GK ,内容挺全面,学了应该对算法有很大帮助。
算法的python实现推荐github上一个75.5k+star的仓库,把各种常见算法用python实现了,而且还有动图演示。
仓库地址:
https://github.com/TheAlgorithms/Python
如果网速太慢下载不下来,可以从我的百度云下载整站代码打包。
回复“20200605”获取下载地址。