Lesson 2 of 6 · written lesson
Which tests are worth acquiring?
Find a cheapest sufficient static test set by separating conflicting states.
Pay for useful distinctions
Let the target be x OR y on all four bit pairs. Test X reads x and costs 1; Y reads y and costs 1; R directly reads x OR y and costs 3. All tests are available, there is no free information, and the hidden state stays fixed.
The state 00 has answer 0; 01, 10 and 11 have answer 1. Only pairs with different answers need separating. X misses the pair 00/01. Y misses 00/10. Together X and Y separate every conflicting pair, for total cost 2. R alone also works, at cost 3.
This is a covering problem: every conflicting pair needs at least one selected test with unequal readings. A pair with no separating test makes exact recovery impossible. If the answer is already constant, no test is needed.
Static means selected in advance
Here a static selection pays for every chosen reading, even if one answer would have allowed early stopping. The cheapest static selection is X and Y. Installation cost is a different price: a test used on any possible path counts once toward the installed library.
The report uses an exact finite covering formulation. Exhaustive search is suitable for small teaching instances; this is not a scalable optimization claim.
Try it before opening the answer
If R costs 1 instead of 3, which static selection is cheapest? If R is removed and Y is unavailable, can X alone recover the target?
Show answer and explanation
R alone is cheapest at cost 1. With only X, exact recovery fails: 00 and 01 give the same X reading but different outputs. Low price cannot repair missing information.
Report sections: 3. Read the complete mathematical account.

