ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1063. Domino Puzzle

I got Accepted, but who can tell me the best solution.
Posted by Fu Dong 22 Apr 2005 17:34
830701 17:26:25
22 Apr 2005 Fu Dong 1063 Pascal Accepted
 0.015 149 KB

First, I connected all the blocks , then I used DFS to make a Eular_Graph and find the minimal cost.

I know this problem is a famous problem, maybe it is called "China post road problem", who can tell me the best solution to this problem.

I'm sorry, my English is so poor.
Re: I got Accepted, but who can tell me the best solution.
I think we could get a better answer through greed,the algorithm will be very fast then. But ... I got wa , I didn't know why.
Re: I got Accepted, but who can tell me the best solution.
Posted by HuangWenHao 5 Sep 2005 20:24
It is not called "China post road problem". In that problem road can't be add, you can use Eular Road to solve that problem, and I think you can also use it in this problem.
Fu Dong wrote 22 April 2005 17:34
830701 17:26:25
22 Apr 2005 Fu Dong 1063 Pascal Accepted
 0.015 149 KB

First, I connected all the blocks , then I used DFS to make a Eular_Graph and find the minimal cost.

I know this problem is a famous problem, maybe it is called "China post road problem", who can tell me the best solution to this problem.

I'm sorry, my English is so poor.
Re: I got Accepted, but who can tell me the best solution.
Posted by Dark Templar 27 Feb 2007 07:54
good
Re: I got Accepted, but who can tell me the best solution.
Posted by svr 27 Feb 2007 08:13
In China post road problem net is given but here
we are to build best euler net. I think that correct solution uses some sort of full search and belong to NP-problems. Thus main question- Are the problen of  NP type.
Re: I got Accepted, but who can tell me the best solution.
Posted by Jerry 17 Aug 2007 16:25
ASK FOR SOLUTION:
cpp_student@163.com
THX!:)
Re: I got Accepted, but who can tell me the best solution.
Posted by Denis Koshman 1 Aug 2008 15:28
Once you connect all components, you don't need to find an Euler cycle, just pick all odd-degree nodes sequentially, except for the last two (sorted ascendingly).

Anyway, the search for cheapest connection plan is recursive.