Quantcast
Channel: Architects Zone - dijkstra
Viewing all articles
Browse latest Browse all 7

Speeding Up Dijkstra's Algorithm

$
0
0
Demonstrates a way of speeding up the O(n<sup>2</sup>) version of Dijkstra's Algorithm by about 4x. Here, dist[][] is the adjacency matrix representing the graph and n is the number of nodes. d2[] is where the lengths of the shortest paths are saved. For a full explanation, see <a...

Viewing all articles
Browse latest Browse all 7

Trending Articles