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

Обсуждение задачи 1399. Экономный директор

New problem is available to solve! 1399 "Economical Director" (-)
Послано Vladimir Yakovlev (USU) 31 дек 2006 01:12
Is it a joke? (+)
Послано Dmitry 'Diman_YES' Kovalioff 1 янв 2007 02:03
"Your program will pass a test if it produces an answer that is no worse than the answer produced by the jury’s program for the same data"

Does it mean, that the author can not prove his solution? Or (more over!) he does not know correct solution, and the tests are generated by brute force... Clarification is required.
Re: Is it a joke? (+)
Послано Furtuna Dan Emanuel 2 янв 2007 21:34
Yes, the hint is quite ambiguous and let's us understand that the author wants heuristic solutions.

So, I wonder, must our answer be optimal for an AC? Or just better then the author's solution?
If they have not a solution, they cannot check whether it is optimal or not :) (-)
Послано Dmitry 'Diman_YES' Kovalioff 2 янв 2007 23:25
Re: If they have not a solution, they cannot check whether it is optimal or not :) (-)
Послано it4.kp 3 янв 2007 00:27
Why not?
For example, you have a value of some hash function crypt() (MD5 or smth) and the problem is to find a key such that crypt(key) is as close to the given value as possible. Then optimality checking is trivial but solution is very hard :)
Re: Is it a joke? (+)
Послано Sandro (USU) 3 янв 2007 01:14
Jury has not optimal solutions for tests. Answers for tests are outputs of jury's program that passes TL and ML. Validator checks the correctness of your output and compares it to the jury's answer. So your answer should be just better then the jury's one.
"Better" or "not worse"? (+)
Послано Dmitry 'Diman_YES' Kovalioff 3 янв 2007 02:05
The problem is really novel. If one cannot solve a problem, he may just add it to Timus, I will think about it ;)

Edited by author 03.01.2007 02:06
I tell about this very problem only (+)
Послано Dmitry 'Diman_YES' Kovalioff 3 янв 2007 02:21
md5() is unidirectional, and this problem's effectiveness function is not. I think that to check the optimality is not easier than to find a solution (both problems seem to be NP, although I may be mistaken).
Some words about this problem.
Послано Sandro (USU) 3 янв 2007 02:25
The problem is obvious NP-hard, so to get optimal answers for all tests is not so easy. :) Try to create some heuristics.