Travelling salesman problem
(Mylib/Graph/travelling_salesman_problem.cpp)
Operations
-
travelling_salesman_problem(g, int src)
-
src
始点の全頂点を丁度一度だけ通る最小閉路の距離を返す。
- Time complexity $O(n^2 2^n)$
Requirements
Notes
Problems
References
Depends on
Verified with
Code
Back to top page