Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有什么确切的限制/条件能够在图形上使用这 3 种 SPT 算法中的任何一种来计算最短路径?
Dijkstra 的算法要求边长是非负的,而Bellman-Ford只要求不存在负长度的循环。