Abstract
The element distinctness problem is the problem of determining whether the elements of a list are distinct. For example, suppose we have a list x with \(N=9\) elements, which are in the range [20, 50], such as \(x=(25, 27, 39, 43, 39, 35, 30, 42, 28)\). Note that the third and the fifth elements are equal. We say that the elements in positions 3 and 5 collide. As a decision problem, the goal is to answer “yes” if there is a collision or “no” if there is no collision. In order to simplify the description of the quantum algorithm that solves this problem, we assume that there is either one 2-collision or none. If there is a collision, then there are indices \(i_1\) and \(i_2\) such that \(x_{i_1}=x_{i_2}\). With a small overhead, we can find explicitly the indices \(i_1\) and \(i_2\) when the algorithm returns “yes.”
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
Set S must be stored in a unique way independent of how it was created by choosing a suitable data structure. In the example, we display S sorted in increasing order, that is, after performing the cyclic permutation, S is sorted.
- 2.
It is important to stress that Ambainis’s algorithm employs a quantum walk on a bipartite graph that is neither a Johnson graph nor the duplication of a Johnson graph.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Copyright information
© 2018 Springer Nature Switzerland AG
About this chapter
Cite this chapter
Portugal, R. (2018). Element Distinctness. In: Quantum Walks and Search Algorithms. Quantum Science and Technology. Springer, Cham. https://doi.org/10.1007/978-3-319-97813-0_10
Download citation
DOI: https://doi.org/10.1007/978-3-319-97813-0_10
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-97812-3
Online ISBN: 978-3-319-97813-0
eBook Packages: Physics and AstronomyPhysics and Astronomy (R0)