English

Quantum Lower and Upper Bounds for 2D-Grid and Dyck Language

Data Structures and Algorithms 2020-07-10 v2 Computational Complexity Quantum Physics

Abstract

We study the quantum query complexity of two problems. First, we consider the problem of determining if a sequence of parentheses is a properly balanced one (a Dyck word), with a depth of at most kk. We call this the Dyckk,nDyck_{k,n} problem. We prove a lower bound of Ω(ckn)\Omega(c^k \sqrt{n}), showing that the complexity of this problem increases exponentially in kk. Here nn is the length of the word. When kk is a constant, this is interesting as a representative example of star-free languages for which a surprising O~(n)\tilde{O}(\sqrt{n}) query quantum algorithm was recently constructed by Aaronson et al. Their proof does not give rise to a general algorithm. When kk is not a constant, Dyckk,nDyck_{k,n} is not context-free. We give an algorithm with O(n(logn)0.5k)O\left(\sqrt{n}(\log{n})^{0.5k}\right) quantum queries for Dyckk,nDyck_{k,n} for all kk. This is better than the trival upper bound nn for k=o(log(n)loglogn)k=o\left(\frac{\log(n)}{\log\log n}\right). Second, we consider connectivity problems on grid graphs in 2 dimensions, if some of the edges of the grid may be missing. By embedding the "balanced parentheses" problem into the grid, we show a lower bound of Ω(n1.5ϵ)\Omega(n^{1.5-\epsilon}) for the directed 2D grid and Ω(n2ϵ)\Omega(n^{2-\epsilon}) for the undirected 2D grid. The directed problem is interesting as a black-box model for a class of classical dynamic programming strategies including the one that is usually used for the well-known edit distance problem. We also show a generalization of this result to more than 2 dimensions.

Keywords

Cite

@article{arxiv.2007.03402,
  title  = {Quantum Lower and Upper Bounds for 2D-Grid and Dyck Language},
  author = {Andris Ambainis and Kaspars Balodis and Jānis Iraids and Kamil Khadiev and Vladislavs Kļevickis and Krišjānis Prūsis and Yixin Shen and Juris Smotrovs and Jevgēnijs Vihrovs},
  journal= {arXiv preprint arXiv:2007.03402},
  year   = {2020}
}

Comments

arXiv admin note: substantial text overlap with arXiv:1911.12638

R2 v1 2026-06-23T16:54:56.458Z