Algorithm: shortest path between all points

后端 未结 4 767
小鲜肉
小鲜肉 2021-01-04 07:06

Suppose I have 10 points. I know the distance between each point.

I need to find the shortest possible route passing through all points.

I have tried a coup

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-04 07:50

    Have a look at travelling salesman problem.

    You may want to look into some of the heuristic solutions. They may not be able to give you 100% exact results, but often they can come up with good enough solutions (2 to 3 % away from optimal solutions) in a reasonable amount of time.

提交回复
热议问题