Algorithm
berniebooming
这个作者很懒,什么都没留下…
展开
-
Algorithm - Graph
Graph(unweighted) BFS: 1. First, the shortest path tree is only useful if BFS war performed with x as the root of the search. 2. Second, BFS gives the shortest path only if the graph is unweig...原创 2012-02-15 23:24:55 · 166 阅读 · 0 评论 -
Algorithm - 一种从properties中根据value找key的方法
Constraints: 1. relation of key and value is one-to-one, and both unique. 2. key and value is both String. public String getKey(String value) { if (ht == null) ht = new Hashtable<...2012-02-24 22:19:36 · 302 阅读 · 0 评论