Consider an art gallery whose walkways are shown as lines in the diagram. A black dot represents a junction of two walkways. A guard may be placed at a junction to watch over the walkways that join at that junction. The minimum number of guards needed to watch all the walkways is ________.
Tap to open full sizeFigure description
A closed house-shaped pentagon drawn with 5 straight lines and 5 black dots (junctions) at its corners. The dots are: one at the top centre (apex); one at the upper left and one at the upper right, both at the same height below the apex; one at the bottom left directly below the upper-left dot; one at the bottom right directly below the upper-right dot. Lines: apex to upper-left (slanting down to the left); apex to upper-right (slanting down to the right); upper-left straight down to bottom-left (vertical); upper-right straight down to bottom-right (vertical); bottom-left to bottom-right (horizontal). No other lines, no labels. Every junction joins exactly two walkways.
- (A)
2
- (B)
3
- (C)
4
- (D)
5