We don't bite newbies here... much | |
PerlMonks |
Re: The most efficient way for searching for an element in an array?by salva (Canon) |
on Jan 07, 2016 at 08:31 UTC ( [id://1152147]=note: print w/replies, xml ) | Need Help?? |
If arrays 2 and 3 are not too big and they fit in the available RAM, just convert them into hashes for faster lookup.
Otherwise, sort the three arrays using some external sort algorithm and then read them in parallel while looking for duplicates.
In Section
Seekers of Perl Wisdom
|
|