Past exam of the mathematics course of the University of Cambridge 2010 iii Paper 49 1 c Solution Created 2026-10-03 Updated 2026-10-14
Use a verified Grover promise test. Since , . ChooseThis is a nearest integer to , so . Run the Grover search algorithm for iterations and measure the candidate . Make one further oracle query with input and measure the answer bit . Declare that a marked entry exists exactly when this bit is one.
In the zero case the verification always returns zero, so the decision is correct with certainty. In the single-marked-entry case, verification returns one exactly when the candidate is , andFinally, on gives . HenceThe verification query is necessary for this decision rule: an unverified search-register label does not itself say whether it is marked.