![]() |
|
Keep It Simple, Stupid | |
PerlMonks |
Re^3: mathematical proofby ikegami (Patriarch) |
on Feb 03, 2009 at 17:02 UTC ( #741050=note: print w/replies, xml ) | Need Help?? |
Ah yes, I see.
While there are other data structures available to him (such as disk-based structures and tries), I chose to only speak about the ones he mentioned (hashes and arrays) due to time constraints.
You'll reduce the size of large passes you never have to do with a hash. You'll speed up the sort you don't have to do with a hash. With a hash, you never have to deal with more than $num_duplicates items. With an array, you'll deal with at least $num_duplicates items. I don't understand how come you say the array benefits more.
In Section
Seekers of Perl Wisdom
|
|