Optimization from partial solution: minimize sum of distances between pairs

前端 未结 3 1272
粉色の甜心
粉色の甜心 2021-02-20 03:05

I have a problem which I like and I love to think about solutions, but I\'m stuck unfortunately. I hope you like it too. The problem states:

I have two lists of 2D point

相关标签:
3条回答
  • 2021-02-20 03:40

    This problem is solvable in polynomial time via the Hungarian algorithm. To get a square matrix, add dummy entries to the shorter list at "distance 0" from everything.

    0 讨论(0)
  • 2021-02-20 03:40

    This is the minimum weight Euclidean bipartite matching problem. There is a O(n^(2+epsilon)) algorithm.

    0 讨论(0)
  • 2021-02-20 04:01

    Your problem is an instance of the weighted minimum maximal matching problem (as described in this Wikipedia article). There is no polynomial-time algorithm even for the unweighted problem (all distances equal). There are efficient algorithms to approximately solve it in polynomial time (within a factor of 2).

    0 讨论(0)
提交回复
热议问题