The Exact Matching (EM) problem asks whether there exists a perfect matching which uses a prescribed number of red edges in a red/blue edge-colored graph. While there exists a randomized polynomial-time algorithm for the problem, only some special cases admit a deterministic one so far, making it a natural candidate for testing the P=RP hypothesis. A polynomial-time equivalent problem, Top-k Perfect Matching (TkPM), asks for a perfect matching maximizing the weight of the $k$ heaviest edges.
We study the above problems, mainly the latter, in the scenario where the input is a blown-up graph, meaning a graph which had its vertices replaced by cliques or independent sets. We describe an FPT algorithm for TkPM parameterized by $k$ and the neighborhood diversity of the input graph, which is essentially the size of the graph before the blow-up; this graph is also called the prototype. We extend this algorithm into an approximation scheme with a much softer dependency on the aforementioned parameters, time-complexity wise. Moreover, for prototypes with bounded bandwidth but unbounded size, we develop a recursive algorithm that runs in subexponential time. Utilizing another algorithm for EM on bounded neighborhood diversity graphs, we adapt this recursive subexponential algorithm to EM.
Our approach is similar to the use of dynamic programming on e.g. bounded treewidth instances for various problems. The main point is that the existence of many disjoint separators is utilized to avoid including in the separator any of a set of ``bad'' vertices during the split phase.
Exact Matching and Top-k Perfect Matching Parameterized by Neighborhood Diversity or Bandwidth
- Paper ID: 2510.12552
- Title: Exact Matching and Top-k Perfect Matching Parameterized by Neighborhood Diversity or Bandwidth
- Authors: Nicolas El Maalouly, Kostas Lakis (ETH Zurich)
- Classification: cs.DS (Data Structures and Algorithms), cs.CC (Computational Complexity)
- Publication Date: October 14, 2025 (arXiv preprint)
- Paper Link: https://arxiv.org/abs/2510.12552
This paper investigates two related graph-theoretic problems: Exact Matching (EM) and Top-k Perfect Matching (TkPM). The EM problem asks whether there exists a perfect matching using exactly k red edges in a red-blue edge-colored graph; the TkPM problem seeks a perfect matching that maximizes the weight sum of its k heaviest edges. While EM admits a randomized polynomial-time algorithm, deterministic algorithms exist only in special cases, making it a natural candidate for testing the P=RP hypothesis. This paper primarily studies the parameterized complexity of these problems on blown-up graphs, proposing FPT algorithms and approximation algorithms based on neighborhood diversity and bandwidth parameters.
- Theoretical Value: The EM problem is one of few natural problems suitable for testing the P=RP hypothesis, possessing significant computational complexity theory value
- Algorithmic Challenge: Although randomized polynomial-time algorithms based on the Schwartz-Zippel lemma exist, no deterministic polynomial-time algorithm has been found to date
- Practical Applications: The TkPM problem has important applications in clustering and load balancing optimization problems
- Algorithms on General Graphs: For general graphs, TkPM only achieves a 0.5-approximation ratio; bipartite graphs can achieve approximately 0.8
- Parameterized Complexity: Existing FPT algorithms depend on independence number α or bipartite independence number β, which may be large on certain graph classes
- Potential of Structured Graphs: For graphs with special structure (such as blown-up graphs), existing algorithms fail to fully exploit their structural properties
The core motivation of this paper is to design more efficient algorithms by exploiting the structural properties of blown-up graphs. Blown-up graphs are obtained by replacing each vertex of the original graph with a clique or independent set, a structure common in practical applications with favorable algorithmic properties.
- FPT Algorithm: Proposes an FPT algorithm parameterized by k and neighborhood diversity γ with time complexity O((2k+γ-1 choose γ-1)f(n))
- Approximation Algorithm: Designs a (1-ε)-approximation algorithm with time complexity O((log²k/log²(1/(1-ε)))^γ² f(n)), significantly reducing parameter dependence
- Subexponential Algorithm: Develops a recursive algorithm for prototype graphs with bounded bandwidth with time complexity 2^O(φ²√n log² n)
- EM Algorithm Adaptation: Adapts the recursive method to the EM problem, achieving time complexity 2^O(φ²n^(12/13) log² n)
Exact Matching (EM):
- Input: Red-blue edge-colored graph G and integer k
- Output: Determine whether there exists a perfect matching containing exactly k red edges
Top-k Perfect Matching (TkPM):
- Input: Edge-weighted graph G, weight function w, and integer k
- Output: Find a perfect matching M that maximizes the weight sum of its k heaviest edges
- Prototype Graph P: The initial small graph
- Blowing-up Process: Replace each vertex of P with a clique or independent set (called a blob)
- Edge Processing: Edges in the original graph become edge sets of complete bipartite graphs (called bands)
The neighborhood diversity of graph G is γ if and only if vertices can be partitioned into γ sets V₁, V₂, ..., Vγ such that for any u, u' ∈ Vᵢ and any v ∉ Vᵢ, we have (u,v) ∈ E(G) ⟺ (u',v) ∈ E(G).
Since vertices of the same type are equivalent in neighborhood relationships, any two matchings using a fixed number of vertices of each type are equivalent in extensibility.
- Problem Transformation: Transform TkPM into a maximum weight matching problem under type constraints
- Auxiliary Graph Construction: For each type Vᵢ, add |Vᵢ|-cᵢ "killer" vertices with weight 0
- Algorithm Flow: Run maximum weight perfect matching algorithm on the auxiliary graph
Enumerate all distribution schemes satisfying c₁+c₂+...+cγ=2k, with total count (2k+γ-1 choose γ-1).
- Rather than considering exact vertex counts for each blob, focus on edge counts for each band
- For each bᵢ, consider only values in the set A = {0, 1, ⌈α⌉, ⌈α²⌉, ..., k}
- Where α = 1/(1-ε)
Through this strategy, the exponential impact of parameter k is reduced to polynomial level, with total enumeration count becoming O((log²k/log²(1/(1-ε)))^γ²).
The bandwidth φ(G) of graph G is the minimum integer such that there exists a vertex ordering v₁, v₂, ..., vₙ satisfying {vᵢ, vⱼ} ∈ E(G) ⟹ |i-j| ≤ φ(G).
- Tight Band: A band containing ≥√n edges in the optimal solution
- Loose Band: A band containing <√n edges in the optimal solution
- Key Observation: The number of tight bands is ≤√n
A loose separator is defined as a small separator that does not touch any tight band. Bounded bandwidth graphs guarantee the existence of multiple disjoint small separators, thus always enabling the discovery of a loose separator.
- Base Case: When there are too many tight bands or too few blobs, use Algorithm 1
- Recursive Case:
- Find a loose separator S
- Enumerate all possible edge selections related to S (at most √n edges per band)
- Recursively solve the separated subproblems
- Combine subproblem solutions to obtain the global solution
This paper primarily conducts theoretical analysis, verifying algorithm correctness and complexity bounds through mathematical proofs.
- Induction: Used to prove correctness of recursive algorithms
- Amortized Analysis: Analyzes recursion depth and computational cost per level
- Parameterized Complexity Theory: Analyzes parameter dependencies of FPT algorithms
- Time Complexity: O((2k+γ-1 choose γ-1)f(n)), where f(n) is polynomial
- Parameterized Characteristics: Achieves polynomial time when γ is constant
- Correctness: Guaranteed to find optimal solution through extensibility lemma
- Approximation Ratio: (1-ε)
- Time Complexity: O((log²k/log²(1/(1-ε)))^γ² f(n))
- PTAS Condition: Achieves PTAS when γ = O(√(log n/log log n))
- Time Complexity: 2^O(φ²√n log² n)
- Subexponential Condition: Maintains subexponential complexity when φ = o(n^(1/4)/log n)
- Recursion Depth: O(log n) levels
- Time Complexity: 2^O(φ²n^(12/13) log² n)
- Technical Adjustment: Modifies tight band threshold to n^α, where α = 12/13
- Papadimitriou-Yannakakis: Originally proposed the EM problem, equivalent to constrained spanning tree problems
- Mulmuley-Vazirani-Vazirani: Provided randomized polynomial-time algorithm using the isolation lemma
- El Maalouly et al.: Research on deterministic algorithms for special graph classes
- Neighborhood Diversity: Algorithm metatheorems by Lampis et al.
- Bandwidth Parameter: Applications in various graph problems
- Dynamic Programming Methods: Applications on structured graphs with bounded treewidth
Similar top-k objectives have been studied in clustering and load balancing problems, but are relatively new in matching problems.
- Advantages of Structured Graphs: The structure of blown-up graphs can be effectively exploited to design better algorithms
- Power of Parameterized Methods: Appropriate parameterization can transform difficult problems into tractable ones
- Trade-off Between Approximation and Exactness: Sacrificing slight exactness can substantially improve algorithm efficiency
- Graph Structure Restrictions: Algorithms apply only to blown-up graphs, with limited effectiveness on general graphs
- Parameter Dependence: Algorithm efficiency remains unsatisfactory when neighborhood diversity or bandwidth is large
- Practical Performance: Theoretical complexity bounds may be overly pessimistic in practice
- Other Graph Parameters: Explore algorithms based on other structural parameters (such as treewidth, pathwidth)
- Lower Bound Research: Establish tighter complexity lower bounds
- Practical Implementation: Develop practically usable algorithm implementations and conduct experimental evaluation
- Theoretical Contribution: Substantial progress on an important open problem
- Technical Innovation: Clever exploitation of blown-up graph structure and multiple separator techniques
- Systematic Research: Complete framework from exact algorithms to approximation algorithms to subexponential algorithms
- Rigorous Proofs: Complete and rigorous mathematical proofs
- Limited Practicality: Lacks experimental validation on real data
- Constant Factors: Constants in theoretical analysis may be large, affecting practical efficiency
- Graph Class Restrictions: Applies only to specific graph structures, with limited generality
- Theoretical Value: Provides new research perspective on the P=RP problem
- Methodological Contribution: Algorithm design techniques on blown-up graphs may apply to other problems
- Parameterized Complexity: Enriches the content of parameterized algorithm theory
- Network Design: Matching problems in networks with modular structure
- Resource Allocation: Resource matching in hierarchical systems
- Theoretical Research: Serves as foundational tool for studying other matching problems
The paper cites 17 important references covering classical works in matching theory, parameterized complexity, graph algorithms, and other fields, providing a solid theoretical foundation for the research.