Cheapest path algorithm

后端 未结 7 1782
刺人心
刺人心 2020-12-20 03:28

I\'ve learnt a dynamic programming algorithm to find the \"cheapest\" path from A to B. Each sub path has an associated cost.

Each corner is calculated using

7条回答
  •  悲&欢浪女
    2020-12-20 03:55

    I believe what you are referring to is the all-pair shortest paths problem. Here is a good description of the algorithm. And here is a google book reference that goes through how to solve it.

提交回复
热议问题