English

Quantum algorithm for tree size estimation, with applications to backtracking and 2-player games

Quantum Physics 2022-12-29 v3 Computational Complexity Data Structures and Algorithms

Abstract

We study quantum algorithms on search trees of unknown structure, in a model where the tree can be discovered by local exploration. That is, we are given the root of the tree and access to a black box which, given a vertex vv, outputs the children of vv. We construct a quantum algorithm which, given such access to a search tree of depth at most nn, estimates the size of the tree TT within a factor of 1±δ1\pm \delta in O~(nT)\tilde{O}(\sqrt{nT}) steps. More generally, the same algorithm can be used to estimate size of directed acyclic graphs (DAGs) in a similar model. We then show two applications of this result: a) We show how to transform a classical backtracking search algorithm which examines TT nodes of a search tree into an O~(Tn3/2)\tilde{O}(\sqrt{T}n^{3/2}) time quantum algorithm, improving over an earlier quantum backtracking algorithm of Montanaro (arXiv:1509.02374). b) We give a quantum algorithm for evaluating AND-OR formulas in a model where the formula can be discovered by local exploration (modeling position trees in 2-player games). We show that, in this setting, formulas of size TT and depth To(1)T^{o(1)} can be evaluated in quantum time O(T1/2+o(1))O(T^{1/2+o(1)}). Thus, the quantum speedup is essentially the same as in the case when the formula is known in advance.

Keywords

Cite

@article{arxiv.1704.06774,
  title  = {Quantum algorithm for tree size estimation, with applications to backtracking and 2-player games},
  author = {Andris Ambainis and Martins Kokainis},
  journal= {arXiv preprint arXiv:1704.06774},
  year   = {2022}
}

Comments

Parameters for Algorithm 1 and the proof of Lemma 16 corrected. We thank Mark Goh for pointing out that Lemma 16 in the previous version was incorrect

R2 v1 2026-06-22T19:24:31.082Z