Think about Loose Coupling | |
PerlMonks |
Re^3: Comparing a large set of DNA sequencesby aaron_baugher (Curate) |
on Nov 10, 2011 at 16:17 UTC ( [id://937406]=note: print w/replies, xml ) | Need Help?? |
That's a brilliant way to do it. My own brute force method of comparing all the strings character by character required 5,000,050,000 comparisons and took almost 4 hours. Yours loops through 100,000 items once, then loops through a maximum of 2,000,000 keys once. It's not even close. Aaron B.
In Section
Seekers of Perl Wisdom
|
|