Data set: Networks & routes (Hard)
Networks & routes
A courier company runs vans between seven hubs. The table lists every direct road link and the driving time in minutes; links can be used in either direction, and no other direct links exist.
| Link | Time |
|---|---|
| Ambala – Barnala | 6 |
| Ambala – Dabwali | 4 |
| Ambala – Fatehabad | 4 |
| Barnala – Charkhi | 13 |
| Barnala – Dabwali | 14 |
| Barnala – Fatehabad | 18 |
| Charkhi – Ellenabad | 5 |
| Dabwali – Ellenabad | 9 |
| Dabwali – Gohana | 13 |
| Ellenabad – Fatehabad | 5 |
| Fatehabad – Gohana | 14 |
What is the minimum time, in minutes, to travel from Charkhi to Dabwali?
Type in the answer (TITA): no options.
Show answer & solution
Correct answer: 14
Solution: Step 1: list the candidate routes from Charkhi to Dabwali and add link times. Step 2: the cheapest is Charkhi → Ellenabad → Dabwali (14); next-best routes: Charkhi → Ellenabad → Fatehabad → Ambala → Dabwali (18), Charkhi → Barnala → Ambala → Dabwali (23). Step 3: check no other route undercuts it (a full enumeration of all simple paths confirms the minimum is 14). Answer: 14.