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 1590. Bacon’s Cipher

Suffix.tree-Ura
Posted by svr 5 Feb 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
Posted by Reflective 10 Feb 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
I used Suffix Automaton and got AC )
Re: Suffix.tree-Ura
Posted by Alex Tolstov (Vologda STU) 24 Aug 2009 19:57
LOL
Re: Suffix.tree-Ura
Alex Tolstov (Vologda STU) wrote 24 August 2009 19:57
LOL
Why?
it is O(|S|) algorithm)

Edited by author 30.08.2009 03:58
Re: Suffix.tree-Ura
Posted by Alex Tolstov (Vologda STU) 30 Aug 2009 22:01
It's wonderful =)
Re: Suffix.tree-Ura
Posted by Alex Tolstov (Vologda STU) 2 Sep 2009 17:26
Svyatoslav [Vologda Multiple-Discipline Lyceum] wrote 30 August 2009 03:34
Alex Tolstov (Vologda STU) wrote 24 August 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
Posted by svr 2 Sep 2009 23:22
Thank for very interesting suggestion.
1706 was seems for me as absolutely separated and new problem.
Re: Suffix.tree-Ura
Posted by Alex Tolstov (Vologda STU) 4 Sep 2009 19:38
Is it a joke?
Re: Suffix.tree-Ura
Posted by svr 6 Sep 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
Posted by Sergey Lazarev (MSU Tashkent) 6 Sep 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
Posted by Alex Tolstov (Vologda STU) 8 Sep 2009 02:27
to my mind, the best algorithm for both 1590 and 1706 is hash. =)
Re: Suffix.tree-Ura
Posted by svr 10 Sep 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!