ENG  RUSTimus Online Judge
Online Judge
Задачи
Авторы
Соревнования
О системе
Часто задаваемые вопросы
Новости сайта
Форум
Ссылки
Архив задач
Отправить на проверку
Состояние проверки
Руководство
Регистрация
Исправить данные
Рейтинг авторов
Текущее соревнование
Расписание
Прошедшие соревнования
Правила
вернуться в форум

Обсуждение задачи 1063. Домино

I got Accepted, but who can tell me the best solution.
Послано Fu Dong 22 апр 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.
Послано 红尘可知三春暖,烟花一笑飒满天 14 май 2005 09:21
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.
Послано HuangWenHao 5 сен 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 писал(a) 22 апреля 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.
Послано Dark Templar 27 фев 2007 07:54
good
Re: I got Accepted, but who can tell me the best solution.
Послано svr 27 фев 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.
Послано Jerry 17 авг 2007 16:25
ASK FOR SOLUTION:
cpp_student@163.com
THX!:)
Re: I got Accepted, but who can tell me the best solution.
Послано Denis Koshman 1 авг 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.