Quantum Query Complexity of Dyck Languages with Bounded Height
arXiv:1912.02176
Abstract
We consider the problem of determining if a sequence of parentheses is well parenthesized, with a depth of at most h. We denote this language as . We study the quantum query complexity of this problem for different h as function of the length n of the word. It has been known from a recent paper by Aaronson et al. that, for any constant h, since is star-free, it has quantum query complexity , where the hidden logarithm factors in depend on h. Their proof does not give rise to an algorithm. When h is not a constant, is not even context-free. We give an algorithm with quantum queries for for all h. This is better than the trival upper bound when . We also obtain lower bounds: we show that for every , there exists such that . When , the quantum query complexity is close to , i.e. for all . Furthermore when for some , .