Skip to main content

Element Distinctness

  • Chapter
  • First Online:
Quantum Walks and Search Algorithms

Part of the book series: Quantum Science and Technology ((QST))

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.”

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 149.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 199.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 199.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 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. 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

Authors

Corresponding author

Correspondence to Renato Portugal .

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

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

Publish with us

Policies and ethics