This commit is contained in:
xiongraorao
2018-09-10 11:50:48 +08:00
parent 5494c1d488
commit 23956d6bea
12 changed files with 318 additions and 2 deletions

View File

@ -6,4 +6,23 @@
# 堆排序的原理
- [图解排序算法(三)之堆排序](https://www.cnblogs.com/chengxiao/p/6129630.html)
- [图解排序算法(三)之堆排序](https://www.cnblogs.com/chengxiao/p/6129630.html)
# 求TOPk的问题
1. 使用小顶堆求Topk
2. 使用快速查找法找到第K大的元素剩下的一边就是topK
3. 全排序
# KMP算法
一种字符串查找算法
参考链接:
- [从头到尾彻底理解KMP](https://blog.csdn.net/v_july_v/article/details/7041827)
- [阮一峰讲解](http://www.ruanyifeng.com/blog/2013/05/Knuth%E2%80%93Morris%E2%80%93Pratt_algorithm.html)
# LRU实现
最小访问的算法实现