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

Common Board

Suffix trees/arrays
Posted by Andrew Shmig aka SKYDOS [Vladimir SU] 17 Jul 2010 23:42
Which problems on Timus I can solve using suffix trees/arrays?
Thx.
Re: Suffix trees/arrays
Posted by Baurzhan 18 Jul 2010 10:15
May be 1393 is suffix array problem, but i'm not sure. Also 1297 has simple KMP solution O(N^2), but I red in discussion of that problem about suffix tree O(N)solution. Also 1354 has simple O(N) solution via KMP but you can apply suffix tree here as I a red in discussion.

Edited by author 18.07.2010 10:22
Re: Suffix trees/arrays
Posted by Andrew Shmig aka SKYDOS [Vladimir SU] 18 Jul 2010 12:54
Thx! I will try to solve these problems!
Baurzhan wrote 18 July 2010 10:15
May be 1393 is suffix array problem, but i'm not sure. Also 1297 has simple KMP solution O(N^2), but I red in discussion of that problem about suffix tree O(N)solution. Also 1354 has simple O(N) solution via KMP but you can apply suffix tree here as I a red in discussion.

Edited by author 18.07.2010 10:22
Re: Suffix trees/arrays
Posted by Alexander Samal 21 Jul 2010 03:32
try 1269