in reply to Analysing a (binary) string. (Solved)
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Analysing a (binary) string. (Solved)
by BrowserUk (Patriarch) on Jun 28, 2013 at 14:08 UTC | |
by hexcoder (Curate) on Jun 29, 2013 at 17:06 UTC |