alphacyberranger to Programmer [email protected]English • 5 months agoNot everything can be done in constant time, that's O(k)sh.itjust.worksimagemessage-square41arrow-up1415arrow-down111
arrow-up1404arrow-down1imageNot everything can be done in constant time, that's O(k)sh.itjust.worksalphacyberranger to Programmer [email protected]English • 5 months agomessage-square41
minus-square@[email protected]linkfedilink2•5 months agoSurely you could implement this via a sorting algorithm? If you can prove the distance function is a metric and both lists contains elements from the same space under that metric, isn’t the answer to sort both?
minus-square@[email protected]linkfedilink7•5 months agoIt’s essentially the traveling salesman problem
Surely you could implement this via a sorting algorithm? If you can prove the distance function is a metric and both lists contains elements from the same space under that metric, isn’t the answer to sort both?
It’s essentially the traveling salesman problem