DR.WANG Mathematics中文

2024 AMC 8 · Question 14

Counting & combinatorics · graph theory

Problem outline

Find the shortest directed route from AA to ZZ. Outgoing edges (destination, km) are A:(X,5),(M,8)A:(X,5),(M,8); X:(M,2),(Y,10)X:(M,2),(Y,10); M:(Y,6),(C,14),(Z,25)M:(Y,6),(C,14),(Z,25); Y:(C,5),(Z,17)Y:(C,5),(Z,17); C:(Z,10)C:(Z,10).

Show answer and methods 2 methods

Answer

A. 2828 km.

Method 1 Compare distances when entering each town

From AA the cheapest distances to XX and MM are 55 and min⁡(8,5+2)=7\min(8,5+2)=7. To reach YY, compare 5+105+10 with 7+67+6 and keep 1313.

The minimum at CC is min⁡(7+14,13+5)=18\min(7+14,13+5)=18. At ZZ it is min⁡(7+25,13+17,18+10)=28\min(7+25,13+17,18+10)=28. Each minimum uses all of that town's possible incoming edges, so no other route can be shorter.

Method 2 Replace every shortcut by a cheaper detour

Consider the chain A,X,M,Y,C,ZA,X,M,Y,C,Z. Its consecutive edges cost 5,2,6,5,105,2,6,5,10. Direct edges that skip towns can be compared with the corresponding piece of this chain.

AA to MM costs 88 directly against 77 along the chain. The comparisons for XX to YY, MM to CC, MM to ZZ, and YY to ZZ are respectively 10>810>8, 14>1114>11, 25>2125>21, and 17>1517>15.

Every route that skips a town can therefore be improved. Following the entire chain gives the minimum 5+2+6+5+10=285+2+6+5+10=28 km.

Source and attribution

The outline and worked methods on this page were prepared for DR.WANG Mathematics.

Original question (external)