Manuscript Offprint
arXiv:2611.12714Polynomial-Space Quantum Algorithms from Classical Branching: Colouring, Domination and Monotone Local Search
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
We give quantum algorithms for exponential-time problems on vertices or elements with bounded error, polynomial space and no quantum random access memory. Our results are these:
-
4-Colouring can be solved in quantum time , from the polynomial-space branching algorithm of [43] with terminal algorithms of [45]. With [43] alone the bound is .
-
For and , -Colouring can be solved in quantum time below the previous best bound in this model to our knowledge, from for to for .
-
Dominating Set can be solved in quantum time , Independent Dominating Set in , and Edge Dominating Set and Minimum Maximal Matching in .
-
A quantum form of monotone local search: if the extension problem has a backtracking tree with nodes up to polynomial factors, the problem is solved in quantum time up to polynomial factors. This gives Feedback Vertex Set in , Subset and Group Feedback Vertex Set in , Cluster Vertex Deletion in , 3-Hitting Set in , Proper Interval Vertex Deletion in , Multicut on Trees in and Min-Ones -SAT in . The approximate form gives quantum exponential-time approximations below the quantum exact bounds, such as a 1.1-approximation for Vertex Cover in and for Feedback Vertex Set in .
-
The exponents for -colouring with come from an evaluation of the reduction recursion whose values bound the running time of an explicit algorithm, computed in floating point with a margin.
To our knowledge, the previous best bounds in this model are for and to for the other values of above [36], and for Dominating Set [42]. For the other domination problems we know of no stated quantum bound; the walk on the enumeration of maximal independent sets gives .
1 Introduction
Deciding whether a graph has a proper colouring with colours is one of the basic NP-complete problems. For the algorithm of [5] is a branching algorithm in polynomial space with running time . For the algorithm of [43] is a branching algorithm in polynomial space with running time . The recent work [45] gives and , with dynamic programming over tree decompositions, which uses exponential space. For larger , colouring reduces to smaller through maximal independent sets [27, 8] and through balanced splits of the colour classes.
Quantum search applies to branching algorithms, as noted in [19], and gives the square root of the classical time of [5], so 3-colouring in quantum time . The work [36] combines this with the reductions above and gives polynomial-space quantum algorithms without quantum random access memory for every below . Their Theorem 9 takes the exponent of 3-colouring as input. With quantum random access memory, the chromatic number can be computed in time [20], which is outside the model of this paper.
For domination problems, the best polynomial-space classical algorithms are branch and reduce algorithms analysed by measure and conquer [33, 34, 7, 6, 24, 44]. For Dominating Set, a quantum bound of queries was stated in [42]. For many vertex deletion and hitting set problems the best classical bounds come from monotone local search [17], which samples part of a solution at random and completes it with a parameterized algorithm.
Our contribution. We show that the 4-colouring algorithm of [43] is a backtracking tree in the sense of [31], which gives 4-colouring in quantum time . The terminal algorithms of [45] that use no dynamic programming over decompositions keep this form, and with 3-colouring from [5] they give at most nodes, so quantum time . We then evaluate the recursion of [36] with 4-colouring as a second base case. The evaluation bounds the recursion from above on pieces of a partition, with all size limits rounded up to a grid, and we show that the algorithm can be run with these rounded limits. So the values are upper bounds on the time of an explicit algorithm. Table 1 and Figure 1 show the results. In Section 5 we show that the polynomial-space algorithms of [33, 34, 7] for domination problems are backtracking trees in their decision form, which gives the bounds of Table 2. In Section 6 we give a quantum form of monotone local search, with amplitude amplification over the samples and the walk of [31] on the extension algorithm, and apply it to the problems of Table 3.
| k | Previous best bound [36] | With [43] alone | This paper, with [43, 45] |
|---|---|---|---|
| 4 | 1.3231^n | 1.3100^n | 1.3032^n |
| 5 | 1.4695^n | 1.4578^n | 1.4518^n |
| 7 | 1.6511^n | 1.6418^n | 1.6369^n |
| 8 | 1.6585^n | 1.6481^n | 1.6427^n |
| 9 | 1.7460^n | 1.7383^n | 1.7343^n |
| 10 | 1.7775^n | 1.7679^n | 1.7629^n |
| 11 | 1.7775^n | 1.7726^n | 1.7726^n |
| 13 | 1.8499^n | 1.8442^n | 1.8413^n |
| 14 | 1.8580^n | 1.8531^n | 1.8503^n |
| 15 | 1.9303^n | 1.9225^n | 1.9183^n |
| 16 | 1.9303^n | 1.9226^n | 1.9201^n |
| 17 | 1.9303^n | 1.9242^n | 1.9217^n |
| 18 | 1.9366^n | 1.9279^n | 1.9233^n |
Table 1: Quantum time for k-colouring with bounded error, polynomial space and no quantum random access memory. All values are rounded up. The previous bounds are the best known to us. For the bounds of [36] stand.
Scope. The last column of Table 1 uses terminal algorithms of [45], an arXiv paper that is, to our knowledge, unrefereed. The column with [43] alone does not depend on it. The bound for 3-colouring in the arXiv paper [29] is not used. Its linear program, as printed, has a larger optimum [45, Appendix F], and Remark 3.3 states what follows from that program. For the rows , the arithmetic of the closed forms is checked in Lean. The rows to 18 come


Figure 1: Quantum time for -colouring with bounded error, polynomial space and no quantum random access memory. Left: the bases of [36] and of Table 1, and the bound of [20], which uses quantum random access memory. Right: the decrease of the base for each ; it is zero for .
from a floating point computation with a margin far above its rounding error, not from interval arithmetic. The bases of the domination problems come from numerically computed analyses in their sources, used as stated there. Numbers of theorems, lemmas and appendices of [36, 45] refer to their arXiv versions. Code and Lean files are at https://github.com/ssenge/LAIF, in the folders quantum-graph-colouring, quantum-dominating-set, quantum-monotone-local-search, quantum-approximate-monotone-local-search and quantum-vertex-cover, built with Lean v4.36.0-rc1 and Mathlib at revision d875a8de5222f62cf1c2fafc7984588adadc990a.
Backtracking trees. A backtracking tree is given by a root instance and a procedure that, in time poly(n), decides for an instance whether it is a leaf, and if so whether it is marked, or else lists its children. The depth is at most poly(n). Given a number computable in time poly(n), the quantum walk of [31] decides whether a tree with at most nodes has a marked leaf, with bounded error, in time and polynomial space. Its circuit depends only on and , so it can be used inside quantum search.
Maximal independent sets. By [8], an -vertex graph has at most maximal independent sets of size , for a concave piecewise linear function with , and they can be listed by a branching algorithm whose number of leaves is bounded by in the form required by Lemma 4 of [36].
3 3-Colouring and 4-Colouring
Constraint satisfaction. In a (3,2)-constraint satisfaction instance, every variable has at most three values and every constraint forbids one pair of values on two variables. A variable with

