in reply to how to count the number of repeats in a string (really!)
Construction and calculation are both possible in linear time, but obviously with a lot of overhead (so the string must be quite large that this pays off - and then you don't want a Perl implementation).
And btw. it is not an "artificial problem". The human genome consists of many, many repeats (this is in fact the reason why the assembly is so hard) and we don't know much about most of them.
See also: http://en.wikipedia.org/wiki/Suffix_tree
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to count the number of repeats in a string (really!)
by blazar (Canon) on Nov 14, 2007 at 16:17 UTC |