Optimized dijkstra’s algorithm for an extremely dense graph with matrix

后端 未结 0 910
天涯浪人
天涯浪人 2021-01-23 15:33

You have N nodes, labeled 1…N (N <= 50000). Each node has a designated ID in the range 1…M, where M is at most 50. You are trying to find the shortest path from 1 to N.

<
相关标签:
回答
  • 消灭零回复
提交回复
热议问题