• magic_lobster_party
    link
    fedilink
    363 months ago

    You have two lists of size n. You want to find the permutations of these two lists that minimizes a certain distance function between them.

    • @[email protected]
      link
      fedilink
      23 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?