慢慢充实吧。
对于bfs和dfs的选择:
bfs:
dfs:
二分枚举:
队列:
图论知识树:http://zh.wikipedia.org/wiki/Bellman-Ford%E7%AE%97%E6%B3%95