Dijkstra's Algorithm – Shortest Paths

Problem Statement:

Find the shortest path distances from source A in a weighted graph.

Priority Queue

Step 0: Initialize distances (source A = 0, others = ∞).