https://github.com/Premiumlab/Python-for-Algorithms--Data-Structures--and-Interviews/blob/master/Graphs/Word%20Ladder%20Example%20Problem.ipynb BFS. W ...
分类:
其他好文 时间:
2017-07-12 19:57:02
阅读次数:
155
一致哈希算法(Consistent Hashing Algorithms)是一个分布式系统中经常使用的算法。传统的Hash算法当槽位(Slot)增减时,面临全部数据又一次部署的问题。而一致哈希算法确可以保证,仅仅须要移动K/n份数据(K为数据总量, n为槽位数量),且仅仅影响现有的当中一个槽位。这使 ...
分类:
编程语言 时间:
2017-07-08 13:24:52
阅读次数:
188
最近课堂上正在讲图论 先安利MIT课程:http://open.163.com/special/opencourse/algorithms.html 因为本人对图论的概念并不是很清楚,所以还是整理一下吧。 1.图论的基本概念 几种常见的图的分类: 完全图:n个顶点上的完全图是在每对不同顶点之间都恰有 ...
分类:
其他好文 时间:
2017-07-07 23:30:30
阅读次数:
295
因为在开始写这个博客之前,已经刷了100题了,所以现在还是有很多题目没有加进来,为了方便查找哪些没加进来,先列一个表可以比较清楚的查看,也方便给大家查找。如果有哪些题目的链接有错误,请大家留言和谅解,链多了会眼花。 ...
分类:
编程语言 时间:
2017-07-05 09:58:04
阅读次数:
210
写在前面整个项目都托管在了 Github 上:https://github.com/ikesnowy/Algorithms-4th-Edition-in-Csharp这一节内容可能会用到的库文件有 Geometry 和 Commercial,同样在 Github 上可以找到。善用 Ctrl + F ... ...
分类:
编程语言 时间:
2017-06-27 20:54:23
阅读次数:
276
many activities will use the same place, every activity ai has its' start time si and finish time fi.let the number of activities to be as many as pos ...
分类:
其他好文 时间:
2017-06-24 14:40:51
阅读次数:
263
选择排序就是对数组进行扫描,每次扫描找出最小的元素,并将其提到元素的前面。 动图 http://www.sorting-algorithms.com/animation/20/random-initial-order/selection-sort.gif 代码 public class Select ...
分类:
编程语言 时间:
2017-06-23 22:04:50
阅读次数:
238
一、算法思想: DBSCAN(Density-Based Spatial Clustering of Applications with Noise)是一个比较有代表性的基于密度的聚类算法。与划分和层次聚类方法不同,它将簇定义为密度相连的点的最大集合,能够把具有足够高密度的区域划分为簇,并可在噪声的 ...
分类:
数据库 时间:
2017-06-20 11:36:44
阅读次数:
236
glibc中的malloc实现: The main properties of the algorithms are:* For large (>= 512 bytes) requests, it is a pure best-fit allocator, with ties normally de ...
分类:
其他好文 时间:
2017-06-18 11:58:15
阅读次数:
239
Learning Rule learning rules, for a connectionist system, are algorithms or equations which govern changes in the weights of the connections in a netw ...
分类:
其他好文 时间:
2017-06-18 11:57:01
阅读次数:
134