abstract:
Anybody know such an algorithm existing? Or some algorithms which can be refered? Any suggestion welcomed!
Thanks http://bbs.prog365.com/images/sites/smile.gif
Hello, all
I was looking for an algorithm to find continuous repeats in a string. For an example,
Input: MNMOPMOPKLABABABX
Output: MN{2: MOP}KL{3: AB}X
It is kind of like a compression algorithm. But it only cares about the continuous repeats.
Both the string and the potential repeat cycle may be very long, so the algorithm should have a relatively high efficiency.
Anybody know such an algorithm existing? Or some algorithms which can be refered? Any suggestion welcomed!
Thanks  |