|
|
back to boardIsn't this problem NP-complete ? Yes it is, just try a simple heuristhic and brute forze when size <=10 > DP solution for convex polygon... I think My accepted solution is DP (for all cases, no brute force search). The basic idea is that because all possible edges satisfy the triangle inequality, the optimal hamiltonian path cannot cross itself. Hence, because of the fact that all the vertices lie on a convex polygon, there is an implicit ordering of the points (what it is, I'll let you think) - lending itself to a tabular method (DP). Re: DP solution for convex polygon... I think Posted by XueMao 22 Mar 2003 16:32 I am sorry but I can hardly agree with you . this problem is obviously hamiltonian circuit . And it was proved to be a NP problem.so DP can not solve it . |
|
|