Near-Optimal Quantum Algorithms for String Problems

被引:0
|
作者
Shyan Akmal
Ce Jin
机构
[1] MIT,
来源
Algorithmica | 2023年 / 85卷
关键词
String processing; Quantum walks; Longest common substring; String synchronizing sets;
D O I
暂无
中图分类号
学科分类号
摘要
We study quantum algorithms for several fundamental string problems, including Longest Common Substring, Lexicographically Minimal String Rotation, and Longest Square Substring. These problems have been widely studied in the stringology literature since the 1970s, and are known to be solvable by near-linear time classical algorithms. In this work, we give quantum algorithms for these problems with near-optimal query complexities and time complexities. Specifically, we show that: Longest Common Substring can be solved by a quantum algorithm in O~(n2/3)\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\tilde{O}(n^{2/3})$$\end{document} time, improving upon the recent O~(n5/6)\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\tilde{O}(n^{5/6})$$\end{document}-time algorithm by Le Gall and Seddighin (in: Proceedings of the 13th innovations in theoretical computer science conference (ITCS 2022), pp 97:1–97:23, 2022. https://doi.org/10.4230/LIPIcs.ITCS.2022.97). Our algorithm uses the MNRS quantum walk framework, together with a careful combination of string synchronizing sets (Kempa and Kociumaka, in: Proceedings of the 51st annual ACM SIGACT symposium on theory of computing (STOC 2019), ACM, pp 756–767, 2019. https://doi.org/10.1145/3313276.3316368) and generalized difference covers. Lexicographically Minimal String Rotation can be solved by a quantum algorithm in n1/2+o(1)\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$n^{1/2 + o(1)}$$\end{document} time, improving upon the recent O~(n3/4)\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\tilde{O}(n^{3/4})$$\end{document}-time algorithm by Wang and Ying (in: Quantum algorithm for lexicographically minimal string rotation. CoRR, 2020. arXiv:2012.09376). We design our algorithm by first giving a new classical divide-and-conquer algorithm in near-linear time based on exclusion rules, and then speeding it up quadratically using nested Grover search and quantum minimum finding. Longest Square Substring can be solved by a quantum algorithm in O~(n)\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\tilde{O}(\sqrt{n})$$\end{document} time. Our algorithm is an adaptation of the algorithm by Le Gall and Seddighin (2022) for the Longest Palindromic Substring problem, but uses additional techniques to overcome the difficulty that binary search no longer applies. Our techniques naturally extend to other related string problems, such as Longest Repeated Substring, Longest Lyndon Substring, and Minimal Suffix.
引用
收藏
页码:2260 / 2317
页数:57
相关论文
共 50 条
  • [1] Near-Optimal Quantum Algorithms for String Problems
    Akmal, Shyan
    Jin, Ce
    [J]. ALGORITHMICA, 2023, 85 (08) : 2260 - 2317
  • [2] Near-Optimal Quantum Algorithms for String Problems
    Akmal, Shyan
    Jin, Ce
    [J]. PROCEEDINGS OF THE 2022 ANNUAL ACM-SIAM SYMPOSIUM ON DISCRETE ALGORITHMS, SODA, 2022, : 2791 - 2832
  • [3] Near-Optimal Algorithms for Maximum Constraint Satisfaction Problems
    Charikar, Moses
    Makarychev, Konstantin
    Makarychev, Yury
    [J]. ACM TRANSACTIONS ON ALGORITHMS, 2009, 5 (03)
  • [4] Near-Optimal Algorithms for Maximum Constraint Satisfaction Problems
    Charikar, Moses
    Makarychev, Konstantin
    Makarychev, Yury
    [J]. PROCEEDINGS OF THE EIGHTEENTH ANNUAL ACM-SIAM SYMPOSIUM ON DISCRETE ALGORITHMS, 2007, : 62 - 68
  • [5] Near-Optimal Quantum Algorithms for Multivariate Mean Estimation
    Cornelissen, Arjan
    Hamoudi, Yassine
    Jerbi, Sofiene
    [J]. PROCEEDINGS OF THE 54TH ANNUAL ACM SIGACT SYMPOSIUM ON THEORY OF COMPUTING (STOC '22), 2022, : 33 - 43
  • [6] Near-Optimal Separators in String Graphs
    Matousek, Jiri
    [J]. COMBINATORICS PROBABILITY & COMPUTING, 2014, 23 (01): : 135 - 139
  • [7] NEAR-OPTIMAL ALGORITHMS FOR POINT-LINE FITTING PROBLEMS
    Chen, Jianer
    Huang, Qin
    Kanj, Iyad
    Xia, Ge
    [J]. JOURNAL OF COMPUTATIONAL GEOMETRY, 2022, 13 (01) : 226 - 243
  • [8] Near-Optimal Online Algorithms for Prize-Collecting Steiner Problems
    Hajiaghayi, MohammadTaghi
    Liaghat, Vahid
    Panigrahi, Debmalya
    [J]. AUTOMATA, LANGUAGES, AND PROGRAMMING (ICALP 2014), PT I, 2014, 8572 : 576 - 587
  • [9] A CLASS OF NEAR-OPTIMAL JPDA ALGORITHMS
    ROECKER, JA
    [J]. IEEE TRANSACTIONS ON AEROSPACE AND ELECTRONIC SYSTEMS, 1994, 30 (02) : 504 - 510
  • [10] Near-Optimal Scheduling of Distributed Algorithms
    Ghaffari, Mohsen
    [J]. PODC'15: PROCEEDINGS OF THE 2015 ACM SYMPOSIUM ON PRINCIPLES OF DISTRIBUTED COMPUTING, 2015, : 3 - 12