Back to the full dot-point answer
NSWMaths Standard 2Quick questions
Year 12: Networks
Quick questions on Shortest path problems in networks for HSC Maths Standard 2
12short Q&A pairs drawn directly from our worked dot-point answer. For full context and worked exam questions, read the parent dot-point page.
What is what the question asks?Show answer
Given a weighted graph with vertices and edge weights (distances, times, costs), find the path from a starting vertex to an ending vertex with the smallest total weight.
What is method 1?Show answer
For small networks (say vertices or fewer), list all sensible candidate paths between the start and end vertex, compute each total weight, and pick the smallest.
What is method 2?Show answer
For larger networks, use systematic labelling:
What is tracking the path?Show answer
While labelling, record the predecessor: which vertex you came from when you set the current label. After finishing, trace backwards from the end vertex to the start using these predecessors, then reverse to get the path in forward order.
What is equal-weight ties?Show answer
If two paths have the same total weight, there are multiple shortest paths. State both (or all) in your answer.
What is sanity checks?Show answer
:::worked Worked example ### Inspection on a small graph
What is systematic labelling?Show answer
Starting from . Label . Others .
What is australian transport context?Show answer
Suppose Sydney transport edges (in minutes):
What is missing a path?Show answer
When using inspection, check all branching combinations. Even visually-unappealing paths sometimes turn out to be shortest.
What is forgetting to update labels?Show answer
In systematic labelling, you must update a neighbour's label whenever you find a shorter path. Once finalised, the label cannot change.
What is wrong predecessor when tracing back?Show answer
Record which vertex you came from when each label was last updated.
What is confusing minimum spanning tree with shortest path?Show answer
MST connects all vertices with minimum total weight. Shortest path finds the cheapest route between two specific vertices. Different problems, different algorithms.