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

Обсуждение задачи 1590. Шифр Бэкона

Suffix.tree-Ura
Послано svr 5 фев 2008 13:44
Finally I implemented effectively O(n) suffix tree!
Most understable McCreight algo and Shen(Шень) explanation.
Now ~ 10 big string problem in timus will be simple.
In 1590 enaught to find sum of length edges of the tree.




Edited by author 05.02.2008 13:48
Re: Suffix.tree-Ura
Послано Reflective 10 фев 2008 00:41
I absolutely agree with you. Problem can be easily solved tith Suffix tree.
I used Ekkonen algo and got AC :-))
Re: Suffix.tree-Ura
Послано Svyatoslav [Vologda multiple-discipline lyceum] 20 авг 2009 02:48
I used Suffix Automaton and got AC )
Re: Suffix.tree-Ura
Послано Alex Tolstov (Vologda STU) 24 авг 2009 19:57
LOL
Re: Suffix.tree-Ura
Послано Svyatoslav [Vologda Multiple-Discipline Lyceum] 30 авг 2009 03:34
Alex Tolstov (Vologda STU) писал(a) 24 августа 2009 19:57
LOL
Why?
it is O(|S|) algorithm)

Edited by author 30.08.2009 03:58
Re: Suffix.tree-Ura
Послано Alex Tolstov (Vologda STU) 30 авг 2009 22:01
It's wonderful =)
Re: Suffix.tree-Ura
Послано Alex Tolstov (Vologda STU) 2 сен 2009 17:26
Svyatoslav [Vologda Multiple-Discipline Lyceum] писал(a) 30 августа 2009 03:34
Alex Tolstov (Vologda STU) писал(a) 24 августа 2009 19:57
LOL
Why?
it is O(|S|) algorithm)

Edited by author 30.08.2009 03:58
If your algorithm is fast, you can try to solve the same problem - 1706 =)
Re: Suffix.tree-Ura
Послано svr 2 сен 2009 23:22
Thank for very interesting suggestion.
1706 was seems for me as absolutely separated and new problem.
Re: Suffix.tree-Ura
Послано Alex Tolstov (Vologda STU) 4 сен 2009 19:38
Is it a joke?
Re: Suffix.tree-Ura
Послано svr 6 сен 2009 12:13
Thank again. You are right and I am wrong.
I simply take solution from 1590(my suff_tree_implementation)
and got Ac  for 1706 with one submission.
Interesting that I forgotten all details but this fact
doesn’t inhibit using of subprogram.

Edited by author 06.09.2009 12:19
Re: Suffix.tree-Ura
Послано Sergey Lazarev (MSU Tashkent) 6 сен 2009 18:00
It's interesting to compare suffix tree and prefix function for these two problems. Suffix tree works faster on N1590, but much slower on N1706.
Re: Suffix.tree-Ura
Послано Alex Tolstov (Vologda STU) 8 сен 2009 02:27
to my mind, the best algorithm for both 1590 and 1706 is hash. =)
Re: Suffix.tree-Ura
Послано svr 10 сен 2009 00:50
For me all probabalistics algos are nonsense.
The are good for contests but how can we
imaginate them as basis of control in real life.
They have not scintists value!