Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Analysing a (binary) string. (Solved)by hexcoder (Curate) |
on Jun 28, 2013 at 13:36 UTC ( [id://1041254]=note: print w/replies, xml ) | Need Help?? |
Hi,
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 Section
Seekers of Perl Wisdom
|
|