Abstract
Counting perfect matchings in general graphs is a fundamental problem in computational complexity, known to be #P-complete. This paper investigates a tractable relaxation of this problem: counting maximal near-perfect matchings within dense and quasirandom graphs. By leveraging the Szemerédi Regularity Lemma and linear programming, the authors provide tight theoretical bounds for quasirandom graphs and a deterministic $O(n^{5/2})$ algorithm that approximates these counts in dense graphs. This work bridges the gap between extremal combinatorics and algorithmic counting, offering a deterministic alternative to traditional randomized approximation schemes.
Introduction
In graph theory, a matching is defined as a set of edges that share no common vertices. A perfect matching—one that covers every vertex—represents a critical structure in both theoretical mathematics and practical optimization. However, counting these structures is notoriously difficult. While determining the existence of a perfect matching is solvable in polynomial time, counting them is equivalent to computing the permanent of a (0,1)-matrix, a problem proven by Leslie Valiant to be #P-complete.
In "Counting maximal near perfect matchings in quasirandom and dense graphs," authors Yifan Jing and Akbar Rafiey address this complexity by shifting the focus toward "maximal near-perfect matchings." These are matchings that cover at least $(1 - \varepsilon)$ of the vertices and cannot be extended by adding further edges. The research demonstrates that for specific classes of graphs—namely dense and quasirandom graphs—this counting problem becomes significantly more manageable.
Theoretical Framework
Defining the Graph Classes
The paper focuses on two primary types of graphs:
- Dense Graphs: Graphs where the number of edges is proportional to the square of the number of vertices ($|E| = \Omega(n^2)$).
- Quasirandom (or $\varepsilon$-regular) Graphs: These are graphs that, while potentially deterministic, possess structural properties similar to those of random graphs. Specifically, the edge density between any two large subsets of vertices is roughly constant.
The Szemerédi Regularity Lemma (SRL)
The core "heavy machinery" utilized in this research is the Szemerédi Regularity Lemma. SRL allows any large dense graph to be partitioned into a constant number of clusters such that the edges between most pairs of clusters behave in a pseudo-random fashion. This partitioning transforms a complex, irregular global structure into a collection of manageable, quasirandom bipartite blocks.
Methodology and Algorithmic Approach
The authors develop a multi-step framework to estimate the number of matchings:
- Partitioning and the Quotient Graph: Using SRL, the graph is decomposed into clusters. A "quotient graph" is then constructed where each node represents a cluster, and edges represent $\varepsilon$-regular pairs with sufficient density.
- Linear Programming: The problem of distributing matching edges across these clusters is formulated as a linear program. This determines the optimal way to "allocate" the matching to maximize the count while respecting the graph's structure.
- Phase-Based Greedy Counting: Within the quasirandom blocks identified by the partition, the authors employ a greedy counting strategy. By building the matching in phases, they establish tight lower and upper bounds on the number of ways to complete the matching.
- Deterministic Integration: Unlike many modern counting algorithms that rely on Markov Chain Monte Carlo (MCMC) methods—which are inherently probabilistic—this paper provides a deterministic algorithm. It incorporates the Micali-Vazirani algorithm to handle irregular components of the graph, ensuring the final count is a guaranteed lower bound.
Key Results
Tight Bounds for Quasirandom Graphs
The paper establishes that for a bipartite $\varepsilon$-regular graph $G$ with density $p$, the number of maximal near-perfect matchings (denoted as $\text{NM}$) is remarkably stable. They prove the following logarithmic bound: $$(1 - 3\sqrt{\varepsilon})n \log pn \leq \log \text{NM}(G, \sqrt{\varepsilon}) \leq (1 + 3\sqrt{\varepsilon})n \log pn$$ This result suggests that in quasirandom environments, the count of these matchings is primarily governed by the vertex count and edge density.
Algorithmic Complexity
The authors present a deterministic algorithm for dense graphs with a time complexity of $O(f(\varepsilon)n^{5/2})$. For any dense graph $G$, the algorithm either identifies that no such matching exists or returns a non-trivial lower bound $\ell$ such that the total number of matchings is at least $n^{\ell n}$.
Discussion and Limitations
While the paper marks a significant advancement in deterministic counting, it acknowledges certain theoretical hurdles:
- The Tower Constant: The function $f(\varepsilon)$ in the algorithm's complexity is derived from the Szemerédi Regularity Lemma. SRL is known for "tower-type" constants, meaning that for very small values of $\varepsilon$, the algorithm—while technically polynomial in $n$—may be computationally expensive on current hardware.
- Tightness in General Dense Graphs: While the bounds for quasirandom graphs are tight, the authors note that the lower bound for general dense graphs remains an approximation. There is a documented gap (up to a factor of $n^{n/4}$) in certain cases, indicating a path for future refinement.
- Sparse Graph Extension: The current methodology relies heavily on the density of the graph to apply SRL. Extending these results to sparse graphs remains an open challenge in extremal graph theory.
Conclusion
Jing and Rafiey provide a robust theoretical framework for counting subgraphs in dense environments. By focusing on maximal near-perfect matchings, they bypass the #P-completeness of the perfect matching problem, offering a deterministic approach that provides guaranteed bounds. This work reinforces the utility of the Szemerédi Regularity Lemma as a tool not just for existence proofs, but for algorithmic counting and complexity analysis.
Summary updated