Concept Flow - Why Shortest Path Is a Graph Problem Not a Tree Problem
Start: Need shortest path
Is data a Tree?
Yes→Unique path exists
Shortest path = unique path
Is data a Graph?
Yes→Multiple paths possible
Need algorithms to find shortest
No path problem
End
This flow shows that shortest path problems arise mainly in graphs because trees have unique paths, while graphs can have many paths requiring special algorithms.
