We don't bite newbies here... much | |
PerlMonks |
Sorting problemby baxy77bax (Deacon) |
on Apr 26, 2014 at 11:28 UTC ( [id://1083925]=perlquestion: print w/replies, xml ) | Need Help?? |
baxy77bax has asked for the wisdom of the Perl Monks concerning the following question:
Hi, a problem :) what would be the fastest way to order the following objects. given that i know the closest objects to the number of objects is 100 and each object is associated with a list of 4 closest objects to it. Order of those objects is related to its distance. Therefore O3 is closer to O1 then to O5. This is not a homework question. (I know this is exactly what someone with a homework question would say :)) This is not an interview question (I know this is exactly what someone with an interview question would say :)) Therefore i am not asking for code but a descriptive solutions, hints, pointers :) thnx baxy UPDATE:
to simplify things even more let say all distances are a single unit. so O1 is one unit from O3 and 2 units from O5.
Back to
Seekers of Perl Wisdom
|
|