Wide tables scroll horizontally. For detailed working, you may prefer a larger screen.
Required skills (click to reveal)
A city planner in Canberra is designing a network of underground service tunnels connecting six maintenance hubs labelled A to F. The tunnels form a complete weighted graph where the distance between any two hubs is given by the Euclidean distance in a 2D grid, with hub A at (0, 0), hub B at (4, 0), hub C at (4, 3), hub D at (0, 3), hub E at (2, 1), and hub F at (2, 2).
The planner uses a digital tool to implement a shortest-path algorithm to find the exact length of the shortest path from hub A to hub D that passes through hub E exactly once and does not revisit any hub. Using the coordinates and the Euclidean distance formula, what is the exact length of this path in metres?
Press Start when ready. Time includes time spent in another tab. Submit your answer before opening a help panel for a timed rank.
My notes — optional, not graded
0 wordsNotes and scratch working stay in this browser and are linked to this question version. They are not graded or included in feedback. On shared devices, other people using this browser may see them.
For this question only. Your full notebook is on the dashboard.
Notes save in this browser. Download a copy to keep them elsewhere.
Report a problem or suggest an improvement
Your observations help improve this question. You can report an issue or recommend a better explanation, visual or experience.
Formula and explanation (click to reveal)
Opening this before your first submission makes the attempt practice only.
Formula
Explanation
Worked solution and answer (click to reveal)
Opening this before your first submission makes the attempt practice only.
Worked solution
- The problem requires finding the shortest path from hub A to hub D, passing through hub E exactly once, without revisiting any hub. The hubs are positioned on a 2D grid with given coordinates.
- The path must go from A to E to D, and must not revisit any hub. Since only six hubs exist and the path must not revisit, the only valid path is A → E → D, as any detour would either revisit a hub or not satisfy the 'exactly once' condition for E.
- The Euclidean distance formula is used to compute the distance between two points (x1, y1) and (x2, y2): distance = sqrt((x2 - x1)^2 + (y2 - y1)^2). This formula applies because the hubs are on a 2D plane and distances are straight-line (as per the problem's complete weighted graph with Euclidean distances).
- Calculate the distance from A (0, 0) to E (2, 1). Apply the Euclidean formula: sqrt((2 - 0)^2 + (1 - 0)^2) = sqrt(2^2 + 1^2) = sqrt(4 + 1) = sqrt(5).
- Calculate the distance from E (2, 1) to D (0, 3). Apply the formula: sqrt((0 - 2)^2 + (3 - 1)^2) = sqrt((-2)^2 + 2^2) = sqrt(4 + 4) = sqrt(8) = 2*sqrt(2).
- Sum the two distances: sqrt(5) + 2*sqrt(2). This is the total path length from A to D via E, with no revisits and only one visit to E.
- The path A → E → D is the only valid path satisfying the constraints: it visits E exactly once, does not revisit any hub, and uses only direct connections (as required by the shortest-path algorithm in a complete graph).
- No alternative path (e.g., A → B → E → D) is shorter because any detour would increase distance, and the problem specifies the shortest path using a digital tool, so the direct A-E-D path must be optimal.
- The total path length is sqrt(5) + 2*sqrt(2) metres. This is an exact expression and does not require decimal approximation unless specified.
- Verify that no other path satisfies the constraints. For example, A → C → E → D would visit E only once but would be longer due to longer segments. Similarly, A → E → C → D would revisit E if not allowed, but E is only allowed once. Thus, A-E-D is the only viable shortest path.
- The path A → E → D is valid, uses only allowed hubs, passes through E exactly once, and is the shortest possible under Euclidean distance. Therefore, the total length is correct.
- The exact length of the shortest path from A to D passing through E exactly once, without revisiting any hub, is sqrt(5) + 2*sqrt(2) metres.
Reference answer: sqrt(5) + 2*sqrt(2)
Alternative methods (click to reveal)
Shortcuts are shown only when applicable. Check the conditions before using one.
Quick-method explanations are blurred in this trial preview. The standard formula and worked solution remain available.
Earlier attempts for this question
| # | Date / time | Your answer | Result | Seconds | Help revealed | Rank |
|---|
Worksheet details
Naming pattern: Topic_Grade_Complexity_YYYYMMDD_HH24MISS.html
Validation compares your answer with the generated reference. The model's reference can be wrong. Time ranks use an estimated student solving time, not a measured benchmark or a comparison with other students. An incorrect answer receives no speed rank.
NavGanitMate privacy & saved work
Saved in this browser. Your profile preferences, answers, practice history and notes are stored here when browser storage is available. They are not automatically uploaded to our servers. People sharing this browser may see saved work; changing the learner name does not create a separate private account. A nickname is enough.
Keep copies of important work. Clearing browser data, private browsing or changing browser or device can mean losing saved work. Download notes and export history separately. Downloads are copies of the selected content, not a complete account backup; not every format can be imported to restore your work. Keep these files somewhere private.
Visiting the website. Cloudflare helps deliver and protect this site and processes connection information such as IP addresses and requested pages. Server error logs may also contain request details. Security features may use cookies. This is separate from your browser-saved learning records. Cloudflare privacy information.
A parent-connection reminder uses a local list of up to five completed question IDs for this browser profile and a tab-session dismissal marker. Reminder activity is not uploaded and practice remains available.
Sharing feedback is your choice. A report includes your message and question/version details. Your saved profile, answers and notes are not automatically attached. Files you select can reveal personal details or contain embedded metadata: check and redact them before sharing. Diagnostic event codes and timestamps are included only after you enable logging. Sending email shares your message and attachments with the recipient and email providers. A download alone sends nothing to us. Website feedback delivery may be unavailable; only a confirmed receipt indicates it was received.
Files ready to save
If a file opens instead of downloading, use its save link below or your browser’s Save As command.