Finding a shortest path by inspection
To find a shortest path, list sensible routes between the named vertices. Add every route's weights and compare the complete totals
- List sensible routes Use routes without repeated vertices or edges and leave out obvious detours \(\displaystyle A\mathord{-}B\mathord{-}D,\quad A\mathord{-}C\mathord{-}D\)
- Total each route Add the weight of every edge in a complete route \(\displaystyle 7+6+10=23\,\text{km}\)
- Compare complete totals The smallest total identifies the shortest path among the routes considered \(\displaystyle 23\,\text{km}<29\,\text{km}\)
- Do not count edges only The number of edges is not the same as the total weight \(\displaystyle A\mathord{-}D:18\,\text{km},\quad A\mathord{-}B\mathord{-}C\mathord{-}D:12+3+2=17\,\text{km}\)
Worked example
A network of walking tracks has two sensible routes from M to T. Route 1 has two legs of 8 km and 9 km. Route 2 has three legs of 5 km, 6 km and 10 km. Find the shortest route by inspection
- \(\displaystyle 8+9=17\,\text{km}\)Route 1 has a total length of 17 km
- \(\displaystyle 5+6+10=21\,\text{km}\)Route 2 has a total length of 21 km
- \(\displaystyle 17\,\text{km}<21\,\text{km}\)Compare the complete route totals
- \(\displaystyle M\mathord{-}N\mathord{-}T,\quad 17\,\text{km}\)Route 1 is the shortest route and its length is 17 km
Common mistakes
Difficulty levels
Questions about this topic
What is a shortest path?+
It is a path between two named vertices whose total edge weight is as small as possible among the available paths
Why are repeated vertices usually left out when routes are compared?+
A repeated vertex creates a detour in a positive-weight network. The inspection method compares sensible routes without repeated vertices or edges
Why is choosing the cheapest next edge not enough?+
A locally cheap edge can force expensive later edges. A shortest-path decision requires comparing complete route totals
Can I use a calculator?+
A calculator is allowed unless a question is marked no calculator
Which year level and chapter is this?+
Year 12, VCE Units 3 & 4, General Mathematics, chapter 13: Graphs and networks