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
Is the structure a Graph?
Yes→Multiple paths possible
Need algorithms to find shortest path
No path or invalid structure
End
The flow shows that trees have unique paths between nodes, so shortest path is trivial, but graphs can have multiple paths, requiring special algorithms.
