Build a common suffix tree for the given string and for its reverse. Then
take out the string ending at maximum depth at a common node. Time
complexity would be linear.

On Sat, Sep 22, 2012 at 5:33 PM, Aditya Raman <[email protected]>wrote:

> Hello everybody,
> I need to find a way of finding the longest palindrome in a very very long
> string (n<=20000) . a linear time algo is expected. help me out
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/algogeeks/-/JdXOBU9fu34J.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to