Ship Destroyer
Question
A grid has a ship in each of its cells. Four bombs fall, each landing in a cell chosen independently and uniformly at random (two bombs may hit the same cell). A bomb destroys every ship in its row and every ship in its column. What is the probability that all ships are destroyed?
Solution
Try it yourself first. Open a hint if you get stuck.
Hint 1
A ship survives only if no bomb lands in its row and no bomb lands in its column. When can that happen?
Hint 2
Every ship is destroyed exactly when the four bombs hit all four rows, or all four columns. Count each case and use inclusion–exclusion.
Show solution
When does a ship survive? The ship in row , column survives only if no bomb lands in row and no bomb lands in column . So some ship survives exactly when there is an empty row and an empty column.
Turning that around, every ship is destroyed exactly when
- : the bombs hit all four rows, or
- : the bombs hit all four columns.
With only four bombs, "hit all four rows" means the bombs land in four different rows.
Count the outcomes. Treat the bombs as ordered; there are equally likely outcomes.
- : give the four bombs four different rows ( ways), then any column each ( ways): .
- : the same count with rows and columns swapped: .
- : four different rows and four different columns: .
By inclusion–exclusion,
Probability.
Answer: .