Concept Flow - Why Shortest Path Is a Graph Problem Not a Tree Problem
Start: Given Nodes and Edges
Is structure a Tree?
Yes→Unique path between nodes
Shortest path = unique path
Graph with cycles and multiple paths
Multiple paths possible
Need algorithm to find shortest path
Use BFS/Dijkstra to find shortest path
Shortest path found in graph
Shows decision flow: trees have unique paths, graphs can have multiple paths needing shortest path algorithms.