Next Article in Journal
A New Family of Distributions Based on Proportional Hazards
Next Article in Special Issue
GPS: A New TSP Formulation for Its Generalizations Type QUBO
Previous Article in Journal
A Novel Generalization of Bézier-like Curves and Surfaces with Shape Parameters
Previous Article in Special Issue
On the Amplitude Amplification of Quantum States Corresponding to the Solutions of the Partition Problem
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Quantum Algorithms for Some Strings Problems Based on Quantum String Comparator †

1
Institute of Computational Mathematics and Information Technologies, Kazan Federal University, Kremlevskaya 18, 420008 Kazan, Russia
2
Center for Quantum Computer Science, Faculty of Computing, University of Latvia, Raina 19, LV-1586 Riga, Latvia
*
Author to whom correspondence should be addressed.
This paper is an extended version of our paper published in Proceedings of TPNC2019 Conference.
Mathematics 2022, 10(3), 377; https://doi.org/10.3390/math10030377
Submission received: 12 November 2021 / Revised: 24 December 2021 / Accepted: 22 January 2022 / Published: 26 January 2022
(This article belongs to the Special Issue Quantum Computing Algorithms and Computational Complexity)

Abstract

We study algorithms for solving three problems on strings. These are sorting of n strings of length k, “the Most Frequent String Search Problem”, and “searching intersection of two sequences of strings”. We construct quantum algorithms that are faster than classical (randomized or deterministic) counterparts for each of these problems. The quantum algorithms are based on the quantum procedure for comparing two strings of length k in O(k) queries. The first problem is sorting n strings of length k. We show that classical complexity of the problem is Θ(nk) for constant size alphabet, but our quantum algorithm has O˜(nk) complexity. The second one is searching the most frequent string among n strings of length k. We show that the classical complexity of the problem is Θ(nk), but our quantum algorithm has O˜(nk) complexity. The third problem is searching for an intersection of two sequences of strings. All strings have the same length k. The size of the first set is n, and the size of the second set is m. We show that the classical complexity of the problem is Θ((n+m)k), but our quantum algorithm has O˜((n+m)k) complexity.
Keywords: quantum computation; quantum algorithms; string processing; sorting quantum computation; quantum algorithms; string processing; sorting

Share and Cite

MDPI and ACS Style

Khadiev, K.; Ilikaev, A.; Vihrovs, J. Quantum Algorithms for Some Strings Problems Based on Quantum String Comparator. Mathematics 2022, 10, 377. https://doi.org/10.3390/math10030377

AMA Style

Khadiev K, Ilikaev A, Vihrovs J. Quantum Algorithms for Some Strings Problems Based on Quantum String Comparator. Mathematics. 2022; 10(3):377. https://doi.org/10.3390/math10030377

Chicago/Turabian Style

Khadiev, Kamil, Artem Ilikaev, and Jevgenijs Vihrovs. 2022. "Quantum Algorithms for Some Strings Problems Based on Quantum String Comparator" Mathematics 10, no. 3: 377. https://doi.org/10.3390/math10030377

APA Style

Khadiev, K., Ilikaev, A., & Vihrovs, J. (2022). Quantum Algorithms for Some Strings Problems Based on Quantum String Comparator. Mathematics, 10(3), 377. https://doi.org/10.3390/math10030377

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop