arXiv:2610.27833cs.DSOct 2026

Manuscript Offprint

arXiv:2610.27833

A 2/3-Approximation Algorithm for the Residual Maximum Matching Problem in General Graphs

Quanlong Niu, Riheng Jia

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

The residual maximum matching problem asks for a maximum matching whose deletion leaves a graph with the largest possible matching number. For unweighted graphs, previous work provides a 1/2-approximation guarantee in general graphs and a 2/3 guarantee in graphs with a perfect matching. We present a 2/3-approximation algorithm running in O(n5)O(n^{5}) time, extending the latter guarantee to general graphs. The algorithm improves the residual matching number through single-edge exchanges involving free vertices. We prove that, for any maximum matching that admits no further improvement by such exchanges, the residual matching number is at least 2/3 of the optimum, and we give an example showing that this bound is tight.

Keywords: Maximum matching, Residual graph, Approximation algorithm, Single-edge exchange

0. Introduction

An edge coloring partitions the edges of a graph into matchings, with each color class consisting of edges that have no common endpoints. This structure also describes pairwise tasks performed in successive stages: tasks in the same stage cannot share an endpoint, whereas vertex resources can be reused in different stages. When two stages have strict priorities, the first

∗^{*}Corresponding author

Email address: rihengjia@zjnu.edu.cn (Riheng Jia) stage must accommodate as many tasks as possible, and the number of tasks in the second stage is then maximized over the remaining edges. The resulting optimization problem asks for a maximum matching whose deletion leaves a graph with the largest possible matching number.

In their work on edge coloring, Gabow, Nishizeki, Kariv, Leven, and Terada introduced the lexicographical matching problem, which lexicographically maximizes the cardinalities of two edge-disjoint matchings, and established related hardness results [1]. This model is equivalent to the residual maximum matching problem. Kamalian and Mkrtchyan further studied residual matching numbers after the deletion of a maximum matching and proved that the associated optimization problems remain NP-hard even for connected bipartite graphs of maximum degree three [2]. Once the first matching is fixed, a maximum matching of the residual graph can be found in polynomial time; the difficulty lies in choosing the first maximum matching.

Let ν(G)\nu(G) denote the matching number of GG, and let L(G)L(G) and l(G)l(G) denote, respectively, the largest and smallest residual matching numbers obtained by deleting a maximum matching. Khojabaghyan and Mkrtchyan proved that L(G)≤2l(G)L(G) \leq 2l(G) for every graph and that L(G)≤3l(G)/2L(G) \leq 3l(G)/2 when GG has a perfect matching [3]. Thus, an arbitrary maximum matching gives a 1/2-approximation in general graphs and a 2/3-approximation in graphs with a perfect matching. Mkrtchyan subsequently studied the approximation complexity of these parameters [4], using the above 1/2 guarantee for general graphs and proving that, unless P=NPP = NP, for every 0<ε<1/880 < \varepsilon < 1/88 there is no polynomial-time (1−ε)(1 - \varepsilon)-approximation algorithm for L(G)L(G) on connected bipartite graphs.

The maximum 2-edge-colorable subgraph problem, in contrast, maximizes the total number of edges in two edge-disjoint matchings. Kosowski gave a 5/6-approximation algorithm [5], and Chen, Konno, and Matsushita improved the guarantee to approximately 0.842 [6]. Chen, Fan, and Wang further studied parameterized algorithms for finding two edge-disjoint matchings and approximation algorithms for their total weight [7]. These results optimize the combined size or weight of the two matchings, whereas the lexicographical model requires the first matching to have cardinality exactly ν(G)\nu(G). A maximum 2-edge-colorable subgraph need not contain a maximum matching of the original graph [4]. Consequently, approximation guarantees for the combined objective do not directly yield guarantees for L(G)L(G).

We improve the above 1/2 baseline for general graphs to 2/3. Our algorithm uses single-edge exchanges involving free vertices: an edge of the current maximum matching is replaced by an adjacent edge whose other endpoint is free, and the exchange is accepted only if it increases the residual matching number. Each accepted exchange preserves the maximum cardinality of the first matching and increases the residual matching number by one. Using standard maximum matching algorithms [8, 9], the procedure runs in O(n5)O(n^{5}) time and O(n2)O(n^{2}) space. The key observation is that, at termination, every edge of the maximum matching whose individual addition to the residual graph increases its matching number, called a critical edge, has neither endpoint adjacent to a free vertex. Combining this structural property with a deficit bound for noncritical edges and an assignment argument on oriented alternating paths and cycles, we establish the 2/3 approximation guarantee, extending the ratio for graphs with a perfect matching to general graphs. A seven-vertex example shows that the 2/3 bound implied by this termination condition is tight.