I'm looking for an efficient algorithm to find the longest repeated pattern in a string.For example, consider the following string of numbers:  5431428571428571428571428571427623874534.As you can see, 142857142857 is the longest pattern which is repeated for a couple of times (at least twice) in this string.The repeated string should not contain any reany idea rather than brute-force?  
Find the longest repeated pattern in a string
algorithms;strings;subsequences