English

Classical and Quantum Algorithms for Constructing Text from Dictionary Problem

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

Abstract

We study algorithms for solving the problem of constructing a text (long string) from a dictionary (sequence of small strings). The problem has an application in bioinformatics and has a connection with the Sequence assembly method for reconstructing a long DNA sequence from small fragments. The problem is constructing a string tt of length nn from strings s1,,sms^1,\dots, s^m with possible intersections. We provide a classical algorithm with running time O(n+L+m(logn)2)=O~(n+L)O\left(n+L +m(\log n)^2\right)=\tilde{O}(n+L) where LL is the sum of lengths of s1,,sms^1,\dots,s^m. We provide a quantum algorithm with running time O(n+logn(logm+loglogn)mL)=O~(n+mL)O\left(n +\log n\cdot(\log m+\log\log n)\cdot \sqrt{m\cdot L}\right)=\tilde{O}\left(n +\sqrt{m\cdot L}\right). Additionally, we show that the lower bound for the classical algorithm is Ω(n+L)\Omega(n+L). Thus, our classical algorithm is optimal up to a log factor, and our quantum algorithm shows speed-up comparing to any classical algorithm in a case of non-constant length of strings in the dictionary.

Keywords

Cite

@article{arxiv.2005.14335,
  title  = {Classical and Quantum Algorithms for Constructing Text from Dictionary Problem},
  author = {Kamil Khadiev and Vladislav Remidovskii},
  journal= {arXiv preprint arXiv:2005.14335},
  year   = {2020}
}