Annie is playing game with row of positive integers (powers of 2). She can replace two adjacent numbers with power of 2 greater than either. She wins if the final number is less than 4 times the original sum. Is it always possible for Annie to win?
Yes, Annie can draw the game.
No such configuration exists under the given conditions.
Yes, Bob can always win.
Yes, Annie can always win.
Hint 1: Interpret the sequence of merges as a binary merge tree where each parent is a power of 2 greater than its children.
Hint 2: Think about a greedy strategy: what happens if you always target the smallest elements and merge them with their neighbors?
Hint 3: Use induction or the Kraft sum inequality for binary trees to bound the final merged root value by .
Step 1 (Game Formulation): Let the initial sequence of powers of 2 be and their sum be . The game operation allows us to merge two adjacent elements into a single power of 2, , where . We want to prove that we can always reduce the sequence to a single number .
Step 2 (Inductive Strategy): We proceed by induction on . For , the final number is , which trivially holds. For the inductive step, locate the smallest element in the sequence, say . Since all numbers are powers of 2, if is adjacent to another smallest element, we can merge them into a power of 2 that is at least . This reduction preserves the tree structure and does not exceed the budget.
Step 3 (Kraft Inequality & Binary Merges): Any sequence of merges corresponds to a binary tree where the leaves are the original numbers. By choosing a greedy merge strategy where we always combine a minimal term with its smaller neighbor, we construct a tree of height such that the root value satisfies . Thus, Annie can always win.
Ready to track your progress and master these topics?
Create a free account