Quantum algorithm for Dyck Language with Multiple Types of Brackets
We consider the recognition problem of the Dyck Language generalized for multiple types of brackets. We provide an algorithm with quantum query complexity O(√(n)(log n)^0.5k), where n is the length of input and k is the maximal nesting depth of brackets. Additionally, we show the lower bound for this problem which is O(√(n)c^k) for some constant c. Interestingly, classical algorithms solving the Dyck Language for multiple types of brackets substantially differ form the algorithm solving the original Dyck language. At the same time, quantum algorithms for solving both kinds of the Dyck language are of similar nature and requirements.
READ FULL TEXT