Collision Problem
   HOME

TheInfoList



OR:

The r-to-1 collision problem is an important theoretical problem in complexity theory,
quantum computing A quantum computer is a computer that exploits quantum mechanical phenomena. On small scales, physical matter exhibits properties of wave-particle duality, both particles and waves, and quantum computing takes advantage of this behavior using s ...
, and
computational mathematics Computational mathematics is the study of the interaction between mathematics and calculations done by a computer.National Science Foundation, Division of Mathematical ScienceProgram description PD 06-888 Computational Mathematics 2006. Retri ...
. The collision problem most often refers to the 2-to-1 version: given n even and a function f:\,\\rightarrow\, we are promised that f is either 1-to-1 or 2-to-1. We are only allowed to make queries about the value of f(i) for any i\in\. The problem then asks how many such queries we need to make to determine with certainty whether f is 1-to-1 or 2-to-1.


Classical solutions


Deterministic

Solving the 2-to-1 version deterministically requires \frac+1 queries, and in general distinguishing r-to-1 functions from 1-to-1 functions requires \frac + 1 queries. This is a straightforward application of the
pigeonhole principle In mathematics, the pigeonhole principle states that if items are put into containers, with , then at least one container must contain more than one item. For example, of three gloves, at least two must be right-handed or at least two must be l ...
: if a function is r-to-1, then after \frac + 1 queries we are guaranteed to have found a collision. If a function is 1-to-1, then no collision exists. Thus, \frac + 1 queries suffice. If we are unlucky, then the first n/r queries could return distinct answers, so \frac + 1 queries is also necessary.


Randomized

If we allow randomness, the problem is easier. By the
birthday paradox In probability theory, the birthday problem asks for the probability that, in a set of randomly chosen people, at least two will share the same birthday. The birthday paradox is the counterintuitive fact that only 23 people are needed for that ...
, if we choose (distinct) queries at random, then with high probability we find a collision in any fixed 2-to-1 function after \Theta(\sqrt) queries.


Quantum solution

The
BHT algorithm In quantum computing, the Brassard–Høyer–Tapp algorithm or BHT algorithm is a quantum algorithm that solves the collision problem. In this problem, one is given ''n'' and an ''r''-to-1 function f:\,\\rightarrow\ and needs to find two inputs ...
, which uses
Grover's algorithm In quantum computing, Grover's algorithm, also known as the quantum search algorithm, is a quantum algorithm for unstructured search that finds with high probability the unique input to a black box function that produces a particular output value, ...
, solves this problem optimally by only making O(n^) queries to ''f''. The matching lower bound of \Omega(n^) was proved by Aaronson and Shi using the polynomial method{{cite web , author = Scott Aaronson and Yaoyun Shi, title = Quantum lower bounds for the collision and the element distinctness problems , year = 2004, url = https://doi.org/10.1145/1008731.1008735.


References

Algorithms Polynomial-time problems