Concept Flow - Why Shortest Path Is a Graph Problem Not a Tree Problem
Start: Problem Statement
Is the structure a Tree?
Yes→Unique path between nodes
Shortest path = Unique path
Graph with cycles and multiple paths
Multiple paths possible
Need to find minimum distance path
Use Graph algorithms (BFS, Dijkstra)
Shortest path found considering all paths
The shortest path problem requires exploring multiple paths possible in graphs with cycles, unlike trees where only one unique path exists between nodes.
