just for completeness (since its solved). A suitable data structure could be that of a suffix tree or a suffix array. It allows finding the longest repeating substring(s) in linear time.
I found this page instructive: http://www.allisons.org/ll/AlgDS/Tree/Suffix/.
I am using it in the detection of cut-and-paste code.
In reply to Re: Analysing a (binary) string. (Solved)
by hexcoder
in thread Analysing a (binary) string. (Solved)
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |