We don't bite newbies here... much | |
PerlMonks |
Re: Re: H of A optimizationby ferrency (Deacon) |
on Aug 30, 2002 at 20:36 UTC ( [id://194245]=note: print w/replies, xml ) | Need Help?? |
I think abitkin wants to make sure that $b isn't in any of the lists in %edgeHash, not to make sure that this specific edge didn't already exist. I think a better answer is: If the values are $b are densely packed small positive integers, an array may be a better choice of data structures for already_seen The new code: I hope this helps. Alan
In Section
Seekers of Perl Wisdom
|
|