|
|
| Perl: the Markov chain saw | |
| PerlMonks |
Re: Challenge: Fast Common Substringsby thezip (Vicar) |
| on Apr 04, 2007 at 05:04 UTC ( #608206=note: print w/ replies, xml ) | Need Help?? |
|
I throw my hat into the ring with my recursive implementation. I think it could perform reasonably well, since it is a divide-and-conquer type solution. I'm not sure how it will stand up to the hash-based solutions, and there might be some "correctness" issues... For the bonus, though, mine increments the count for *any* length of matching substrings. There are probably many opportunities for optimizations here... please offer criticism.
Where do you want *them* to go today?
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||