Strong suggestion: Watch some videos to see the steps of the algorithms

Minimum Spanning tree (MST)

Kruskal's algorithm

Prim’s Algorithm

image.png

Shortest Path

Dijkstra’s Algorithm

Bellman-Ford Algorithm

image.png