Tony's Log

Algorithms, Distributed System, Machine Learning

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2015年4月27日

摘要: Simplied a DFS\BFS with minor modification.#include #include #include #include #include #include using namespace std;typedef vector> Matrix;typedef pa... 阅读全文
posted @ 2015-04-27 14:16 Tonix 阅读(544) 评论(0) 推荐(0)

摘要: Typical tree recursion works. The key is: ANY node can be treated as the root, since it is about edge, not about node. This simplifies things a lot.#i... 阅读全文
posted @ 2015-04-27 14:14 Tonix 阅读(236) 评论(0) 推荐(0)