The Matching Problem in General Graphs Is in Quasi-NC

Ola Svensson, Jakub Tarnawski

Abstract: For decades, finding a perfect matching in a graph was one of the most famous problems with a randomized parallel algorithm but no deterministic counterpart. This paper bridges that gap for general graphs, proving the problem is in Quasi-NC by derandomizing the "Isolation Lemma." The authors achieve this through a deep dive into the geometric structure of matching polytopes and a hierarchical divide-and-conquer strategy.

Introduction

In graph theory, a perfect matching is a set of edges where every vertex in the graph is incident to exactly one edge. While efficient sequential algorithms have existed since Jack Edmonds’ work in 1965, parallelization has proven more challenging. Ideally, such problems should belong to the complexity class NC (Nick's Class), which contains problems solvable in polylogarithmic time using a polynomial number of processors.

Since the late 1970s and 80s, researchers have utilized Randomized NC (RNC) algorithms based on the "Isolation Lemma." By assigning random weights to edges, one can isolate a unique minimum-weight perfect matching with high probability, reducing the problem to parallel linear algebra. However, the deterministic version remained an open question for general graphs until this work. While a solution for bipartite graphs was found in 2016, general graphs present significantly more complex geometry due to odd-length cycles.

Methods

The core contribution of this paper is the derandomization of the Isolation Lemma. Instead of a single random weight function, the authors construct a specific family of $n^{O(\log^2 n)}$ weight functions. They prove that for any graph, at least one function in this family is guaranteed to isolate a perfect matching.

The algorithm employs a hierarchical divide-and-conquer strategy organized into $O(\log n)$ phases. In each phase, the algorithm leverages the nested, or "laminar," structure of the matching polytope's constraints to "contract" small vertex sets into single nodes (similar to Edmonds' "blossoms") and removes alternating circuits that do not cross these sets.

The hierarchical phase structure of the algorithm, showing recursive decomposition across $O(\log n)$ phases.

By carefully combining (concatenating) weight functions across these phases, the search space of possible matchings is systematically reduced until a unique solution remains.

Key Insights and Ideas

The transition from bipartite graphs to general graphs is difficult because the "tight" constraints of the matching polytope behave differently. The authors overcome this by identifying that any face of the perfect matching polytope can be described by a laminar family of odd-set constraints.

A pivotal concept introduced is that of a "contractible" set. If a vertex set is contractible, the matching within that set is uniquely determined once the edge entering it from the outside is chosen. This allows the algorithm to treat complex subgraphs as single points, simplifying the global search.

Weight selection and vertex set contraction used to isolate a unique perfect matching.

Furthermore, the authors generalized the bipartite approach by handling "alternating circuits" (walks that can repeat edges) rather than just simple cycles, which was necessary to make the counting arguments work for general graphs.

Key Results

The primary result is that the Perfect Matching problem—both for decision and search—is officially in Quasi-NC. The deterministic parallel algorithm runs in $O(\log^3 n)$ time using $n^{O(\log^2 n)}$ processors.

While Quasi-NC is slightly broader than the gold-standard NC (which requires strictly polynomial processors), this represents a massive leap forward from the previous best-known upper bounds, which were exponential. The algorithm constructs $n^{O(\log^2 n)}$ weight functions, each with weights bounded by $n^{O(\log^2 n)}$.

Limitations and Future Work

The most immediate challenge is closing the "Quasi" gap to place the problem in NC. This would require reducing the number of weight functions and the magnitude of weights from quasi-polynomial to polynomial levels. Additionally, while the decision version for planar graphs is in NC, the search version remains an open problem for that class. Other related problems, such as the "Exact Matching" problem (finding a matching with exactly $k$ red edges), also remain stubborn holdouts that have not yet been brought into P or NC.

Summary updated

BibTeX
@inproceedings{svensson2017matching,
  author = {Ola Svensson and Jakub Tarnawski},
  title = {{The Matching Problem in General Graphs Is in Quasi-NC}},
  booktitle = {FOCS},
  year = {2017},
  doi = {10.1109/focs.2017.70},
}
Figure