To prove that Vulcan can always build a levee that encloses all initially flooded cells, we will use a strategy that involves constructing a levee in a systematic manner. We will show that Vulcan can always build the levee into a closed loop such that all flooded cells are contained within the loop, regardless of the initial configuration of flooded cells chosen by Neptune.
1. Initial Setup:
- Let s be the side length of the smallest square that contains all initially flooded cells.
- We will assume that all cells within this square are initially flooded, as removing some initially flooded cells does not make the problem harder for Vulcan.
2. Step 1: Construct the Top-Right Corner:
- In the first 2s turns, Vulcan will build the top-right corner of the levee.
- He will construct the top and right walls such that they are 2s units away from the top and right sides of the square.
- This ensures that the flood boundary does not reach the levee until after 2s turns.
Top wall: (0,0)→(2s,0)Right wall: (2s,0)→(2s,2s)
3. Step 2: Extend the Top and Right Walls:
- In the next 5s turns, Vulcan will extend the top wall to 7s units and the right wall downward by 5s units.
- This ensures that the flood boundary just reaches the left side of the levee after 7s turns in total.
Top wall: (2s,0)→(7s,0)Right wall: (2s,2s)→(2s,7s)
4. Step 3: Extend the Left and Right Walls:
- In the next 5s turns, Vulcan will build two walls on the left side of the levee and one wall on the right side.
- This ensures that the left and right walls are equal in length.
Left wall: (0,0)→(0,5s)Right wall: (2s,7s)→(2s,12s)
5. Step 4: Complete the Levee:
- In the final 14s turns, Vulcan will increase the length downward of one of the left or right walls by 1 unit and the other by 2 units.
- Once the total length of the left or right wall reaches 29s, Vulcan will begin constructing the bottom wall of the levee.
- After these 14s moves (and 26s moves in total), the bottom edge of the flood boundary just hits the bottom of the levee.
Left wall: (0,5s)→(0,29s)Right wall: (2s,12s)→(2s,29s)Bottom wall: (0,29s)→(2s,29s)
By following this strategy, Vulcan can always build a levee that encloses all initially flooded cells, regardless of the initial configuration chosen by Neptune. The levee will form a closed loop, ensuring that all flooded cells are contained within the interior of the loop.
■