Lesson 3 of 6 · written lesson
Why asking in the right order helps
Compare static, installed and adaptive costs in a paid-address example.
A switch chooses the relevant bit
The state is (a,d₀,d₁). The answer is d₀ when address a=0, and d₁ when a=1. All eight states are feasible; each individual-bit reading costs 1, and the address is not free.
A static subset must read all three coordinates: either data bit could matter, and the address decides which one. An adaptive policy first reads a, then reads the selected data bit. It spends exactly 2 on every input. Across all possible paths it still uses all three sensors, so its unit-price installed cost is 3.
For b address bits and 2ᵇ data bits, the report proves static and installed optimum b+2ᵇ, and adaptive optimum b+1 on every input. A correct stopping path leaving r address bits unread must have read all 2ʳ compatible data bits with the same answer. It has therefore read at least (b−r)+2ʳ ≥ b+1 bits.
Try the address policy
Choose a complete input, then inspect the two queries. Changing an input resets the trace. This explorer demonstrates the address-first policy, not every possible policy.
A prior changes how inputs are weighted. A promise changes which inputs are feasible. Even a zero-probability feasible input must receive the right answer in this exact model.
Try it before opening the answer
For b=2, what are the static, installed and adaptive costs? What changes at b=1 if the promise d₀=d₁ is supplied?
Show answer and explanation
For b=2: static 6, installed 6, adaptive 3. With the promise d₀=d₁, reading d₀ alone answers the b=1 task at cost 1. Merely assigning probability zero to unequal data states does not permit that shortcut while those states remain feasible.
Report sections: 4–5. Read the complete mathematical account.

