TOPICS
Search

Exact Matching Problem


The exact matching problem asks whether a graph whose edges are colored red or blue has a perfect matching with exactly k red edges (Papadimitriou and Yannakakis 1982). Mulmuley et al. (1987) gave a polynomial-time randomized algorithm. Deterministic polynomial time for general graphs remains open.

For a graph with an even number of vertices, label the vertices and form a antisymmetric matrix. For i<j, its (i,j) entry is x_(ij) for a blue edge, tx_(ij) for a red edge, and zero when the pair is nonadjacent. Here the x_(ij) are independent variables. The coefficient of t^k in its Pfaffian is nonzero exactly when the required perfect matching exists. Different matchings use distinct monomials in the edge variables, so their terms cannot cancel. This gives a reduction to polynomial identity testing.

Goel (2026, pp. 3-4) reports a deterministic 2^(n^(o(1))) running-time bound for general n-vertex graphs, conditional on a circuit lower bound for the permanent. The hypothesis is that for some fixed c>0 and all sufficiently large m, any arithmetic circuit over Q computing the order-m permanent uses more than m^(c(log_2m)^(1/3)) gates. Under this hypothesis, the Lean formalization verifies correctness and the evaluation-point bound for the identity test, as well as the matching reductions. The Turing running-time analysis is outside the formalization.


See also

Perfect Matching, Pfaffian, Polynomial Identity Testing

Explore with Wolfram|Alpha

References

Goel, D. "Exact Matching in Subexponential Time." Nov. 27, 2026. https://hexagonmath.org/2611.01193v2.Mulmuley, K.; Vazirani, U. V.; and Vazirani, V. V. "Matching Is as Easy as Matrix Inversion." Combinatorica 7, 105-113, 1987. https://doi.org/10.1007/BF02579206.Papadimitriou, C. H. and Yannakakis, M. "The Complexity of Restricted Spanning Tree Problems." J. ACM 29, 285-309, 1982. https://doi.org/10.1145/322307.322309.

Cite this as:

Weisstein, Eric W. "Exact Matching Problem." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/ExactMatchingProblem.html

Subject classifications