Longest Non-Overlapping Repeated Substring using Suffix Tree/Array (Algorithm Only)
问题 I need to find the longest non-overlapping repeated substring in a String. I have the suffix tree and suffix array of the string available. When overlapping is allowed, the answer is trivial (deepest parent node in suffix tree). For example for String = "acaca" If overlapping is allowed, the answer is "aca" but when overlapping is not allowed, the answer is "ac" or "ca". I need the algorithm or high level idea only. P.S.: I tried but there is no clear answer I can find on web. 回答1: Generate