next up previous contents
Next: Optimality of Grover's Algorithm Up: Open Questions Previous: How Many Iterations are   Contents

Searching for More Than One Item

Grover briefly mentions that his algorithm can work in a setting where there is more than one state such that C(Si) = 1. In fact this poses no difficulty whatsoever, and regardless of the number of marked states we retain our superior performance over classical algorithms.. If there are t marked states, we can find one of the marked states in O($ \sqrt{{N/t}}$) time. This presumes that we know the number of marked elements in advance. [BBHT96]

Another interesting special case comes when t = N/4, in this case just as in the special case where N = 4, we will find a solution with unit probability after only one iteration, which is twice as fast as the expected running time for a classical algorithm, and exponentially faster than the worst case classical running time. [BBHT96]


next up previous contents
Next: Optimality of Grover's Algorithm Up: Open Questions Previous: How Many Iterations are   Contents
Matthew Hayward - Quantum Computing and Grover's Algorithm GitHub Repository