Figure 2: An instance of 4-colouring. The vertices of have colour 4, the vertices of have colours in , and the vertices of are free. The components of at the top are a and a . The component at the bottom is neither, so the instance is not terminal, and a branching rule of [43] acts on it.
at most two values can be eliminated in polynomial time (Lemma 2 of [5]). The algorithm of Theorem 1 of [5] works by reductions with one call and by branching into a constant number of smaller instances, with polynomial work per call, and it solves its leaves by a bipartite matching. Its analysis bounds the number of recursive calls by on an instance with three-valued variables, where is the largest root of . So it is a backtracking tree with at most this number of nodes.
Lemma 3.1. The 3-colouring algorithm of [5] is a backtracking tree with at most nodes on graphs with vertices, where and is a fixed polynomial.
Proof. The algorithm first applies reductions and the branching on cycles of vertices of degree three, each an OR over smaller instances. It then chooses a forest in polynomial time, and tries colourings of a set of vertices, one vertex at a time, with a node that stores the forest, the order and the partial colouring. Each such colouring leaves a (3,2)-constraint satisfaction instance. Theorem 2 of [5] bounds the product of these counts with the size of the search trees of the last step, which gives the bound on the nodes, up to the polynomial depth. This is the form used in Lemma 6 of [36].
The instances of 4-colouring. We use the framework of [43], with the notation of [45]. An instance is , where is an independent set, is disjoint from , the vertices of get colour 4, the vertices of get colours in , and the vertices of are free (Figure 2). The instance is terminal if every component of is a or a . Let and count these components. The measure is
summing over the other components of , with and for . If the weights satisfy Equation (3) of [43], then .
A nonterminal instance is replaced by the branching rules of Section 3.2 of [43]. Each rule gives instances such that has a colouring if and only if some has one, and decreases in each . Their number is a constant, except on a cycle component, where the rule takes one for each maximal independent set of the cycle. If the weights and satisfy Equations (3) and (6) to (21) of [43], then , which is Lemma 5.7 of [45]. Every clique of a terminal instance may be assumed to contain a vertex of colour 4, since one of its vertices can be recoloured with colour 4 otherwise: it has no neighbour in , and its neighbours in do not use this colour.
Terminal instances. From a terminal instance we compute in polynomial time two maximal families of disjoint copies of , one in with vertex set , and one with centres in and leaves in . Let , let be the number of vertices of in neither family, and let and count the components and with exactly centres. Then has maximum degree at most two (Lemma 5.1 of [45]). We use these terminal algorithms, all of them OR trees whose steps take polynomial time and space.
(T1) Choose the vertex of colour 4 in each clique and 3-colour the rest by Lemma 3.1 (Lemma 5.2 of [45]). The size of the tree is up to polynomial factors.
(T2) Choose the colours of the centres of both families, and restrict the cliques without centres to lists of two colours, then solve the (3,2)-constraint satisfaction instance (Lemma 5.4 of [45]). The size is , with , , and for . The factor 9/2 comes from a family of list assignments on blocks of triangles, chosen greedily in polynomial time (Lemma 5.3 of [45]).
(T3) Enumerate the colours of and of the cliques, then solve list colouring on the paths and cycles in polynomial time (Lemma 5.5 of [45]). The size is up to polynomial factors.
(T4) Enumerate the sets of at most triangles that miss one fixed colour of , which suffices by the symmetry of these colours, restrict the domains as in Section 3.1 of [43], and solve the -constraint satisfaction instances. The size is up to polynomial factors.
Theorem 3.2. 4-Colouring has a quantum algorithm with bounded error, polynomial space and no quantum random access memory, running in time . With the terminal algorithm (T4) alone, the time is .
Proof. The tree starts at , branches by the rules above and, at a terminal instance, computes the numbers and runs the terminal algorithm with the smallest stated size. A node stores the instance and the choices made so far, and a choice among polynomially many values is one step. On a cycle component the maximal independent set is chosen one vertex at a time, keeping only choices that can still be completed, so each such node lies above some and these nodes add a polynomial factor. The leaves are the leaves of the trees, of the 3-colouring trees, or of the list colouring step, and a leaf is marked if it gives a colouring. So there is a marked leaf if and only if is 4-colourable, and the depth is polynomial.
For the size, write , and write each terminal size as with a row read off from (T1), (T2) and (T3). Lemma 5.8 of [45] gives the following. If with and for all , then at every terminal instance. Since over the terminal instances , the number of nodes is at most times a polynomial and a factor . All constraints hold at with
and . Our script checks each constraint with 60 digits and a margin of . So there are constants and with at most nodes on every graph with vertices. The walk of [31] with this bound decides 4-colourability in time , the same for every input of size , and . For (T4) alone, the parameters of Table 2 of [43] satisfy its Equations (3) to (21), where (4) and (5) bound the size of
(T4) by at r = 1.7159. This is the proof of Theorem 8 of [43], and it gives the bound with base 1.7159, and .
A colouring follows by self-reduction. Add a on four new vertices. For each vertex in turn, merge with one of the new vertices, and keep the first merge that leaves a 4-colourable graph. The graph has at most vertices throughout, so this costs a factor and a constant factor in the time.
The classical bound of [45] uses its 3-colouring algorithm in (T1), which needs exponential space, while its (T2) and (T3) do not. So the classical form of the tree above is a polynomial-space 4-colouring algorithm in time , implied by [43, 45].
Remark 3.3. The work [29] gives a 3-colouring algorithm through a new choice of the forests and a linear program over their structure. The running time stated there is , while the program as printed has optimum 1.32702 [45, Appendix F]. This does not bound the running time from below, and further constraints on the forests may lower the optimum. The algorithm has the steps of Lemma 3.1. Its vertices are coloured in the order of its forests, so it is a backtracking tree. If the constraints of that program hold for its forests, it has at most nodes. In that case the same computation gives quantum time for 3-colouring, for k = 6, for k = 12 and for k = 19, and for k = 11, with the other rows of Table 1 unchanged. If 1.3217 holds, the 3-colouring bound becomes .
4 k-Colouring
4.1 The recursion
Let be a procedure that answers yes if the vertex set of , of size , splits into independent sets of size at most each, answers no if is not -colourable, and may answer either otherwise. Then decides -colourability. Calling with a larger only weakens the first condition, so it is always correct to replace by a larger value.
Theorem 9 of [36] gives such a procedure for from two reductions, each with quantum search over its choices.
-
Reduction 1. Search over the maximal independent sets of size , and call . In a colouring with classes the largest class can be extended to a maximal independent set, which has size at least .
-
Reduction 2. Fix . Search over the sets of size with , and answer yes if and both answer yes. For the graph is empty and the second call is omitted. If is the union of the largest classes of a colouring with classes of size at most , then has this size, its classes have size at most , and the remaining classes are at most the average of the largest ones.
Let and be exponents of 3-colouring and 4-colouring, let and , and for and let
Line (1) is the time of Reduction 1: quantum search over sets costs for , the maximum of over is attained at some , since E is piecewise linear with breakpoints at these points (Corollary 3 of [36]), and . The term s = 1 is 0 and is included only to make the range simple; [36] uses . Line (2) is the time of Reduction 2, with sets. By Theorem 9 of [36], k-colouring has a quantum algorithm in time with bounded error, polynomial space and no quantum random access memory. An algorithm that decides 4-colourability is a correct for every , so the bound may replace when it is smaller. The depth of the recursion is at most , so the factors from nested search and error reduction stay polynomial.
4.2 Evaluation as an upper bound
The maximum over in (2) has no closed form, and and are needed at many arguments. We replace both by quantities that the algorithm itself can use.
Fix a grid for , and let be the smallest grid point at least , for . For each range , fix a partition into pieces . Define , , and for let be the minimum of if , of line (1) with in place of and of
where the argument of is 1 when b = 1.
Proposition 4.1. For every and grid point , there is a quantum procedure with bounded error, polynomial space and no quantum random access memory, in time .
Proof. By induction on . For colouring takes polynomial time, and for we use Lemma 3.1 and the walk of [31] and ignore . For we may also use Theorem 3.2 and ignore . Let . Reduction 1 calls , and is a grid point, so its time is line (1) with .
For Reduction 2 with a fixed , every size t in the search has in some piece [a,b]. For t in this piece we call
These limits are at least the ones of Reduction 2: since , the classes of have size at most , and since , the remaining classes have size at most . A limit of 1 always holds, and it is the one used when , where can still have up to vertices. So the procedure stays correct. These limits lie in the domain of : since we have , and since we have . For fixed , and there are finitely many pieces and grid points, so all polynomial factors are uniform. By induction the two calls take time and at the stated grid points, and and . Quantum search over the sets of size costs a factor . Summing over the polynomially many and taking the best gives (3). The procedure is run with and the reduction fixed in advance, and the base cases have a running time that depends only on , so the circuit is the same for every input of size .
A call decides k-colourability, so is an exponent for k-colouring.
4.3 The values
Take from Lemma 3.1, and from Theorem 3.2, or for the column with [43] alone.
Rows . Theorem 3.2 gives the row . For line (1) suffices. Its term for equals with , and this is at most whenever . With and , and with and , these are polynomial inequalities for , all true.
Rows to 20. We evaluate (3) with , equal pieces, and add to each exponent, which is far above the floating point error. Table 1 shows the results, rounded up. The optimal at is for , and for .
As a test of the evaluation, the same computation without gives the precise values of Tables 2 and 3 of [36] to within 0.0008 in the base, and in all rows at least these values, as expected from an upper bound.
5 Domination problems
A dominating set of a graph is a set of vertices such that every vertex is in or has a neighbour in . An independent dominating set is a dominating set with no edge inside it, and an edge dominating set is a set of edges such that every edge shares an endpoint with one of them. Minimum Maximal Matching asks for a smallest maximal matching. In each case the decision version asks for a solution of size at most .
| Problem | Previous best bound | This paper |
|---|---|---|
| Dominating Set | quantum [42]; quantum from [18]; [24], [33] classical | |
| Independent Dominating Set | [6], [7] classical; quantum | |
| Edge Dominating Set | [44], [34] classical; quantum | |
| Minimum Maximal Matching | classical [44, 34]; quantum | |
| Weighted versions of the last two | classical [34]; quantum |
Table 2: Domination problems on vertices. The classical bounds of [24, 33, 34, 7] are for polynomial space, and the previous bounds are the best known to us. The quantum bounds are for bounded error, polynomial space and no quantum random access memory, up to polynomial factors. The quantum value is the walk on the branching enumeration of maximal independent sets, with at most leaves [30], and for edge domination of the minimal vertex covers; to our knowledge it has not been stated. The value is the walk on the enumeration of minimal dominating sets, if that enumeration is a backtracking tree. The bound for Minimum Maximal Matching is implied by [44] through the conversion in [34]. For unweighted graphs, Minimum Maximal Matching and Edge Dominating Set have the same optimum, with a conversion in polynomial time [34].
Theorem 5.1. With bounded error, polynomial space and no quantum random access memory, Dominating Set has a quantum algorithm in time , Independent Dominating Set one in time , and Edge Dominating Set, Minimum Maximal Matching and their weighted versions with non-negative integer weights of polynomial bit length have quantum algorithms in time .
Proof. For each problem we show that the decision version of the classical algorithm, with a budget , is a backtracking tree. Each step of these algorithms has the form with values computed in polynomial time, which is equivalent to the OR of the decisions on with budget . So each node answers, makes one call with a new budget, or branches into the OR of polynomially many children; it computes them in polynomial time and stores an instance of polynomial size, and the depth is polynomial. A node is labelled by its path of child indices in binary, so that the walk sees a tree of constant degree, also where two paths reach the same instance. The classical analysis bounds the number of leaves of the full search tree by for the classical base and a fixed polynomial , and the tree for a budget is a subtree of it. The depth is at most for Dominating Set, since each step removes a set or an element and the rule below removes three sets and two elements and adds one set; at most for edge domination, since each step lowers the number of undecided vertices; and at most for Independent Dominating Set, counting vertices, free vertices and edges. So the tree has at most nodes. The walk of [31] with the bound then decides the problem in time , the same for every input of size . Trying every budget, or a binary search for integer weights, gives the optimum. A solution follows by descending the tree from the root, running the detection on each child and moving to one that contains a marked leaf, then replaying the path and undoing each reduction as in the sources, in polynomial time; with errors amplified to per call this costs a polynomial factor.
Dominating Set. Algorithm 4 of [33], in the numbering of its technical report, works on the set cover instance with the closed neighbourhoods as sets over the vertices. If no element is left, it answers yes when ; if or an element lies in no set, it answers no; if all sets have at most two elements, a maximum matching gives the minimum cover, which it compares with k. Its reduction rules make one call each. An element of frequency one forces its set, with budget k - 1. A set contained in another set, and an element whose sets include all sets of another element, are removed, with budget k. The counting rule of [33] takes a set, with budget k - 1. The rule for a set of two elements of frequency two, with second sets and , replaces by on the elements outside R. Since the subset rules are applied first, and . By the argument in [33], the minimum cover then drops by exactly one, so the call has budget k - 1. Otherwise the algorithm branches on a set S of maximum size, into taking S with budget k - 1 or discarding S with budget k. Its running time is in polynomial space [33], and .
Independent Dominating Set. The algorithm of [7] keeps vertices free or marked; a marked vertex may not enter the solution and must still be dominated. For a chosen vertex , some free is in the solution, and the algorithm branches over these , removes and lowers the budget by one, marking the vertices tried in earlier branches. Its other steps have the same form: binary branches that take a vertex or mark it, branches that take several vertices together, forced additions, removal of equivalent vertices and of edges between marked vertices, and prunings of branches that cannot improve the solution. The analysis uses a measure of at most that is a sum of non-negative vertex weights. Some branchings are analysed there together with the branching that follows on a marked vertex of degree at most two created by the first one. We let the algorithm branch next on that vertex and count the two steps as one node. With this, the cases of the analysis give factor at most at every node other than a branching on a vertex of minimum degree in a regular component with degree , which we call bad. The recurrence printed in the statement of Lemma 6 of [7] has factor 1.4051, while each case in its proof has factor at most 1.3413. A vertex of minimum degree with a neighbour of larger degree is preferred, so all minimum-degree vertices lie in regular components at a bad branching. Remark 1 of [7] counts bad branchings as finitely many. On a disjoint union of regular components they can occur once per component, so we complete the argument with one more step. Fix . A connected component with at most vertices is solved directly in constant time, and the algorithm makes one call on the rest with budget , or answers no if has no solution. If this step removes the component of the marked vertex between the two steps of a combined node, that branch drops by the whole measure of the component, which is at least the drop in each child of the second step, since those children change only vertices of the component. So the combined node keeps its bound. Now take two bad branchings on a path from the root, with components and later . No vertices are added and degrees do not increase, and the first branching removes a vertex of . So either is disjoint from , or is a proper subset of the connected graph , in which case it has smaller degree. These components therefore form a laminar family of depth at most 4. Each of them has more than vertices, since smaller components are removed first, and the members at the same height in the family are disjoint. So a path has at most bad branchings. A bad branching has at most children and the measure does not increase, so its sum is at most 6, and every other node, combined as above, has sum at most 1. Giving each leaf the product along its path of divided by the sum at the node, the weights of the leaves add up to one, and each weight is at least . So there are at most leaves, and . The algorithm with this extra step uses polynomial space.
Edge Dominating Set and Minimum Maximal Matching. Algorithm 4 of [34], in the numbering of its technical report, splits the vertices into a vertex cover , an independent set and undecided vertices . A clique component of of any size is handled by one call on the graph with a new vertex joined to , with and , whose optimum is exactly one larger, so the call has budget . The new vertices keep the graph at most vertices. Otherwise it branches on an undecided vertex, into with its undecided neighbours into , or into , and on the paths and cycles of into two or a constant number of children. At a leaf is a vertex cover, and the smallest edge dominating set whose endpoints include is computed through a maximum matching. Unweighted Minimum Maximal Matching has the same decision problem by the conversion in [34]. For the weighted versions, Algorithm 5 of [34] replaces the clique rule by its Rule 2, which puts isolated undecided vertices into with budget , and its Rule 3, one call on cliques of two or three vertices with the budget raised by the weight of the new edge, and larger cliques are branched on. Algorithm 7 of [34] replaces the clique rule by its Rule 4, one call on a clique component of any size with zero-weight new edges and budget . Their leaves are a generalized edge cover or a perfect matching, both computed in polynomial time. The running time is in polynomial space, and .
The faster algorithms of [24] for Dominating Set, of [6] for Independent Dominating Set and of [44] for Edge Dominating Set and unweighted Minimum Maximal Matching would give the bounds , and by the same argument if they are backtracking trees in this sense. Their structure is not covered here.
6 Monotone local search
Monotone local search [17] turns an algorithm that extends a partial solution into an exact algorithm. An implicit set system maps an instance of size to a universe of elements and a family of subsets, with membership decidable in polynomial time. The problem -Subset asks for a set in . The problem -Extension asks, for and an integer , whether some with has . If -Extension is solved in time , then -Subset is solved by a randomized algorithm in time [17].
Theorem 6.1. Let , and suppose that -Extension is decided by a backtracking tree with at most nodes, for a fixed polynomial . Then -Subset has a quantum algorithm with bounded error, polynomial space and no quantum random access memory, in time . The same holds in the permissive form where the tree, on , accepts whenever some with has , and each accepting leaf gives a set of any size with .
Proof. Fix , and let minimize . Prepare the uniform superposition over the subsets of size , which takes polynomially many gates. On each , run the walk of [31] on the tree of with the bound , with its error reduced to by a majority over runs and with measurements deferred: compute the answer, copy it into one qubit, and uncompute. This oracle takes time , the same for every . Let and . Measure once without amplification and once after rounds of amplitude amplification [3, 4], for uniform in , and accept if a measured passes the extension decision again, with a majority over runs. Do this for every . The walk needs an explicit bound on the nodes of the full tree, explored without stopping at an accepting leaf.
If contains a set of size , every with is a yes-instance of the extension, with as completion, so with an exact oracle the success probability of the start state is at least . If , the measurement without amplification succeeds with probability above . Otherwise , so . Then
An oracle with error differs from the exact one by in norm per call, so , at a cost of repetitions, changes this by at most . If is empty, no sample is marked, also in the permissive form, and the final check rejects except with small probability. A constant number of repetitions gives bounded error.
The run for takes time , the square root of the classical run in [17]. By Lemma 2.2 of [17], , so the total time over all is . The space is that of the walk and of sample qubits. A solution follows from an accepted by descending the extension tree with the walk at each child and reading it off the accepting leaf. In the exact form, if the leaves do not give , use self-reduction: stop if the current set is in , and otherwise for outside the current set , run the decision on with the remaining budget and keep the first accepted.
Theorem 6.2. With bounded error, polynomial space and no quantum random access memory, the problems of Table 3 have quantum algorithms with the running times listed there, up to polynomial factors.
Proof. In each case, removing (deleting the vertices, cutting the edges or setting the variables to one and simplifying; for hitting sets, removing the hyperedges hit by and lowering the weight bound by the weight of ) turns the extension instance into an instance of the same
| Problem | Extension algorithm | c | Classical, same extension | This paper |
|---|---|---|---|---|
| Feedback Vertex Set | branching [21] | 3.460 | ||
| Cluster Vertex Deletion | branching [38] | 1.811 | ||
| Subset and Group Feedback Vertex Set | LP-branching [22] | 4 | ||
| Node Unique Label Cover, fixed labels | LP-branching [22] | |||
| 3-Hitting Set, also weighted | branching [37] | 2.168 | ||
| Proper Interval Vertex Deletion | branching [9] | 6 | ||
| Multicut on Trees | branch and search [25] | |||
| Min-Ones -SAT, ; -Hitting Set, | clause branching [17] |
Table 3: Corollaries of Theorem 6.1. For Multicut on Trees, is the number of edges. For the last row gives , and . The classical column applies [17] to the same extension algorithm; for -Hitting Set [17] gives faster classical bounds through other extension algorithms, such as for 3-Hitting Set.
problem with budget , and we check that the algorithm is a backtracking tree whose number of nodes is bounded by its stated running time. The measure and conquer analyses prove a bound on the leaves of the full tree by induction on the measure, for a constant that is hard-wired into the bound, and the depth is a fixed polynomial, which gives the explicit bound .
Feedback Vertex Set. The algorithm of [21] works on with undeletable vertices , empty at the start. Its reductions delete a vertex, bypass a vertex of degree two or lower a multiplicity, each with one call of budget or . A reduction to matroid matching answers in polynomial time when the maximum degree is at most three, and a pruning rule answers no. Otherwise it branches into deleting a vertex of maximum degree, with budget , or contracting with its neighbours in into , with budget . Every branch removes a free vertex and every reduction shrinks the multigraph, so the depth is polynomial. The measure of [21] is at the start and nonnegative after pruning, so the full tree has leaves, and .
Cluster Vertex Deletion. The reductions of [38] answer or make one call. Its branching rules branch over the twins of a vertex and over the members of a dominating family of vertex covers of an auxiliary graph, computed by a recursion that branches on a constant number of sets in each step. This family can be large, so we expand the recursion inside the tree: each of its leaves is followed by the call on with budget , and the same is done for the second family built by one of the rules. Section 6 of [38] counts the calls of both the main recursion and the inner recursion, including inner lists with arbitrary covers, and bounds them by , and .
Group and Subset Feedback Vertex Set, Node Unique Label Cover. The algorithms of [22] are LP-branching. Each node solves a half-integral relaxation in polynomial time and fixes, by single calls, assignments that do not raise the relaxed optimum. Otherwise it branches into two children for Group Feedback Vertex Set (Lemma 8 of [22]) or children for Unique Label Cover (Lemma 1 and Corollary 4 of [22]), and each branch lowers the gap between the budget and the relaxed optimum by at least . So there are at most or leaves. Subset Feedback Vertex Set is equivalent to its edge version, with the edges at the terminals as the edge subset, on the same graph and with the same budget [12], and the edge version reduces to Group Feedback Vertex Set on the same graph with the same budget by Lemma 5 of [11], with the group for the edge subset . Since this group is large, the relaxation is solved in the oracle model of Section 5.2 of [22]. For Group Feedback Vertex Set ; for Unique Label Cover is fixed.
3-Hitting Set and Weighted 3-Hitting Set. The algorithm of Appendix B.1 of the arXiv version of [37], for positive integer weights of polynomial bit length, works on 3-uniform hypergraphs with a weight bound and a size parameter , and some of its rules create smaller hyperedges inside a step. Its reductions answer, solving hypergraphs of degree at most two in polynomial time, or make one call, one of them with modified weights, and each branching rule returns the first of two answers that is not NIL. A non-NIL answer is a hitting set of weight at most , and one is returned whenever a hitting set of weight at most and size at most exists, which is the permissive form of Theorem 6.1, and the answer gives the set. Its measure with and branching numbers at most 2.168 give leaves. The family is the set of hitting sets within the weight bound. Unit weights give 3-Hitting Set, and .
Proper Interval Vertex Deletion. If has an induced subgraph from a finite family of graphs with at most six vertices, found in linear time, the algorithm of [9] branches into deleting each of its vertices with budget ; otherwise the problem is solved in linear time. So there are at most leaves, and . Interval Vertex Deletion is not included, since the algorithm of [10] solves components and modules to optimality before it continues.
Multicut on Trees. Cutting X removes its edges and the requests they separate and leaves a forest, which the algorithm of [25] handles, since it cuts edges itself. Its reductions are single calls, and those that use minimum vertex covers do so on auxiliary graphs of maximum degree two, in polynomial time. The branching rules make two or a constant number of children, the depth is polynomial, and the number of leaves is at most with . Then .
Min-Ones d-SAT and d-Hitting Set. The algorithm of [17] picks an unsatisfied clause and branches over its at most variables set to one, with budget , so there are at most nodes.
Quantum search over all subsets takes time . For Feedback Vertex Set, the walk on the algorithm of [32] gives , as stated for Maximum Induced Forest in [28]. The walk on a classical exact algorithm with base gives when that algorithm is a backtracking tree. The exact bases listed in [17] give at best for Feedback Vertex Set, for Cluster Vertex Deletion, for Subset Feedback Vertex Set and for 4-Hitting Set, and [17] lists no exact algorithm faster than brute force for Group Feedback Vertex Set, Node Unique Label Cover, Multicut on Trees and Min-Ones d-SAT, and for Proper Interval Vertex Deletion only with . To our knowledge, no quantum form of monotone local search has been stated before. The classical column of Table 3 uses the same extension algorithms; faster classical bounds exist for some rows, such as for Min-Ones 3-SAT [17]. For 3-Hitting Set the walk on the exact algorithm of [40] would give if it is a backtracking tree, and the extension algorithm of [40] would give through Theorem 6.1 if it is one. The faster algorithm of [39] computes the optimum of a component by recursive calls before a tail call and is not a plain OR tree, so it is not used. Problems that reduce to 3-Hitting Set on the same universe, such as Feedback Vertex Set in Tournaments, get the bound as well, although their own extension algorithms may give better bounds if they are backtracking trees.
6.1 Approximation
Let be nonempty and upward closed, let OPT be the smallest size of a set in , and call a set in of size at most OPT a -approximation. Approximate monotone local search [13, 14] turns extension algorithms with ratio and running time into exponential-time -approximations. Let be a finite list of pairs with and let . For a guess of OPT, a pair and , let and , and let be the probability that a uniform -subset of meets in at least elements. Let best be the base of , up to polynomial factors. This is a variant of the bound in Equations (5) and (6) and Theorem 2.3 of [14], which agrees with it up to a constant factor in the cost.
Theorem 6.3. Let , and let each pair come with an extension procedure of one of two kinds: (a) a randomized polynomial-time algorithm with branching probabilities at least and polynomial depth that, on such that some with has , returns with and with probability at least , where is computable in polynomial time and the bound still holds after the probabilities are rounded to bits, at the loss of a constant factor; or (b) for , a backtracking tree with at most nodes that accepts exactly when such an exists, and whose accepting leaves give one. Then there is a quantum -approximation for with bounded error, polynomial space and no quantum random access memory, in time best .
Proof. For each , take the pair and that minimize . Prepare the uniform superposition over the -subsets , together with the random bits of the procedure for kind (a), with its branching probabilities rounded. Mark a branch if and for kind (a), or if the detection walk accepts for kind (b), with its error reduced as in the proof of Theorem 6.1. If and , the rest of the optimum completes within , and , since , or and . So the marked probability is at least times for kind (a). With , one measurement without amplification and one after a uniform number of rounds below succeed with probability at least , as in the proof of Theorem 6.1. For kind (b), is found by descending the tree. The run costs , the square root of the classical cost, and the smallest checked set over all is returned, together with as a candidate, which lies in by monotonicity and is a -approximation if .
The randomized branching algorithms of [26] for Vertex Cover and 3-Hitting Set are polynomial-time procedures of kind (a) that succeed with probability at least for every and large k, where the numerically evaluated bases are rounded up to the tabulated c. If the hypothesis holds only in this form, the proof gives for every , and since best is continuous in the bases, the rounded-up entries below still hold. Polynomial-time approximations are of kind (a) with c = 1: a maximal matching for Vertex Cover, a maximal family of disjoint hyperedges for d-Hitting Set, and the algorithms of [2, 16, 1, 41, 23] for Feedback Vertex Set, Subset Feedback Vertex Set, Cluster Vertex Deletion, Proper Interval Vertex Deletion and Multicut on Trees, with ratios 2, 8, 2, 6, 2. The trees of Theorem 6.2 are of kind (b), since they count their budget and accept only within it; for 3-Hitting Set we use unit weights and , so that an answer other than NIL has size at most . Table 4 gives the resulting bounds.
Every quantum exact algorithm is also a -approximation, and every entry is below the quantum exact bound. To our knowledge, no quantum algorithm designed for exponential-time approximation of these problems has been stated before. Amplitude amplification over random sets of size ,
| Problem | exact, quantum | ||||
|---|---|---|---|---|---|
| Vertex Cover | |||||
| 3-Hitting Set | |||||
| 4-Hitting Set | |||||
| Feedback Vertex Set | |||||
| Subset Feedback Vertex Set | |||||
| Cluster Vertex Deletion | |||||
| Proper Interval Vertex Deletion | |||||
| Multicut on Trees |
Table 4: Quantum -approximation by Theorem 6.3, with bounded error, polynomial space and no quantum random access memory, rounded up. The last column is the quantum exact bound of Table 3, and for Vertex Cover the bound through Maximum Independent Set of [35]. For Multicut on Trees, is the number of edges.
the quantum form of the brute-force approximation of [13], gives , , and for the four ratios. The classical bounds of [13, 14] are the squares of the table entries or smaller, since they also use extension algorithms not covered by Theorem 6.3, such as the randomized algorithm for Feedback Vertex Set.
The weighted form of approximate monotone local search [15] groups the elements into classes of weights within a factor , puts all classes far below the heaviest class of the optimum into the sample, and runs the unweighted scheme in each of the remaining classes with one extension procedure. The quantum form samples in every class inside one amplitude amplification, and it has these parts. The marked probability is at least the product of the hypergeometric probabilities of the classes, for the correct guess of the class sizes of the optimum. Classes with go entirely into the sample, where . The marking threshold is , with the part of the sample that is fixed by the guess, so that at the correct guess. This gives the square root of the classical cost, with a subexponential factor for the guesses. The extension procedure may be a tree of kind (b'): a permissive tree with a weight threshold, which accepts on whenever a set of size at most within the threshold exists, and whose answers stay within the threshold. The weighted Vertex Cover algorithm of [37] in polynomial space, with base 1.381, returns the first answer that is not NIL, so it is a tree of this kind, and its answers may be larger than . With the parts above, this gives a weighted 1.1-approximation for Vertex Cover in and, through Theorem 6.1, exact weighted Vertex Cover in ; weighted 3-Hitting Set gets at . The exact weighted bound cited in [15] would give a smaller value, , if that algorithm is a backtracking tree.
7 Verification
The Lean library, built on Mathlib with only the standard axioms, proves the inequality for , the bounds , and , and the rows above. A script checks the certificate of Theorem 3.2 in decimal arithmetic. Not formalized are the rules of [43], the terminal algorithms, the backtracking structure, the quantum walk, Theorem 9 of [36], Proposition 4.1 and the rows to 18.
A second script runs the 4-colouring tree. On random states of graphs of maximum degree 4, one branching step at the weights of Theorem 3.2 has in the real measure, and
is colourable if and only if a child is, on 27463 states that reach the cases of [43] for maximum degree at most 4. On 400 random terminal instances, (T1), (T2) and (T3) agree with brute force, with nine local lists per triangle in place of the blocks, and the blocks of Lemma 5.3 of [45] are checked with one and two triangles. On 300 random graphs with at most 16 vertices, the whole tree agrees with brute force and the terminal sizes add up to at most . The tree for 3-colouring of [5], the elimination of two-valued variables and the factor are not run.
For the domination problems, the Lean files check , , and . Scripts run the decision procedures of Section 5: Algorithm 4 of [33] with all its rules, the basic branching of [7] with marking and the rule for small components, and Algorithm 3 of [34], which has the same kinds of steps as its Algorithm 4. On 400, 400 and 300 random graphs with at most 15, 13 and 10 vertices, the smallest accepted budget equals the optimum computed by brute force in every case. The count of bad branchings is also checked on disjoint unions of regular graphs. The scripts run the unweighted procedures; the refined branchings of [7] and of Algorithm 4 of [34], the weighted rules and the bounds on the tree size are not run.
For Section 6, the Lean files prove the identity , the averaging bound for , and the bases of Table 3. A script evaluates against , which it does not exceed, for and each of the table. A second script runs the sampling and amplification with an exact classical oracle on random instances of 3-Hitting Set, Feedback Vertex Set and Cluster Vertex Deletion with up to 10 elements: clause branching, the branching of [21] with its matroid matching step replaced by further branching, and branching on induced paths with three vertices. On 120 instances each, the smallest accepted budget equals the optimum, at least samples are marked at , the larger of and the averaged success probability is at least 0.416, where of samples are marked, and state-vector runs agree with the closed form. The walk, the bounded-error oracle, the algorithms of [38, 25, 22, 37, 9] and the tree sizes are not run. For Section 6.1, a script computes best from the large-deviation exponent of the hyper-geometric tail, reproduces the values 1.2072, 1.2099, 1.2068 and 1.4156 of [14] and 1.114 of [13], and checks that the exact cost at is within a factor of best for every entry of Table 4; the maximization over is numerical.
A classical version of the colouring recursion, with OR in place of quantum search, is compared with brute force on random graphs with 5 to 9 vertices and . Its base case for respects the size limits strictly, at it may ignore the limit, as the algorithm does, and the limits passed on are kept tight or enlarged at random. With either reduction chosen at random, and with Reduction 2 only, it agrees with brute force on 300 graphs each. As a control, lowering the limit for by one makes 80 of 300 answers wrong, so the test does depend on the limits.
8 Discussion
The gain for comes from the branching algorithm of [43] and the terminal algorithms of [45] and carries through the reductions of [8, 36]. Any further classical improvement of 3-colouring or 4-colouring by a branching algorithm in polynomial space carries over in the same way, through the same computation. The exponents for are upper bounds for the explicit procedure of Proposition 4.1. With finer grids and pieces they approach the values of the recursion (1), (2), which we expect but do not prove.
For the domination problems the quantum bounds are the square roots of the classical bounds used. They follow once the decision version of each classical algorithm is seen to be a backtracking tree, and any faster classical algorithm of this kind gives a faster quantum one in the same way.
For monotone local search the quantum bound is the square root of the classical one whenever the extension algorithm is a backtracking tree. Extension algorithms with steps that compute the optimum of a part before a tail call, such as the algorithm for 3-Hitting Set [39], and the multivariate and sample-dependent forms of monotone local search, are not covered here. The same holds for approximate monotone local search, where randomized extension procedures that are not polynomial-time procedures, and deterministic approximate branching algorithms, are not covered.
Use of AI
The proofs, the code and the Lean files were developed with Claude Opus 5.5 (Anthropic), which was also used to search the literature, to check the proofs and to draft the text. The author is responsible for the content.
References
[1] M. Aprile, M. Drescher, S. Fiorini, T. Huynh. A tight approximation algorithm for the cluster vertex deletion problem. Mathematical Programming 197(2), 2023.
[2] V. Bafna, P. Berman, T. Fujito. A 2-approximation algorithm for the undirected feedback vertex set problem. SIAM Journal on Discrete Mathematics 12(3), 1999.
[3] M. Boyer, G. Brassard, P. Høyer, A. Tapp. Tight bounds on quantum searching. Fortschritte der Physik 46, 1998.
[4] G. Brassard, P. Høyer, M. Mosca, A. Tapp. Quantum amplitude amplification and estimation. Contemporary Mathematics 305, 2002.
[5] R. Beigel, D. Eppstein. 3-coloring in time . Journal of Algorithms 54(2), 2005, arXiv:cs/0006046.
[6] N. Bourgeois, F. Della Croce, B. Escoffier, V. Th. Paschos. Fast algorithms for min independent dominating set. Discrete Applied Mathematics 161(4-5), 2013.
[7] N. Bourgeois, B. Escoffier, V. Th. Paschos. Fast algorithms for min independent dominating set. SIROCCO 2010, arXiv:0905.1993.
[8] J. M. Byskov. Enumerating maximal independent sets with applications to graph colouring. Operations Research Letters 32(6), 2004.
[9] Y. Cao. Unit interval editing is fixed-parameter tractable. ICALP 2015, arXiv:1504.04470.
[10] Y. Cao. Linear recognition of almost interval graphs. SODA 2016, arXiv:1403.1515.
[11] M. Cygan, M. Pilipczuk, M. Pilipczuk. On group feedback vertex set parameterized by the size of the cutset. Algorithmica 74, 2016, arXiv:1112.6255.
[12] M. Cygan, M. Pilipczuk, M. Pilipczuk, J. O. Wojtaszczyk. Subset feedback vertex set is fixed-parameter tractable. ICALP 2011.
[13] B. C. Esmer, A. Kulik, D. Marx, D. Neuen, R. Sharma. Faster exponential-time approximation algorithms using approximate monotone local search. ESA 2022, arXiv:2206.13481.
[14] B. C. Esmer, A. Kulik, D. Marx, D. Neuen, R. Sharma. Optimally repurposing existing algorithms to obtain exponential-time approximations. SODA 2024, arXiv:2306.15331.
[15] B. C. Esmer, A. Kulik, D. Marx, D. Neuen, R. Sharma. Approximate monotone local search for weighted problems. IPEC 2023, arXiv:2308.15306.
[16] G. Even, J. Naor, L. Zosin. An 8-approximation algorithm for the subset feedback vertex set problem. SIAM Journal on Computing 30(4), 2000.
[17] F. V. Fomin, S. Gaspers, D. Lokshtanov, S. Saurabh. Exact algorithms via monotone local search. Journal of the ACM 66(2), 2019, arXiv:1512.01621.
[18] F. V. Fomin, F. Grandoni, A. V. Pyatkin, A. A. Stepanov. Combinatorial bounds via measure and conquer: bounding minimal dominating sets and applications. ACM Transactions on Algorithms 5(1), 2008.
[19] M. Fürer. Solving NP-complete problems with quantum search. LATIN 2008.
[20] S. Gaspers, J. Z. Li. Quantum algorithms for graph coloring and other partitioning, covering, and packing problems. ICALP 2024, arXiv:2311.08042.
[21] Y. Iwata, Y. Kobayashi. Improved analysis of highest-degree branching for feedback vertex set. IPEC 2019, arXiv:1905.12233.
[22] Y. Iwata, M. Wahlström, Y. Yoshida. Half-integrality, LP-branching and FPT algorithms. SIAM Journal on Computing 45(4), 2016, arXiv:1310.2841.
[23] N. Garg, V. V. Vazirani, M. Yannakakis. Primal-dual approximation algorithms for integral flow and multicut in trees. Algorithmica 18, 1997.
[24] Y. Iwata. A faster algorithm for dominating set analyzed by the potential method. IPEC 2011, LNCS 7112.
[25] I. Kanj, G. Lin, T. Liu, W. Tong, G. Xia, J. Xu, B. Yang, F. Zhang, P. Zhang, B. Zhu. Algorithms for cut problems on trees. COCOA 2014, LNCS 8881, arXiv:1304.3653.
[26] A. Kulik, H. Shachnai. Analysis of two-variable recurrence relations with application to parameterized approximations. FOCS 2020, arXiv:1911.02653.
[27] E. L. Lawler. A note on the complexity of the chromatic number problem. Information Processing Letters 5(3), 1976.
[28] Kvantu algoritms maksimāla inducēta meža problēmai (a quantum algorithm for the maximum induced forest problem). Thesis, University of Latvia, https://dspace.lu.lv/handle/7/66169.
[29] L. Meijer. 3-Coloring in time . arXiv:2302.13644, 2023.
[30] J. W. Moon, L. Moser. On cliques in graphs. Israel Journal of Mathematics 3, 1965.
[31] A. Montanaro. Quantum-walk speedup of backtracking algorithms. Theory of Computing 14(15), 2018, arXiv:1509.02374.
[32] I. Razgon. Exact computation of maximum induced forest. SWAT 2006, LNCS 4059.
[33] J. M. M. van Rooij, H. L. Bodlaender. Exact algorithms for dominating set. Discrete Applied Mathematics 159(17), 2011. Technical report UU-CS-2009-025.
[34] J. M. M. van Rooij, H. L. Bodlaender. Exact algorithms for edge domination. Algorithmica 64(4), 2012. Technical report UU-CS-2007-051.
[35] S. Senge. Faster quantum algorithms for vertex cover and independent set through recursive search with value calls. https://github.com/ssenge/LAIF/tree/main/quantum-vertex-cover, 2026.
[36] K. Shimizu, R. Mori. Exponential-time quantum algorithms for graph coloring problems. Algorithmica 84, 2022, arXiv:1907.00529.
[37] H. Shachnai, M. Zehavi. A multivariate approach for weighted FPT algorithms. ESA 2015; arXiv:1407.2033, A multivariate framework for weighted FPT algorithms.
[38] D. Tsur. Faster parameterized algorithm for cluster vertex deletion. arXiv:1901.07609.
[39] D. Tsur. Faster parameterized algorithm for 3-hitting set. arXiv:2501.06452.
[40] M. Wahlström. Algorithms, measures and upper bounds for satisfiability and related problems. PhD thesis, Linköping University, 2007.
[41] P. van 't Hof, Y. Villanger. Proper interval vertex deletion. Algorithmica 65(4), 2013.
[42] R. Wong, W.-L. Chang, W.-Y. Chung, A. V. Vasilakos. Biomolecular and quantum algorithms for the dominating set problem in arbitrary networks. Scientific Reports 13, 4205, 2023.
[43] P. Wu, H. Gu, H. Jiang, Z. Shao, J. Xu. A faster algorithm for the 4-coloring problem. ESA 2024, LIPIcs 308, 103:1–103:18.
[44] M. Xiao, H. Nagamochi. A refined exact algorithm for edge dominating set. Theoretical Computer Science 560, 2014.
[45] R. Yamano, T. Shibuya. Faster exact algorithms for 3- and 4-coloring: deterministic improvements and further randomized speedups. arXiv:2611.03115, 2026.