|
|
вернуться в форумHow to deal with this problem? Послано pyh119 10 дек 2006 19:49 I can not solve it,please tell me how to solve it,thank you!^_^ Re: How to deal with this problem? You can do this for all edges: 1 - delete edge 2 - find shortest way (Deikstra) between 2 vertex, which are connetcted with this edge 3 - insert edge This solution (O(N^4))pass time limits P.S. It may done in N^3 with Deikstra for each vertex I don't know how to do this :( Re: How to deal with this problem? Послано yzthz 17 мар 2009 07:37 Is there anything to do with Hamiltonian circuit ? Re: How to deal with this problem? Hamiltonian circuit for n=100 ?!?!?! We will die before your program will give us an answer :O Re: How to deal with this problem? Послано ile 10 апр 2010 01:11 Well... it's not always true that Hamiltonian related problems are NP completed. You can always use some heuristics that will reduce it to polynomial time... so don't be so marked ^^ Re: How to deal with this problem? Послано beta 20 дек 2012 19:56 Re: How to deal with this problem? Послано begi 27 ноя 2014 11:43 Thank you for the hint. |
|
|