CEMC Banner

Problem of the Week
Problem E and Solution
Special Delivery

Problem

In Gridville, the POTW Delivery Company needs to deliver nine packages to nine different locations. In the diagram below, the location where they start is labelled with an \(S\). The nine other circles indicate where the nine delivery locations are. These locations are joined by roads, which are shown as lines. The number beside each line indicates the average time, in minutes, it will take to travel along that road.

A description of the diagram follows.

If the POTW Delivery Company does not want to visit any location more than once, but can finish at any location, what is the shortest amount of time that they will take to deliver the nine packages?

Solution

There are only five possible paths that start at \(S\) and visit each of the locations exactly once:

A description of the paths follows.

To justify this, notice that we have two choices for where to travel from \(S\): down or right.

These five possible paths have the total times of:

  1. \(3 + 3 + 4 + 6 + 4 + 5 + 2 + 3 + 1 = 31\)

  2. \(2 + 1 + 3 + 2 + 5 + 4 + 6 + 4 + 3 = 30\)

  3. \(2 + 1 + 5 + 3 + 4 + 6 + 4 + 5 + 2 = 32\)

  4. \(2 + 1 + 5 + 3 + 1 + 2 + 5 + 4 + 6 = 29\)

  5. \(2 + 1 + 5 + 3 + 1 + 2 + 8 + 6 + 4 = 32\)

(where the sum is shown starting at \(S\) and moving through the path).

Therefore, the shortest amount of time to deliver the nine packages is \(29\) minutes.