English

Quantum Algorithms for the Most Frequently String Search, Intersection of Two String Sequences and Sorting of Strings Problems

Quantum Physics 2020-01-08 v1 Data Structures and Algorithms

Abstract

We study algorithms for solving three problems on strings. The first one is the Most Frequently String Search Problem. The problem is the following. Assume that we have a sequence of nn strings of length kk. The problem is finding the string that occurs in the sequence most often. We propose a quantum algorithm that has a query complexity O~(nk)\tilde{O}(n \sqrt{k}). This algorithm shows speed-up comparing with the deterministic algorithm that requires Ω(nk)\Omega(nk) queries. The second one is searching intersection of two sequences of strings. All strings have the same length kk. The size of the first set is nn and the size of the second set is mm. We propose a quantum algorithm that has a query complexity O~((n+m)k)\tilde{O}((n+m) \sqrt{k}). This algorithm shows speed-up comparing with the deterministic algorithm that requires Ω((n+m)k)\Omega((n+m)k) queries. The third problem is sorting of nn strings of length kk. On the one hand, it is known that quantum algorithms cannot sort objects asymptotically faster than classical ones. On the other hand, we focus on sorting strings that are not arbitrary objects. We propose a quantum algorithm that has a query complexity O(n(logn)2k)O(n (\log n)^2 \sqrt{k}). This algorithm shows speed-up comparing with the deterministic algorithm (radix sort) that requires Ω((n+d)k)\Omega((n+d)k) queries, where dd is a size of the alphabet.

Keywords

Cite

@article{arxiv.2001.01914,
  title  = {Quantum Algorithms for the Most Frequently String Search, Intersection of Two String Sequences and Sorting of Strings Problems},
  author = {Kamil Khadiev and Artem Ilikaev},
  journal= {arXiv preprint arXiv:2001.01914},
  year   = {2020}
}

Comments

THe paper was presented on TPNC 2019

R2 v1 2026-06-23T13:04:41.054Z