in reply to Re: finding longest common substring
in thread finding longest common substring
While significantly faster than the OP's, I believe it suffers from some of the same scalability issues. That's one thing I hate about regular expressions: determining the complexity of an algorithm built on them tends to be very difficult.
Anyway, that also suffers from another problem. Try it with
and you'll get an error:my @a = ('a' . 'X' x 32768, 'a' . 'O' x 32768);
Quantifier in {,} bigger than 32766 in regex; marked by <-- HERE in m/ +(.{ <-- HERE 32767}).*\0.*\1/
-sauoq "My two cents aren't worth a dime.";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: finding longest common substring
by revdiablo (Prior) on Nov 20, 2003 at 03:30 UTC | |
Re: Re: Re: finding longest common substring
by BrowserUk (Pope) on Nov 20, 2003 at 01:13 UTC |
In Section
Seekers of Perl Wisdom