Concept Flow - Why Shortest Path Is a Graph Problem Not a Tree Problem
Start: Problem of finding shortest path
Is the structure a Tree?
Yes→Unique path exists between nodes
Shortest path = unique path
Is the structure a Graph?
Yes→Multiple paths possible
Need algorithms to find shortest path
No path problem
End
The flow shows that trees have unique paths so shortest path is trivial, but graphs can have multiple paths requiring special algorithms.
