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

Обсуждение задачи 1004. Экскурсия

pyh119 How to deal with this problem? [6] // Задача 1004. Экскурсия 10 дек 2006 19:49
I can not solve it,please tell me how to solve it,thank you!^_^
KIRILL(ArcSTU) Re: How to deal with this problem? // Задача 1004. Экскурсия 10 дек 2006 20:39
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 :(
yzthz Re: How to deal with this problem? [2] // Задача 1004. Экскурсия 17 мар 2009 07:37
Is there anything to do with Hamiltonian circuit ?
Roman Rubanenko Re: How to deal with this problem? [1] // Задача 1004. Экскурсия 9 апр 2010 22:26
Hamiltonian circuit for n=100 ?!?!?!
We will die before your program will give us an answer :O
ile Re: How to deal with this problem? // Задача 1004. Экскурсия 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 ^^