• catastrophicblues
    link
    fedilink
    arrow-up
    2
    ·
    5 months ago

    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?

    • jjagaimo
      link
      fedilink
      arrow-up
      7
      ·
      5 months ago

      It’s essentially the traveling salesman problem