CEMC Banner

Problem of the Week
Problem E and Solution
The Long Way Home

Problem

Emilia is playing a board game where each player needs to move their game piece along the black roads from the beach in the bottom-left corner to the house in the top-right corner. The black dots represent intersections where roads meet.

A rectangular grid of dots with line segments joining certain pairs of adjacent dots in the grid. A beach umbrella is placed at one corner of the grid and a house is placed at the opposite corner.

In each turn a player is allowed to move their piece along a road until it reaches an intersection. Then it’s another player’s turn.

After Emilia finished the game, she realized that at every intersection she had turned either left or right; she never continued straight along the direction she came from in her previous turn. As well, she never went along the same part of a road more than once.

What is the fewest number of turns Emilia could have had during the game?

This problem was inspired by a past Beaver Computing Challenge (BCC) problem.

Solution

To get from the beach in the bottom-left corner to the house in the top-right corner, Emilia must have passed through at least one of the four numbered roads shown.

We will find the length of the shortest route through each of the four roads from the beach to the house, and then determine the shortest route overall. The length of this route will then be equal to the fewest number of turns Emilia could have had during the game, because in each turn she moved along the road until she reached the next intersection.

Four line segments in the grid are highlighted and are labelled 1, 2, 3, and 4.

Some details, for the sake of brevity, will be omitted from the solution and left for the solver to consider further. In the solution, turns will be described in terms of north, south, east, and west, where north points to the top of the page.

After examining the four possible cases, the shortest route has a length of \(13\) and passes through road \(2\). Thus, the fewest number of turns Emilia could have had during the game is \(13\).