Dijkstra’s Algorithm

Poornima K S
Feb 1, 2022

Dijkstra’s is used to find shortest path from a single source to all the nodes in the graph. This algorithm cannot be used on graphs with negative edge weights or cycles.

Complexity: O(V*V) or O ( E Log V) for the optimized implementation

Output

0 02 21 103 105 124 125 12

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Poornima K S
Poornima K S

No responses yet

Write a response