Hello guys,
is there a tutorial for implementation and applications of suffix tree data-structure ??
or some paper or any link that helps you understand ?? I couldn’t find much of it !,
And also are suffix array and suffix trees two different things ??
it’d be helpful if anybody can provide details regarding that and also some problems for solving - related to suffix trees/arrays !!
C++ implementations of some of the popular suffix Array problems are available at : my blog.
Fastest or linear time implementation of Suffix array construction using DC3 algorithm: Source code in C++ is available at last few pages ofthis PDF . It helped me to achieve best run-time at SPOJ.
– Can you lists few suffix trees/arrays related problems for solving?
@ritesh_gupta i went through the paper, your blog, and that PDF about “suffix arrays in contest programming” - the PDF kind of follows a different implementation for suffix arrays … from the one mentioned in your blog/topcoder tutorial ! i just have a doubt about which one is efficient !! the one mentioned in the PDF seems simple but i’m not sure if it’ll squeeze through tough time constraints under a java implementation !
PDF one is easy implementation. Mine and TC is bit tough . The fastest implementation is DC3 Algortithm For Suffix Array.The code is given in last pages of this pdf http://algo2.iti.kit.edu/documents/jacm05-revised.pdf
Don’t worry about implementation. Just knw how to code - 1. Suffix Array construction. 2. Standard LCP array 3.LCP between any suffixes. With these three things u can solve any suffix array question