Manuscript Offprint
arXiv:2610.03030A Shortest Augmenting Path Algorithm for Linear Matroid Parity
Abstract
The matroid parity problem serves as a fundamental framework that generalizes both graph matching and matroid intersection. Although the general version is intractable, Lovász (1981) developed a polynomial-time algorithm for the linear matroid parity problem, assuming the availability of matrix representations. Subsequently, Gabow and Stallmann (1986) presented an augmenting path algorithm, which has long been recognized as one of the fastest deterministic algorithms. Since the use of shortest augmenting paths successfully improved algorithms for graph matching (Micali & Vazirani, 1980) and linear matroid intersection (Cunningham, 1986), extending these techniques to linear matroid parity appears to be a natural progression. Such an approach is expected to reduce the cost of matrix updates and yield a faster algorithm, yet its development has remained elusive for four decades.
In this paper, we present the first shortest augmenting path algorithm for linear matroid parity. Our approach synthesizes the augmenting path algorithm of Gabow and Stallmann with the synchronized blossom formation of the Micali–Vazirani framework. Our key technical contributions are threefold: (i) a linear-algebraic argument that bounds the lengths of shortest augmenting paths for linear matroid parity, which generalizes Cunningham's bound for linear matroid intersection; (ii) an a priori characterization of shortest search paths through lower bounds on their lengths; and (iii) an extension of the structural properties for graph matching established by Izumi, Kitamura, and Yamaguchi (2025) to the linear matroid parity setting.
Our algorithm deterministically solves the linear matroid parity problem in time, where is the size of the ground set and is the rank of the matroid. By incorporating fast matrix multiplication, this complexity can be further reduced to . These results improve upon the long-standing deterministic bounds of and .
*Department of Mathematical Informatics, The University of Tokyo (Research Fellow of Japan Society for the Promotion of Science), Tokyo 113-8656, Japan. kouhamada2002@gmail.com
Department of Mathematical Informatics, The University of Tokyo, Tokyo 113-8656, Japan, and Institute for Chemical Reaction Design and Discovery, Hokkaido University, Sapporo, Hokkaido 001-0021, Japan. iwata@mist.i.utokyo.ac.jp
Contents
1 Introduction 1
1.1 Background 1
1.2 Techniques and Contributions 2
1.3 Related Work 3
1.4 Organization 3
2 Augmenting Path Algorithm for Linear Matroid Parity 3
2.1 Notation and Problem Formulation 4
2.2 Linear-Algebraic Framework 4
2.3 Search Procedure 5
3 Analysis of Shortest Augmenting Path Lengths 6
3.1 Motivation and Overview 6
3.2 Linear-Algebraic Tools 7
3.3 Initial Strategy 7
3.4 Complete Approach 9
3.5 Application to Local Search 11
4 Search Procedure for a Shortest Augmenting Path 11
4.1 Technical Outline 11
4.2 Algorithm Description 13
4.3 Super Singleton Reduction 18
4.4 Basic Properties 19
4.5 Validity 23
4.6 Minimality 31
4.7 Optimality 42
4.8 Implementation Details 44
5 Overall Complexity 46
6 Conclusion 47
1.1 Background
The matroid parity problem, introduced by Lawler [18], serves as a unifying framework for graph matching and matroid intersection. Although this problem necessitates an exponential number of independence oracle calls in general [17, 23], Lovász [23] developed the first polynomial-time algorithm for linear matroid parity, in which a matrix representation of the matroid is available.
The linear matroid parity problem is formulated as follows. Given an matrix A of full row rank, where n is even and the columns are partitioned into pairs, find a maximum independent parity set, which is defined as a set of linearly independent columns that is a union of such pairs.
As a broad generalization of fundamental combinatorial problems, this problem finds applications in diverse areas, including path packing problems [21, 31, 33, 38], the rigidity of planar structures [21], maximum-genus cellular embedding [9], and the unique solvability of electric networks [25, 30].
Currently, the fastest known deterministic algorithm is the augmenting path algorithm of Gabow and Stallmann [10], which runs in time, where is the exponent of fast matrix multiplication originated by Strassen [32] and improved by subsequent studies. Analogous to Edmonds' blossom algorithm [6] for graph matching, the Gabow–Stallmann algorithm utilizes blossoms along with a linear-algebraic technique to identify augmenting paths.
Meanwhile, in the 1980s, significant progress was made in graph matching and linear matroid intersection through the study of shortest augmenting paths. Micali and Vazirani [24] leveraged this approach to develop a faster graph matching algorithm. Similarly, Cunningham [5] refined the time complexity for linear matroid intersection by bounding the lengths of shortest augmenting paths. Although Cunningham's bound applies to general matroids, its algorithmic benefits are primarily realized in the linear setting.
Despite these advancements, the linear matroid parity problem has resisted attempts to leverage shortest augmenting paths for four decades. This absence can be attributed to several fundamental bottlenecks.
-
While extending Cunningham’s bound is essential for guaranteeing the efficiency of a shortest augmenting path algorithm for linear matroid parity, its original graph-theoretic proof appears inapplicable to this setting; such an approach fails to exploit the matrix representation, which is integral to the tractability of linear matroid parity.
-
Augmenting paths in the Gabow–Stallmann algorithm are sensitive to the search order. Unlike graph matching, skipping a valid concatenation of the search paths can trigger numerical cancellations that invalidate subsequent paths, which precludes a straightforward a priori definition of “shortest search paths.”
-
The correctness proof of the Micali–Vazirani algorithm is known to be quite complex, mainly due to a “chicken-and-egg” problem: blossoms are defined via their base vertices, yet these vertices must be identified through the structural properties of the blossoms themselves. Their original proposal [24] lacks a correctness proof, and a definitive proof has emerged only recently through successive attempts [35–37].
However, recent breakthroughs have laid a foundation for addressing these issues. Iwata and Kobayashi [15] provided a combinatorial deterministic algorithm for the weighted linear matroid
Even if one focuses on finding a single shortest augmenting path in graph matching, which suffices for linear matroid parity, this inherent challenge remains. See [16, 37] for details.
parity problem, reformulating the linear-algebraic technique of Gabow and Stallmann. More recently, Izumi, Kitamura, and Yamaguchi [16] proposed a new framework for graph matching that yields a shortest augmenting path algorithm and drastically simplifies its correctness proof. The framework removes the complexity of blossoms via alternating base trees and employs incoming edges to exactly characterize the edges necessary for shortest search paths. These advancements enable us to bridge the gap between the Gabow–Stallmann and Micali–Vazirani paradigms.
1.2 Techniques and Contributions
In this paper, we provide the first shortest augmenting path algorithm for the linear matroid parity problem. Our approach synthesizes the Gabow–Stallmann algorithm with the synchronized blossom formation of the Micali–Vazirani framework, while incorporating the recent linear-algebraic reformulation by [15]. To establish its efficiency and correctness, we address the aforementioned challenges as follows.
-
Building on the algebraic formulation of linear matroid parity [13], we provide a novel linear-algebraic approach to bounding the shortest augmenting path length. Our bound generalizes Cunningham's bound in the linear matroid intersection case.
-
Leveraging the linear-algebraic technique of Iwata and Kobayashi [15], we identify an a priori lower bound on search path lengths. We demonstrate that this bound is tight for the proposed algorithm, thereby characterizing “shortest search paths” without explicitly enumerating all candidate search paths.
-
We extend the structural properties of incoming edges introduced by Izumi, Kitamura, and Yamaguchi [16] to linear matroid parity, proving that the incoming edges examined by the algorithm yield the shortest search paths and augmenting paths.
Consequently, we improve the best known deterministic complexity for solving the unweighted linear matroid parity problem from or by Gabow and Stallmann [10] to or , depending on whether fast matrix multiplication is employed or not. This improvement significantly narrows the performance gap with the current best randomized algorithm of Cheung, Lau, and Leung [4], which runs in or time. Notably, the former of our time bounds aligns with Cunningham's time bound for linear matroid intersection.
The following theorem formally states the time complexity, where the matroid is represented by an matrix over a field . Following [10, 28], we adopt the uniform cost model for . This model assumes that each arithmetic operation on takes constant time, which holds for any fixed finite field. Although the case does not generally satisfy this assumption, it can be reduced to polynomially many instances over finite fields [15, Theorem 11.3].
Theorem 1.1. Under the uniform cost model for K, the unweighted linear matroid parity problem can be solved deterministically in time. This complexity is reduced to if fast matrix multiplication is employed.
The time bounds can be further refined by using the maximum size of an independent parity set, which is at most . In particular, the complexity of the randomized algorithm is improved to by Cheung, Kwok, and Lau [3]. The time bounds of our algorithm are refined as follows.
Remark 1.2. In terms of the maximum cardinality of an independent parity set, the complexity bounds in Theorem 1.1 can be refined to and , respectively.
1.3 Related Work
Deterministic Algorithms for Linear Matroid Parity. Lovász discovered a min-max formula [22] and presented the first polynomial-time algorithm [23], albeit with a high degree, for linear matroid parity. Gabow and Stallmann [10] provided an augmenting path algorithm, which runs in time. Subsequently, Orlin and Vande Vate [28] designed an algorithm that solves the linear matroid parity problem via a reduction to a sequence of matroid intersection problems. Orlin [27] later improved this algorithm to run in time, matching the running time bound of the Gabow–Stallmann algorithm when fast matrix multiplication is not employed. Regarding the weighted version of this problem, Iwata and Kobayashi [15] presented a deterministic polynomial-time algorithm based on the augmenting path approach of Gabow and Stallmann, establishing a primal-dual relation for this problem. Independently, Pap [29] obtained a deterministic polynomial-time algorithm based on a different approach.
Randomized Algorithms for Linear Matroid Parity. The influential work of Lovász [20] characterized the linear matroid parity problem via the rank of an alternating matrix containing indeterminates, thereby obtaining a randomized algorithm based on random substitution. Building upon this approach, Cheung, Lau, and Leung [4] developed an -time algorithm. Furthermore, Cheung, Kwok, and Lau [3] combined this algorithm with their fast rank computation, leading to a complexity of . This randomized framework initiated by Lovász has also been extended to the weighted linear matroid parity problem [2, 4], although the resulting time complexity is pseudopolynomial.
Approximation Algorithms for General Matroid Parity. Since solving the general matroid parity problem demands an exponential number of oracle calls [17, 21], researchers have focused on developing approximation algorithms. A simple greedy algorithm provides an approximate solution of factor 2, where the approximation ratio is defined as the optimal value divided by the approximate value. Fujito [8] improved this ratio to 3/2 by refining the greedy solution via a local search that replaces one element with two. Subsequently, Lee, Sviridenko, and Vondrák [19] demonstrated that a local search algorithm with a sufficiently large neighborhood yields a polynomial-time approximation scheme (PTAS).
1.4 Organization
The rest of the paper is organized as follows. Section 2 introduces necessary preliminaries, including notation and problem formulation. Section 3 provides a linear-algebraic proof for our bound on the shortest augmenting path lengths, which generalizes Cunningham's bound for linear matroid intersection. Section 4 presents a shortest augmenting path algorithm for linear matroid parity, followed by its correctness proof. Section 5 analyzes the overall time complexity of the algorithm. Finally, Section 6 summarizes our results and offers possible future directions.
2 Augmenting Path Algorithm for Linear Matroid Parity
In this section, we formalize the linear matroid parity problem and review the Gabow–Stallmann algorithm, an augmenting path algorithm for linear matroid parity [10].
2.1 Notation and Problem Formulation
Linear Matroids. Let be an matrix of full row rank over a field . Throughout this paper, we assume the uniform cost model, where arithmetic operations over are performed in constant time. The linear matroid represented by has the column vectors of as its ground set , and its independent sets are the subsets of columns that are linearly independent. A base is an independent set of maximum cardinality . Note that elementary row operations preserve the structure of linear matroids.
Linear Matroid Parity. Let be a linear matroid represented by an matrix of full row rank over a field , where is even. The ground set is partitioned into a collection of pairs, referred to as lines. For each , the paired column is called its mate and is denoted by . A set is termed a parity set if it is a union of lines. The linear matroid parity problem seeks an independent parity set of maximum cardinality. A parity set that is also a base of is called a parity base.
2.2 Linear-Algebraic Framework
Conventional augmenting path approaches typically maintain a solution , which is initialized to , and iteratively expand it via the symmetric difference with an augmenting path . This section describes a linear-algebraic setup for linear matroid parity that uses elementary row operations to transform the matrix into a representation suitable for augmenting path searches.
To this end, the Gabow–Stallmann algorithm [10] extends the current independent parity set with a set of auxiliary columns , termed singletons, such that forms a base of the resulting matrix with column set . Within this framework, a set is defined as an augmenting path if remains a base while the number of lines in increases by one.
For the extended matrix and a subset of its columns , let denote the submatrix of consisting of the columns in . By applying row operations to so that the submatrix indexed by forms the identity matrix, we obtain , where is referred to as the fundamental cocircuit matrix with respect to the base . The entries of are naturally indexed by , and is nonzero if and only if is a base. More generally, remains a base if and only if the submatrix indexed by the row set and the column set , denoted by , is nonsingular; this equivalence follows since the eliminated matrix has the following form, where holds:
This leads to the following definition of augmenting paths for linear matroid parity.
Definition 2.1. Let be an independent parity set and be a set of singletons such that forms a base. A set is defined to be an augmenting path if the following three conditions hold: (i) contains exactly two singletons, i.e., ; (ii) is a union of lines; and (iii) the submatrix is nonsingular. Moreover, we define the length of an augmenting path as the number of constituent lines, i.e., .
This definition does not require an augmenting path P to be a path in the auxiliary graph G constructed by the augmenting path search (defined in Section 2.3). In general, P may decompose into an alternating path between singletons and additional alternating cycles.
Remark 2.2. The length of an augmenting path is always odd. Indeed, if consists of lines, must consist of lines so that is square, resulting in a total length of .
Next, we provide the update formula of the fundamental cocircuit matrix under the base exchange . As a result of row operations, we obtain in the form of
This gives the following update formula of the fundamental cocircuit matrix, which we refer to as pivoting around P:
C=\begin{array}{c}{{{(V\backslash J)\cap P\quad(V\backslash J)\backslash P}}} \\{{{B\cap P}}} \\{{{\alpha}}}&{{{\beta}}} \\{{{\gamma}}}&{{{\delta}}}\end{array}\quad\xrightarrow{Pivoting around P}\quad\begin{array}{c}{{{B\cap P\quad(V\backslash J)\backslash P}}} \\{{{\alpha^{-1}\quad\alpha^{-1}\beta}}} \\{{{B\backslash P\left[\begin{array}{cc}-\gamma\alpha^{-1}}}}&{{{\delta-\gamma\alpha^{-1}\beta}}}\end{array}\right]. \tag{3}This operation is also utilized for blossom formation in the weighted linear matroid parity algorithm of [15]. The update requires time, where . This complexity can be further improved by using fast matrix multiplication, initiated by Strassen [32]. Specifically, the resulting complexity is , where denotes the exponent of matrix multiplication, with the best published value being due to [1].
Finally, while singletons facilitate the characterization of augmenting paths, it is unnecessary to explicitly maintain these singletons as extended columns when running the algorithm. Assume that S initially constitutes a unit matrix attached to A. In this case, the matrix A itself serves as the fundamental cocircuit matrix C. Also, the subsequent updates can be performed by applying Eq. (3) and discarding singletons that are excluded from the base.
2.3 Search Procedure
To find an augmenting path that satisfies the conditions in Definition 2.1, the Gabow–Stallmann algorithm utilizes an auxiliary graph derived from the fundamental cocircuit matrix . The graph is defined as a bipartite undirected graph on the vertex set , partitioned into and . An edge exists between and if and only if .
The search for an augmenting path traverses the auxiliary graph G in a similar fashion to breadth-first search by maintaining the following two primary structures.
• Search Paths: The algorithm explores the graph G to establish search paths starting from singletons. Once a search path is found for a vertex v, the path remains fixed during the search, and v is thereafter referred to as labeled. This path is an odd-length sequence of vertices , where is a singleton and . The sequence alternates such that forms an edge and represents a line for each .
• Blossoms: When the search encounters certain cycles, the algorithm identifies a blossom, a union of lines that effectively functions as a single line. These blossoms are constructed by merging lines and existing outermost blossoms, thereby forming a laminar family.
The search process generally consists of two main operations: Grow and Blossom. Intuitively, Grow extends the search forest by attaching half-labeled lines, whereas Blossom forms a blossom on the search forest and labels the remaining halves of the lines within the blossom.
-
Grow: Given a labeled vertex v, the operation identifies an adjacent vertex u such that neither u nor is labeled. The operation then assigns a search path to its mate , while u remains unlabeled at this stage. When both u and are adjacent to v, a special process forming a blossom is triggered, the details of which are omitted here.
-
Blossom: Suppose that two labeled vertices u and v form an edge, where and stem from a common singleton. The Blossom( ) operation first backtracks along and to their intersection. Each unlabeled vertex encountered during this traversal is assigned a search path formed by extending or with the traced segment of the opposite path. Afterward, the process merges all traversed blossoms into a single new blossom. To guarantee the nonsingularity of for the final output path P, a new vertex is inserted at the intersection point via a linear-algebraic technique, the details of which are omitted here.
Utilizing these two operations, the search procedure first labels all the singletons and then iterates through labeled vertices in the order of their assignment. For each such vertex u, the algorithm executes and subsequently performs for each adjacent labeled vertex v also in the order of assignment, as long as and share a common singleton. If and stem from different singletons, the search terminates by returning their concatenation as an augmenting path.
A rigorous analysis of the processing order, combined with the linear-algebraic treatment for blossom formation, ensures that this identified path is indeed an augmenting path. Furthermore, if no augmenting path is identified at the end of the search procedure, one can obtain a dual certificate to show the optimality of the independent parity set, which provides an alternative proof of the min-max formula of Lovász [22].
3 Analysis of Shortest Augmenting Path Lengths
3.1 Motivation and Overview
In the augmenting path algorithm for linear matroid intersection, the pivoting operation along an augmenting path, which incurs a cost proportional to the path length , dominates the overall time complexity. Consequently, as demonstrated by Cunningham [5], the total time complexity can be reduced by deriving a tighter bound on the lengths of shortest augmenting paths.
Since pivoting is also the computational bottleneck in the Gabow–Stallmann algorithm, establishing an equivalent bound is vital for the shortest augmenting path approach to linear matroid parity. To this end, we prove the following lemma, generalizing Cunningham’s result for the linear matroid intersection case to the parity setting.
Lemma 3.1. Let denote the maximum size of an independent parity set. For any independent parity set , there exist disjoint augmenting paths.
This lemma bounds the length of the shortest augmenting path as via a simple counting argument (see Corollary 3.6). Consequently, assuming that the shortest augmenting path can be efficiently identified in each iteration, this yields an improved total time complexity of , which matches Cunningham's time bound.
Cunningham originally derived the counterpart of this bound for general matroid intersection via a graphical approach. However, such a strategy appears difficult to extend to linear matroid parity, because it neglects the linear-algebraic representation that is indispensable for efficiently solving linear matroid parity.
To overcome this challenge, we develop a novel linear-algebraic approach to prove Lemma 3.1. In what follows, we first introduce linear-algebraic tools employed in the proof, then present an initial attempt that highlights a technical difficulty, and finally detail the complete proof.
While our result for linear matroid parity encompasses Cunningham's result for the linear matroid intersection case, our proof can also be tailored to the intersection setting using analogous tools. Although we omit the details, the corresponding difficulty can be readily resolved in this setting, which indicates that the technical difficulty is intrinsic to linear matroid parity.
3.2 Linear-Algebraic Tools
Pfaffians. A square matrix is alternating if and its diagonal entries are all zero. We note that the latter requirement is redundant unless the underlying field has characteristic two. Let be the symmetric group of degree . We define as the set of permutations such that for each and . This set corresponds to the set of perfect matchings on . The Pfaffian of a alternating matrix is then defined by
A fundamental property of the Pfaffian is the identity , which implies that an alternating matrix of even size is nonsingular if and only if .
Algebraic Formulation of Linear Matroid Parity. The following proposition characterizes the maximum cardinality of an independent parity set via an alternating matrix containing indeterminates.
Proposition 3.2 ([13]). Let be distinct indeterminates, and the alternating block-diagonal matrix consisting of blocks, each of which is the matrix . Consider the alternating matrix . Then, the maximum size of an independent parity set is characterized by the rank of as .
Corollary 3.3. A parity base exists if and only if the matrix is nonsingular.
3.3 Initial Strategy
Our strategy is based on two key observations. First, the auxiliary graph G from the Gabow–Stallmann algorithm (defined in Section 2.3) is a subgraph of the support graph of the alternating matrix , which we define later. Second, the nonsingularity of , combined with the definition of the Pfaffian, yields a collection of “alternating” paths. However, these paths may fail to be augmenting paths, necessitating a more sophisticated strategy for path construction in Section 3.4.
In what follows, we detail the procedure for constructing the alternating paths. For simplicity, we assume the existence of a parity base, i.e., the nonsingularity of (Corollary 3.3). Since the fundamental cocircuit matrix C is obtained via row operations on A, we may apply row and column

Figure 1: The undirected graph and the set of lines defined over the index set of . Single bonds represent the edges of and double bonds represent the lines in . The subgraph G and the line set L are shown in black, while the remaining parts of and are shown in gray.
operations to to yield the following form:
For notational simplicity, we continue to denote the resulting matrix by . Since the second and third blocks both have as their index set, we denote the latter by to avoid ambiguity. Accordingly, we extend the set of lines to include the corresponding lines on , and denote the resulting set of lines by .
The support graph of the matrix is an unweighted undirected graph (see Figure 1), where is the row/column set of , and if and only if . Notably, this construction embeds the auxiliary graph as a subgraph of .
Let be the order of the matrix , which is necessarily even because of the existence of a parity base. Since the matrix is nonsingular, it holds that , i.e.,
Let be a permutation such that the corresponding term in the summation is nonzero. Since this implies for all , the permutation directly defines a perfect matching on . We now consider the graph , where denotes the union as multisets; may thus contain parallel edges. Since forms a perfect matching on , the graph consists of alternating cycles (potentially of length two) and alternating paths between two distinct vertices in . Here, “alternating” signifies that the edges of these components alternate between and . Moreover, if an edge of connects two corresponding vertices and , this edge must be part of a cycle on . Consequently, the alternating paths never intersect and are restricted to , implying that they alternate between the edges of and the lines in .
The above discussion constructs disjoint alternating paths from the auxiliary graph . For each path , the induced subgraph possesses a perfect matching, implying that contains a nonzero term in its summation. However, this argument alone cannot eliminate the possibility of cancellation in the final sum, and thus falls short of guaranteeing that these paths are augmenting paths.
3.4 Complete Approach
A naive choice of with does not necessarily prevent an accidental cancellation within for each constructed path . To ensure nonsingularity, we group the terms of Pf according to their associated path and cycle structures. Among groups with a nonzero sum, we select the one corresponding to the finest partition of the vertex set. This choice induces a decomposition of into nonsingular blocks, which guarantees that the paths are augmenting paths.
To formalize this, we define a partial order on the set of partitions based on refinement. Let denote the collection of all partitions of a finite set . A partition is a refinement of , denoted by , if every component of is a subset of some component of .
Building upon the initial attempt, we first present a complete proof under the assumption that a parity base exists, and then reduce the general case to this setting.
Lemma 3.4. Consider an instance of the linear matroid parity problem in which a parity base exists. Then, for any independent parity set , there exist disjoint augmenting paths.
Proof. In the following proof, we use the notation introduced in Section 3.3. We first define a map , where is the set of all connected components of . Then, the sum in the definition of the Pfaffian can be partitioned as
Since this is nonzero, there exists a partition such that . We choose to be minimal under the refinement order; that is, for every . The sum over all refinements of then yields
Crucially, the set corresponds to the set of matchings whose edges are restricted to the individual components of . Consequently, the sum in Eq. (8) is equivalent to the Pfaffian of a block-diagonal matrix with each block being the principal submatrix for . Since Eq. (8) ensures the nonsingularity of , each block is also nonsingular.
Since there exists with , the discussion in Section 3.3 shows that contains alternating paths that connect distinct vertices in and are disjoint from . Hence, it remains to verify that each alternating path is an augmenting path. Since , the nonsingular block can be expressed as
This issue is specific to linear matroid parity. In linear matroid intersection, since alternating paths without shortcuts are always augmenting paths, removing shortcuts from the obtained paths readily yields augmenting paths.
Since these sub-blocks of are square and share the same size, the upper-right sub-block is nonsingular. As the remaining requirements in Definition 2.1 follow directly, is an augmenting path.
Next, we generalize this lemma to general cases where a parity base may not exist. In the following proof, we leverage the proof of [10, Theorem 2.1] to identify a maximum independent parity set whose span includes that of J. While we prove the existence of via a combinatorial argument, it also follows from the validity of augmenting path algorithms.
Lemma 3.1. Let denote the maximum size of an independent parity set. For any independent parity set , there exist disjoint augmenting paths.
Proof. We first prove the existence of a maximum independent parity set whose span includes that of . Let be a maximum independent parity set that minimizes . Assume for contradiction that there exists a vector that is not spanned by . Then, is independent, whereas is dependent by the maximality of . Thus, can be uniquely represented as a linear combination of . Since is independent and contains , this representation must have a nonzero coefficient for some . Consequently, is independent. However, this implies that is also a maximum independent parity set, contradicting the minimality of .
To facilitate the reduction to Lemma 3.4, let be a set of singletons such that forms a base of the linear matroid on such that its restriction on is identical to . In matroid theoretic terminology, we now contract from the linear matroid to obtain a new linear matroid on . This can be done by performing Gaussian elimination on the columns of in and removing the rows and columns corresponding to , which yields a matrix .
The resulting linear matroid has a ground set identical to that of and satisfies the following properties: (1) any independent set of is also independent in ; (2) remains an independent parity set of ; and (3) is a parity base of . Consequently, applying Lemma 3.4 to this matroid yields disjoint augmenting paths for in , which are also augmenting paths for in .
Remark 3.5. Following the reduction in [4, Section 6.5], one can develop an alternative linear-algebraic reduction. Because the principal submatrix is nonsingular, it can be extended to a nonsingular submatrix of order rank . Although this submatrix may not be a principal submatrix, the argument in [26, Proposition 7.3.6] allows for transforming it into a nonsingular principal submatrix of the same size containing . Consequently, applying the same argument as in Lemma 3.4 to this principal submatrix yields the desired augmenting paths.
Finally, we derive the bound on the length of the shortest augmenting path, which is used in Section 5 to analyze the time complexity of our shortest augmenting path algorithm.
Corollary 3.6. Let denote the maximum size of an independent parity set. For a non-maximum independent parity set , the shortest augmenting path length is at most .
Proof. Consider the disjoint augmenting paths provided by Lemma 3.1. Since contains lines, the shortest among these paths contains at most lines from . Remark 2.2 then ensures that this path contains at most lines from , yielding a total length of at most . Since the overall shortest augmenting path cannot be longer than this path, the desired bound follows.
3.5 Application to Local Search
We conclude this section by demonstrating a direct consequence of applying Corollary 3.6 to the local search algorithm of Lee, Sviridenko, and Vondrak [19]. Their algorithm iteratively performs a brute-force search for augmenting paths of length at most , effectively replacing lines in with lines. They analyzed this algorithm for general matroid parity and established a -approximation by setting , thereby providing a polynomial-time approximation scheme (PTAS).
Our analysis of the shortest augmenting paths demonstrates that is sufficient for linear matroid parity, generalizing the well-known parameter bound for graph matching.
Corollary 3.7. The local search algorithm of Lee, Sviridenko, and Vondrak with the neighborhood size gives a -approximation algorithm for linear matroid parity.
Proof. When the algorithm terminates, the length of the shortest augmenting path is more than . Hence, Corollary 3.6 gives , which is equivalent to . This guarantees a -approximation by setting .
While known exact algorithms for linear matroid parity rely on the matrix representation of the linear matroid, this algorithm also applies to cases where such a representation is unavailable, as long as the independence oracle is accessible.
4 Search Procedure for a Shortest Augmenting Path
4.1 Technical Outline
4.1.1 Key Features of Our Algorithm
Although our search procedure for a shortest augmenting path follows the Gabow–Stallmann framework presented in Section 2.3, it is primarily distinguished by the synchronization strategy for Grow and Blossom operations. Specifically, while the Gabow–Stallmann algorithm processes vertices in a simple sequential order, our algorithm adopts level-based synchronization inspired by the Micali–Vazirani algorithm for graph matching [24].
Algorithm 1 outlines our proposed search procedure for a shortest augmenting path. We define the level of a vertex v, denoted by , as the number of lines within . The process is partitioned into search levels , where each phase k first executes on vertices of level k and then performs for edges with a level sum of . Because a parity argument ensures this sum is always odd, the procedure eventually exhausts all edges between labeled vertices. Within each phase k, the Blossom operations are ordered by their maximum level; any remaining ties in Grow or Blossom are broken by search order, following the Gabow–Stallmann algorithm.
While this modification is conceptually straightforward and seems promising for finding a shortest augmenting path, establishing a formal proof of correctness presents significant challenges identified in Section 1.1. In particular, the challenge of defining shortest search paths a priori compels us to replace the linear-algebraic process in blossom formation with the variant employed in the weighted linear matroid parity algorithm [15], as it is more suitable for analyzing the properties of search path lengths.
We briefly review this linear-algebraic process, which is applied to the intersection of and during the execution of Blossom( ). Every time this process is invoked, it introduces
Algorithm 1 Ordering of operations for finding a shortest augmenting path (informal).
1: for do ▷ Vertices are always selected in the order they were labeled. 2: for v with level(v) = k do 3: Grow(v) 4: for do 5: 6: for u with level(u) = do 7: for v with level(v) = do 8: Blossom(u, v) ▷ An augmenting path is found if their starting singletons differ.
a dummy line, which consists of two auxiliary vertices. These lines facilitate the search for an augmenting path, enabling the algorithm to identify a path P such that, even if P contains dummy lines, the remaining component induces a nonsingular submatrix. Since dummy lines are not used in the base update, they are excluded from the definition of levels, which is intended to quantify the augmenting path length and its corresponding base update cost.
Each dummy line is inserted by first extending the fundamental cocircuit matrix with a new row and column, and then pivoting around it. At any point during the algorithm, we denote the set of these newly added vertices by T, and the matrix obtained so far by . Then, the nonsingularity of is guaranteed via the nonsingularity of and the “coherence” of P with dummy lines, a structural property defined later.
Finally, since a naive implementation of the entire algorithm suffers several computational bottlenecks, such as blossom management and pivoting operations, Section 4.8 describes an efficient procedure for these processes. Consequently, given the fundamental cocircuit matrix, one can identify a shortest augmenting path in time. Accordingly, the total search iterations remain within the time bounds claimed in Theorem 1.1 and Remark 1.2.
4.1.2 Correctness Proof
We establish the correctness of our algorithm by proving the following three properties: (i) validity: the identified path is indeed an augmenting path; (ii) minimality: the discovered path is the shortest; and (iii) optimality: the termination without finding a path guarantees that the current independent parity set is maximum.
The proofs for validity and optimality are built upon the theoretical frameworks of [14, 15], which relate the nonsingularity of alternating matrices to perfect matchings on their support graphs. In what follows, we focus on the proof of minimality. As noted in the introduction, we characterize shortest search paths by first establishing an a priori lower bound on search path lengths and then verifying that our algorithm attains this bound.
Lower Bound on Search Path Lengths. The validity proof demonstrates that, for every labeled vertex , the set is structurally analogous to an augmenting path: it induces a nonsingular submatrix and remains “coherent” with dummy lines, as defined later. For an augmenting path , these properties collectively guarantee the nonsingularity of . By formally characterizing such a structure as a coherent nonsingular path to , we can naturally derive a lower bound on level as follows. We define the length of a path as the number of lines (excluding dummy lines) that intersect , and denote by dist the minimum length of a coherent nonsingular path to . Since is a coherent nonsingular path to , we obtain the lower bound level. Crucially, this bound is invariant under the insertion of dummy lines.
Furthermore, this bound naturally applies to the case where , whereas establishing a similar bound within the linear-algebraic framework of Gabow and Stallmann is nontrivial.
Attaining the Bound. We prove that the proposed algorithm attains the bound level(v) = dist(v) by induction on the search level k. Intuitively, since the algorithm assigns levels from smaller to larger values, each vertex v has a “deadline” for level assignment derived from the bound. To ensure that each assignment is performed within this deadline, our core task is to verify the existence of an associated “trigger” for the Grow and Blossom operations. In the following proof sketches, we omit dummy lines for clarity.
For Grow operations, the trigger for labeling is a labeled vertex adjacent to . The existence of such a vertex is guaranteed via the Laplace expansion. Suppose a Grow operation must assign level to a vertex , i.e., . By applying the Laplace expansion to the row or column of in , where is a shortest coherent nonsingular path to , we can decompose into an edge and a shorter coherent nonsingular path to . Since this subpath ensures , the inductive assumption guarantees that . Consequently, will identify and assign level to as required.
For Blossom operations, the trigger is an incoming edge between labeled vertices, a concept originally introduced by Izumi, Kitamura, and Yamaguchi [16] for graph matching. Informally, an incoming edge is one that enters the subtree of the search forest rooted at v, excluding the forest edge itself. This characterization ensures that, if Blossom is performed on the incoming edge, the backtracking process labels v. To guarantee the existence of an incoming edge that meets the deadline, we employ a variant of the decomposition technique developed in Section 3.4. Specifically, a shortest coherent nonsingular path to v is decomposed into an incoming edge and two coherent nonsingular paths Y and Z (see Lemma 4.47). By the inductive assumption, these paths ensure that y and z are labeled with levels sufficiently small to trigger the operation in time.
4.1.3 Section Organization
The remainder of this section is organized as follows. Section 4.2 introduces necessary notation and details our procedure for finding a shortest augmenting path. Section 4.3 provides a reduction from the multi-source to a single-source setting, which facilitates the subsequent proofs. Section 4.4 establishes several fundamental properties of the algorithm. Section 4.5 shows the validity: the algorithm finds an augmenting path defined in Definition 2.1. Section 4.6 proves the minimality: the augmenting path found by the algorithm is the shortest. Section 4.7 shows the optimality: the current solution is optimal if the algorithm does not find any augmenting paths. Section 4.8 presents the implementation details required to achieve the desired efficiency.
4.2 Algorithm Description
4.2.1 Notation and Definitions
This section introduces the notation and definitions required to describe our shortest augmenting path algorithm and verify its correctness.
Search Paths. For a search path and an intermediate vertex , let denote the subpath of starting from the successor of (thereby excluding itself). We also write for the reverse of a path , and PQ for the concatenation of paths and in this order. While each search path is formally defined as a sequence of vertices, we also let denote its vertex set when the context is clear.
As discussed in Section 2.3, the Gabow–Stallmann algorithm maintains search paths to labeled vertices, which remain fixed once assigned. While our algorithm also relies on search paths, these paths may be modified upon the insertion of dummy lines, as detailed later in (Step 3). Although this process appears to drastically alter the paths, Corollary 4.9 demonstrates that the procedure simply inserts the new dummy line into the middle of each path.
Dummy Lines and Blossoms. Each blossom is assigned a specific auxiliary line called its dummy line. When the algorithm forms a new blossom , it either introduces a new dummy line or reuses the dummy line of a sub-blossom ; in the latter case, the same dummy line is shared by both and . While may contain multiple dummy lines as part of its constituent lines, the dummy line of only refers to the one assigned at its formation.
Each dummy line consists of a bud and a tip , which are both contained in the associated blossom . For convenience, we define and . A dummy line is introduced by first appending a new row and a new column to the fundamental cocircuit matrix and then pivoting around them. We distinguish the initially existing lines as original lines, and collectively refer to both original lines and dummy lines as lines. Let denote the set of buds and tips. Since introducing these vertices affects several algorithmic notions, let , , and denote the resulting base, fundamental cocircuit matrix, and graph, respectively. It follows that .
As discussed later, the insertion of a dummy line involves a specific vertex g, whose incident edges relevant to the search are effectively removed by the associated pivoting operation. Since g can no longer be used for further search, the algorithm not only labels g but also marks g as retired. Hence, retired vertices are always labeled. This definition is crucial for establishing the subsequent validity proof and achieving the desired time bound. For convenience, a vertex is termed active if it is not retired.
For each vertex , we define as the maximal blossom containing . If no such blossom exists, we define . Note that is not defined on singletons, because they never belong to any blossom during the search. While blossoms are crucial for the proof of correctness, the algorithm only needs to maintain the maximal blossoms during its execution.
Grow and Blossom Operations. For each line, we define the lower vertex as the one labeled first and the upper vertex as the other. The lower vertex of an original line is labeled by Grow, whereas that of a dummy line is labeled upon insertion. In either case, the upper vertex of any line is always labeled by Blossom. The terms “lower” and “upper” reflect the algorithmic property that, once both levels are determined, the level of the former is no greater than that of the latter. Note that these definitions do not yet apply to lines whose vertices both remain unlabeled.
The Grow operation records a predecessor when finding a new original line via an edge . The predecessor is defined exclusively for upper vertices and is utilized when labeling in the Blossom operation.
Upon labeling a vertex x, the algorithm description also specifies a suffix of the search path , which is defined only for the sake of proof and is not required for running the algorithm. Specifically, this fragment is utilized for providing a search path decomposition and proving that the found path is an augmenting path. Unlike search paths, remains fixed once established.
Synchronization Strategy for Operations. Finally, we introduce the notation necessary for formally describing our synchronization strategy. The level of a labeled vertex v, denoted by level(v),
Note that this definition differs from that of [15], where blossoms act as shrunk vertices. Following [14], blossoms act as shrunk lines in this paper.
Algorithm 2 Procedure for finding a shortest augmenting path.
1: procedure FindShortestAugmentingPath 2: for do 3: 4: 5: Insert s into VL[0]. 6: 7: while s.t. level(v) do 8: AssignLowerLevel(k) 9: for do 10: 11: if then 12: return P 13: 14: return ▷ No augmenting path has been found.
Algorithm 3 Subroutine for assigning lower levels.
1: procedure AssignLowerLevel(k) 2: for do 3:
is defined as the number of original lines contained within the search path . Although this count excludes dummy lines, is still defined for labeled vertices of dummy lines.
The algorithm also maintains an array of lists VL, where each list can be scanned sequentially and extended only at its end. The k-th list VL[k] stores the vertices of level k in the order they were labeled. For computational efficiency, the algorithm omits from these lists vertices that do not contribute to the search, namely tips and retired vertices. Initially, VL[0] is set to S in an arbitrary order, and the other lists are set to empty. The search order is determined based on VL.
For ease of description, we define a total order on the set of all labeled vertices. For labeled vertices that are inserted into VL, we write if , or if and precedes in VL[k]. For tips and retired vertices, we specify their positions in the total order at the time they are labeled. We write if or .
4.2.2 Search Procedure
Algorithm 2 presents the procedure for finding a shortest augmenting path. It utilizes the following two subroutines: AssignLowerLevel(k) and AssignUpperLevel(k, ), detailed in Algorithms 3 and 4. The subroutine AssignLowerLevel(k) executes Grow(v) on vertices v of level k to find new original lines and assign the lower level . The subroutine AssignUpperLevel(k, ) assigns upper levels by identifying edges such that and . For each such edge, it performs Blossom if and stem from the same singleton; otherwise, it returns as a shortest augmenting path. Finally, if no augmenting path is returned and no vertices or edges remain to process, i.e., the condition in Line 7 of Algorithm 2 is no longer met, the search procedure reports that no augmenting path exists.
Although Grow internally uses Blossom in a special case, we first present Grow in Algorithm 5
The Gabow–Stallmann algorithm handles this case by creating a degenerate blossom; this approach was later
Algorithm 4 Subroutine for assigning upper levels.
1: procedure AssignUpperLevel(k, ) 2: 3: for do 4: for do 5: if and then 6: if and stem from the same singleton then 7: Blossom(u, v) 8: else 9: return 10: return 0 ▷ No augmenting path has been found.
Algorithm 5 Operation for identifying new original lines.
1: procedure Grow(v) 2: for s.t. do 3: if neither u nor is labeled then 4: . 5: Insert at the end of VL[level( )]. 6: 7: if then 8: Blossom( ) 9: 10: else 11:
because of its simplicity. Line 8 addresses the special case where a blossom consisting of and a dummy line should be formed, which is handled instantly during the Grow operation.
We then detail the Blossom operation. The precondition for Blossom(u, v) is , which always holds whenever the operation is called. While Grow can be simply described in pseudocode, Blossom involves the following complex steps. See Figure 2 for the pivoting operation performed in (Step 2) and Figures 4–6 for the subsequent updates to executed in (Step 5).
(Step 1) Let be the last vertex in such that shares a vertex with . Let be the last vertex in such that . Note that holds. If , set , and proceed to (Step 2). If , set , and skip to (Step 4).
(Step 2) Let be the successor of on . Mark as retired. Extend the fundamental cocircuit matrix by inserting as a new row and column, with entries defined as follows.
- If and , let be a new row and be a new column. Define . For , define if and otherwise. For , define if and otherwise.
unified with the handling of ordinary blossoms in [15].
Our algorithm always calls Blossom(u, v) with a vertex u such that is nonempty, ensuring that g can be defined. In contrast, may become empty; for example, it is always empty when the Blossom operation is triggered within a Grow operation.

Figure 2: Illustration of (Step 2) when and . Black and white vertices represent those in and , respectively. The pivoting operation alters the hatched region in ; specifically, Lemma 4.2 ensures that edges with may be added or deleted, as illustrated by the dotted edge. It also scales each region marked with an asterisk in , preserving the corresponding edges in (see Lemma 4.3).
- If and , let be a new column and be a new row. Define . For , define if and otherwise. For , define if and otherwise.
Expand and according to the index set of . Finally, update by pivoting around , modify accordingly, and set .
(Step 3) Update every search path intersecting by setting . Label with and define . Note that . Extend the total order so that is immediately after . Set for each vertex with , and set .
(Step 4) If , label with and , place as a successor of in the total order since is retired, and proceed to (Step 5). Otherwise, label each unlabeled vertex , excluding the new bud if , in descending order of as follows.
(1) Set if , and if .
(2) Unless x is retired, append x to the end of VL[level(x)].
After labeling all such , define for each , where is the last vertex in that is unlabeled or satisfies . When , the retired vertex and a potential tie are handled as follows (no ties occur when ). Since is excluded from VL, its position within the total order is determined according to this labeling order. Here, a tie occurs if and only if there exists an unlabeled vertex such that ; in this case, break the tie in the total order by setting , and define .
(Step 5) If , mark and as the bud and tip of , respectively. Otherwise, set the bud and tip of to those of . Finally, register as a blossom and update for each .
We defer algorithmic properties to Section 4.4. Here, we describe the properties of the pivoting operation.
Lemma 4.1. The following properties hold after each Blossom operation.
(BT1) Let be the matrix obtained by applying the pivoting operation around T to the fundamental cocircuit matrix . Then, holds.
(BT2) For any blossom , tips and retired vertices within are not adjacent to any vertex in .
Proof. Property (BT1) is straightforward by the algorithm description. It suffices to verify (BT2) when Blossom creates a dummy line , since the statement inductively follows if the dummy line is reused.
Prior to the pivoting operation, is not adjacent to any vertex in . Hence, the update formula in Eq. (3) implies that is not adjacent to any vertex in .
It remains to prove that is not adjacent to any vertex in . We assume and because the other case follows by a similar argument. Let and be the fundamental cocircuit matrix before and after the pivoting operation. The update formula in Eq. (3) yields the equation for and . Hence, for and , we have by and , which completes the proof.
Lemma 4.2. Let and be the edge sets before and after the pivoting operation performed by a Blossom operation. Any edge satisfies (i) , or (ii) , , and , up to interchanging and .
Proof. Assuming that condition (i) does not hold, we show that condition (ii) follows. We assume and since the other case follows similarly. The update formula of the entry presented in the proof of Lemma 4.1 implies that and is necessary. Hence, the definition of these entries concludes the proof.
Lemma 4.3. Suppose a Blossom operation inserts a dummy line . Then, if a vertex that existed before this operation (i.e., ) is adjacent to (resp. ), it was adjacent to (resp. ) before the operation.
Proof. It follows from the description of (Step 2) and the pivoting formula in Eq. (3).
4.3 Super Singleton Reduction
To simplify the subsequent proofs, we introduce a reduction from the multi-source to a single-source setting. The reduction consolidates the set of singletons into a new singleton by extending the graph as in Figure 3. This is achieved by extending the fundamental cocircuit

Figure 3: Graph extension via super singleton reduction. Black vertices belong to the new base.
matrix as follows:
where all blank blocks are zero and 1 denotes an all-ones vector of the corresponding size. Here, we introduce two new columns and that form a line. We also added a set as new rows, where forms a line for each . Finally, a new row is inserted as a unique singleton, which we call a super singleton. The base is also updated as .
While this reduction preserves the structure of search paths and blossoms, it reduces finding an augmenting path to forming a blossom that contains any two of the original singletons. This allows for a unified treatment of blossom formation and augmenting path detection in the subsequent proofs.
4.4 Basic Properties
Here, we outline the fundamental properties of the algorithm to elucidate its mechanism and to facilitate the subsequent proofs. Unless otherwise specified, the invariant conditions discussed in the subsequent proofs are preserved by each Grow or Blossom operation, excluding nested Blossom calls within Grow.
We first define the search tree as follows. The vertex set consists of labeled vertices and their mates. The edge set comprises all edges of the forms and for every upper vertex .
While the search tree T provides a fundamental framework, it does not fully characterize the structure of the search paths and related concepts. To bridge this gap, we incorporate blossom-forming edges, defined as the edges to which Blossom has been applied. As an exception, whenever the Blossom operation is called within a Grow operation, the corresponding blossom-forming edge is defined as . The following lemma characterizes the structure of the search paths using these concepts.
Lemma 4.4. Any two consecutive vertices in a search path constitute either a search-tree edge or a blossom-forming edge.
Proof. The statement holds inductively when the search path is defined or updated by Grow or Blossom. Hence, the only potentially problematic case is the deletion of edges upon the introduction of dummy lines. However, since a removed edge must satisfy condition (ii) from Lemma 4.2, every search path including such an edge intersects . Consequently, (Step 3) must have updated this path to , preserving the condition.
Based on these concepts, we characterize the structure of the maximal blossoms . A simple induction verifies that blossoms are a union of lines. Moreover, maximal blossoms constitute a partition of the search tree T except for the root . The following lemma characterizes the maximal blossoms via the search tree and the search paths (see Figures 4–6).

Figure 4: Partition of given by . Gray nodes represent the unique unlabeled vertex in each component. Solid lines and curves represent single and multiple search-tree edges, respectively; dashed lines represent single blossom-forming edges.

Figure 5: Update of the partition by a Blossom operation in the case where c = d.

Figure 6: Update of the partition by a Blossom operation in the case where .
Lemma 4.5. For every vertex , the maximal blossom satisfies the following properties.
(MB1) contains exactly one unlabeled vertex.
(MB2) Any search path that enters must do so via its unique unlabeled vertex.
(MB3) The induced subgraph is a tree.
To prove this lemma, we also need to show that every search path is simple, i.e., that it does not contain any repeated vertices. Such basic properties of search paths are summarized below.
Lemma 4.6. Let be a search path, where and . Then, is simple, i.e., if . Also, the following properties hold: (1) is odd, (2) and form an edge in for each , (3) and form a line for each , and (4) if is unlabeled, then is even.
We prove Lemmas 4.5 and 4.6 simultaneously by induction, since each lemma is necessary to establish the other in the inductive step. Before presenting the proof, we provide a core observation based on these lemmas that simplifies the identification of c in (Step 1).
Remark 4.7. By (MB3), the contraction of each maximal blossom on T yields a tree. Furthermore, because search paths are simple and blossom-forming edges cannot bridge different maximal blossoms, Lemma 4.4 ensures that each search path is mapped to the unique path from to in this contracted tree. Therefore, for a Blossom( ) operation, the blossom defined in (Step 1) corresponds to the lowest common ancestor of and in this contracted tree.
Proof of Lemmas 4.5 and 4.6. We proceed by induction on the Grow and Blossom operations. It is straightforward to verify all properties in these lemmas when Grow adds a new original line to T. Hereafter, we focus on a Blossom operation on u and v. Note that Remark 4.7 holds inductively prior to the operation.
First, suppose c = d. We first focus on the update of search paths in (Step 3). In this case, Remark 4.7 ensures that the set H in (Step 1) is the union of the maximal blossoms on the paths from and to , excluding . Consequently, every search path intersecting must enter by exiting at via a search-tree edge, which implies . Hence, the updated path is well-defined. Moreover, this path remains simple because and are disjoint; specifically, in the contracted tree, is mapped to the path from to , whereas is mapped to the subsequent path from a child component of to .
Still under the assumption , we now show that (MB1) and (MB2) are inductively preserved and that the search paths remain simple. For the blossoms comprising , their unique unlabeled vertices lie on or by (MB2), and thus become labeled in (Step 4). Consequently, the resulting blossom has as its unique unlabeled vertex, satisfying (MB1). Furthermore, the updated paths in (Step 3) enter the resulting blossom through , maintaining (MB2). The search paths newly defined in (Step 4) also preserve (MB2), because their extended segments remain within the resulting blossom. Finally, these paths are simple, because the contraction structure guarantees that , , and are disjoint before their updates.
Next, suppose . The set now includes , and a similar argument shows that the unique unlabeled vertex of is the only unlabeled vertex within , satisfying (MB1). Property (MB2) holds similarly, because every search path entering the new blossom must visit before any other blossom comprising . Finally, the search paths newly defined in (Step 4) are simple, because and are disjoint, as are and .
We now verify the remaining conditions: properties (1)–(4) from Lemma 4.6 and (MB3). Properties (1)–(4) from Lemma 4.6 follow by an analogous inductive argument. Regarding (MB3), existing maximal blossoms preserve (MB3) because their internal edges cannot be deleted. The new blossom also satisfies (MB3) because search-tree edges link the components in (and if ) into a tree. This completes the proof.
The contraction structure discussed in this proof has several implications for the description of the Blossom operation. First, the definitions of and in (Step 1) are symmetric in the sense that satisfies the symmetric condition, i.e., is the last vertex in such that . Furthermore, the algorithm only designates previously unlabeled vertices as , which ensures that active vertices never become retired once they are labeled. Also, the characterization of possible ties described in (Step 4) can be verified.
Next, we will prove Corollary 4.9, which ensures that the update of each search path intersecting H in (Step 3) corresponds to inserting bt into . This implies the invariance of levels under the insertion of dummy lines. To prove this corollary, we utilize the following lemma.
Lemma 4.8. Every unlabeled vertex in a search path is an upper vertex, i.e., is defined. Moreover, decomposes as .
Proof. Since is unlabeled, is either found by Grow or created as a dummy line by Blossom. In either case, is an upper vertex and is defined. Furthermore, holds.
We proceed by induction to show that any search path containing has as its prefix as long as is unlabeled. If a new search path containing is generated by Grow, this condition is trivially satisfied. Suppose next that Blossom creates a search path containing as an unlabeled vertex. If is the bud created by this operation, the statement follows immediately by definition. Otherwise, since existed prior to the operation, cannot lie on or . Consequently, lies on the unreversed subpath in the definition of , namely if , or if . Therefore, is a prefix of by the inductive assumption.
Finally, suppose that is a prefix of , and that inserting a dummy line modifies at least one of these paths. The possible cases are that both paths are updated, or that only is updated. In the former case, and are updated to and , respectively, preserving the condition. In the latter case, must precede or equal in . Hence, if , the updated path no longer contains . If , then is a prefix of by the inductive assumption, and consequently of after the update.
Corollary 4.9. If a search path intersects in (Step 3), then and .
Proof. Given that enters through the first vertex of , Lemma 4.5 (MB2) ensures that is the unlabeled vertex of . Similarly, the first vertex of , if it exists, is the unlabeled vertex of . Hence, applying Lemma 4.8 to and shows that all search paths intersecting must contain or as their prefix. Since these paths further contain as their common prefix, the statement follows.
Finally, we present a structural lemma of the paths identified by the algorithm, which will be crucial for establishing the connection between the nonsingularity of and that of .
Definition 4.10. A path is called coherent if implies for every dummy line introduced by the blossom .
Lemma 4.11. Every search path and the path P found by the search procedure are coherent.
Proof. Search paths newly defined by Grow inductively satisfy this condition, and those generated by Blossom also satisfy it by Lemma 4.5 and Remark 4.7. When (Step 3) introduces a dummy line and updates search paths, the condition holds for the new dummy line by the definition of the path updates and remains valid for existing dummy lines by Corollary 4.9. Finally, the path P found by the search procedure is coherent, since its constituent search paths are coherent.
4.5 Validity
4.5.1 Invariance of Nonsingularity
This section is devoted to proving that, for the path detected by the algorithm, is indeed an augmenting path for . To this end, we first characterize the nonsingularity of via the coherence of and the nonsingularity of as follows.
Lemma 4.12. Suppose that a coherent path either includes or is disjoint from each dummy line. Then, the following are equivalent: (i) is nonsingular; (ii) is nonsingular; and (iii) is nonsingular.
Proof. We first demonstrate the equivalence between (i) and (ii). Let be a coherent path such that is nonsingular, and consider adding the remaining dummy lines . Since is coherent, the blossoms that inserted these dummy lines are disjoint from . Among these blossoms, let be one of the outermost blossoms that creates a dummy line . Because is adjacent only to vertices within , its neighbor within is restricted to . Consequently, it follows that , implying that is nonsingular if and only if is nonsingular. Since remains coherent by the choice of the outermost blossom, applying this argument inductively yields the equivalence between (i) and (ii).
We now prove the equivalence between (ii) and (iii). Observe that is nonsingular if and only if forms a base of the extended linear matroid with . Since , this condition is equivalent to the nonsingularity of , where is obtained from by pivoting around . By (BT1), this submatrix coincides with , which completes the proof.
By Lemmas 4.11 and 4.12, we can restrict our attention to proving that the final output path P yields a nonsingular submatrix .
4.5.2 The Search Tree
Given Lemmas 4.11 and 4.12, we only need to show that is nonsingular for the final output path . In the remainder of this section, we establish this nonsingularity by showing that the induced subgraph has a unique perfect matching. We assume the reduction introduced in Section 4.3 unless otherwise specified.
To facilitate the subsequent proofs, we first introduce the notation for subtrees of . Taking as the root of , let denote the subtree containing and all its descendants. When the context is clear, we also use to refer to the vertex set of this subtree.
Following [16], we define an edge as an incoming edge of if , , and . Crucially, the proof of Lemma 4.5 shows that the condition for is invariant under modifications of the search tree. Hence, it is unnecessary to consider the possibility of an existing edge becoming or ceasing to be an incoming edge.
Based on these definitions, we now discuss the properties of upper vertices in the search tree. Specifically, Lemma 4.14 establishes a sufficient condition for an upper vertex to be labeled.
Lemma 4.13. For any upper vertices and , we have . Consequently, we also have for any upper vertex .
Proof. The definition of implies that and for any upper vertex . Since is an ancestor of on , repeated application of this property yields . The latter statement follows from .
Lemma 4.14. An upper vertex is labeled if there exists an incoming edge of such that . In particular, this condition is automatically satisfied whenever Blossom has been applied to at least one incoming edge of .
Proof. We prove the contrapositive: if an upper vertex is unlabeled, any incoming edge of satisfies . By Lemma 4.5 (MB1)-(MB3), we have . Thus, decomposes into a connected component and the remaining connected components, where the union of the latter equals . Hence, (MB3) guarantees that for any is disjoint from . As the same property trivially holds for , it follows that any satisfies , which completes the proof.
Corollary 4.15. Let be any unlabeled vertex on the search tree. For any search path satisfying , the path contains and decomposes as , where holds and is contained within .
Proof. The contrapositive of Lemma 4.14 implies that no incoming edge of is examined by Blossom, and thus no such edge is contained in any search path by Lemma 4.4. Consequently, if enters the subtree , it must do so via the tree edges and . Furthermore, the subsequent path cannot leave ; namely, . The decomposition follows from Lemma 4.8.
4.5.3 Search Order
In what follows, we characterize the fundamental properties of the search order, which are crucial for proving the uniqueness of a matching. We begin by analyzing the level values assigned by the algorithm.
Lemma 4.16. The levels assigned by the algorithm satisfy the following properties.
(i) Every non-tip vertex labeled by AssignLowerLevel(k) has a level of .
(ii) For every upper vertex labeled by AssignUpperLevel, its level satisfies level.
Proof. Since statement (i) is straightforward, we verify statement (ii). Suppose that Blossom(u, v) labels the vertex x, where level(u) = k_{max} and level(v) = 2k + 1 - k_{max}. Assume , as the other case follows by symmetry. Given that decomposes as by Lemma 4.8, we have level( ) + level(x) = level(u) + level(v) = 2k + 1 as required.
Corollary 4.17. During the search level k, levels can be bounded as follows.
(i) Every existing upper vertex satisfies .
(ii) Every non-tip vertex newly labeled during this process has a level of at least .
Proof. Statement (i) follows immediately by examining the steps during the search level that modify , namely, Grow and (Step 3) of Blossom. Statement (ii) is trivial if is labeled by AssignLowerLevel(). If is labeled by AssignUpperLevel(, ), substituting level() from statement (i) for level() + level() = from Lemma 4.16 (ii) completes the proof.
For upper vertices labeled during AssignUpperLevel , we will bound their levels from below by in Lemma 4.20, providing a tighter bound than the value given in the above corollary. To derive this tighter bound, we establish the following lemma regarding the search order by leveraging the above corollary.
Lemma 4.18. The following properties hold for any upper vertex x.
(SO1) Any vertex y with is not adjacent to x or .
(SO2) If x is active, is not adjacent to .
Proof. In what follows, we inductively verify that these properties are maintained by each Grow and Blossom operation. Notably, any non-tip vertex labeled after the assignment of cannot violate (SO1), because always follows from Corollary 4.17. Moreover, although the value of for existing vertices may be modified by replacing with in (Step 3), this update does not violate (SO1) for any two existing vertices and . This is because the relation is preserved, except that newly satisfies this relation, in which case cannot be adjacent to .
Thus, it suffices to track two events to verify the statements: the assignment or update of , and edge addition via pivoting operations. The following claim confines the endpoints of new edges, which simplifies the subsequent discussion. Note that the claim is inapplicable to an internal Blossom call within a Grow operation, because (SO2) is temporarily violated at this point.
Claim 4.19. Assume that (SO1) and (SO2) inductively hold before a Blossom operation. Suppose this operation adds or deletes an edge between existing vertices; that is, this edge does not satisfy condition (i) from Lemma 4.2 and thus satisfies only condition (ii). Without loss of generality, assume that and . Then, is an upper vertex and before the operation. Furthermore, is labeled during this Blossom operation.
Proof. Let be the upper vertex of . As was adjacent to before the pivoting operation by condition (ii), follows from (SO1). On the other hand, since , Remark 4.7 ensures that is an ancestor of on before the pivoting operation. Hence, there exists a child of on with , yielding from Lemma 4.13. Hence, these inequalities imply . It also follows that is a child of on .
Now, we show as follows. Given and , we have by the definition of . Hence, the existence of an edge ensures that these vertices are active. This also shows by (SO2) that is an upper vertex, i.e., .
Finally, since is a child of on and , it follows from (MB1)-(MB3) and Remark 4.7 that was unlabeled before the operation, which then implies that must be labeled during this operation.
We now divide the argument into the following cases. Here, Claim 4.19 is used in the second case to identify the affected vertices; namely, newly inserted buds and tips, and vertices at which is updated.
Case 1. A new original line identified by Grow does not violate (SO1) or (SO2). Furthermore, if a dummy line is introduced by this process, the dummy line and newly added edges do not violate (SO1) or (SO2), either.
Case 2. Suppose a Blossom operation inserts a dummy line and modifies the edges via the pivoting operation. Then, (SO1) holds for , , or any existing vertex with . Similarly, (SO2) holds for or any existing vertex with . Note that the incident edges of these vertices may be added or removed.
In the following proof, we extend the order so that holds for any upper vertex and any unlabeled vertex . Corollary 4.17 guarantees that this extended relation is preserved when is labeled, allowing us to write the negation of as even for unlabeled . Notably, although this extension makes the relation a partial order, the subsequent arguments rely only on its transitivity.
Case 1. First, suppose is an original line identified by , where is an upper vertex. It is straightforward to verify (SO2) for . To prove (SO1) for , it suffices to show that no vertex with is adjacent to or before the operation, as the following argument shows. Since this statement is exactly (SO1) for if a dummy line is not inserted, we assume that a dummy line is inserted. Then, any neighbor of or after the operation, other than the new tip , must have been adjacent to or before the operation. Since is updated from to , (SO1) for similarly follows by splitting into and .
Now, we prove this sufficient condition. Assume for contradiction that a vertex with is adjacent to or . If is not a tip, then must have identified earlier than , which is a contradiction. Here, note that the edges and cannot be added after is labeled but before is identified; otherwise, would hold at the time of addition, implying that must be unlabeled by Claim 4.19, a contradiction. If is a tip, we reduce the situation to the non-tip case. For the Blossom operation that inserts y, Lemma 4.3 shows that the vertex c from (Step 1) must have been adjacent to u or prior to the operation. Given , this reduces to the case where some vertex c with is adjacent to u or . Iterative application of this reduction eventually finds a non-tip vertex, resulting in a contradiction.
We next show that a dummy line inserted during a Grow operation does not violate (SO1) or (SO2). To verify (SO1) for , we can assume because . By Lemma 4.3, any neighbor of except was adjacent to prior to this insertion. As we have shown that follows in this case, verifies (SO1) for . The remaining cases are (SO1) for and (SO2) for , which follow from the fact that is adjacent only to and by (BT2).
Finally, we consider a newly introduced edge between existing vertices. Although we cannot apply Claim 4.19 to this case, we can still confine one of its endpoints to by Lemma 4.2. As exists after the operation, it follows that or must exist before the operation. Consequently, as we have shown that no vertex with is adjacent to or , the other endpoint satisfies . Since an edge does not exist after the operation, we have , from which we obtain . This completes the proof for case 1.
Case 2. We then consider a Blossom operation that inserts a dummy line . We distinguish the map before and after the operation by and .
We first verify the contrapositive of (SO1) for or . If both hold, then and thus (SO1) follows. Otherwise, for and , assume that is adjacent to or . If is adjacent to , then must have been a neighbor of before the pivoting operation by Lemma 4.3. Thus, inductively follows from (SO1), which then yields (SO1) for by . If is adjacent to , then must belong to the blossom by (BT2). Thus, Lemma 4.13 and together imply the desired inequality . Finally, for and , assume that is adjacent to or . As the neighbor of must have been a neighbor of before the pivoting operation by Lemma 4.3, this inductively implies from (SO1) that . Then, since replacing with is the only possible update at the existing vertices, we have , which completes the proof for this part.
We then consider (SO1) for any existing vertex with . This holds trivially unless an edge is introduced. We can also assume , as is already handled and does not satisfy . Suppose such an edge is added. If (i.e., in Claim 4.19), then is labeled during this Blossom operation, leading to by Corollary 4.17. If (i.e., in Claim 4.19), then Lemma 4.2 ensures before the operation. Consequently, this implies by (SO1). Furthermore, since the edge existed before the operation, a new edge cannot be added if , implying . Thus, we obtain , which is exactly the desired inequality .
We next show that (SO2) holds for and any existing vertex such that is modified. For the former, is not connected to by (BT2). For the latter, is replaced with . Assume for contradiction that is adjacent to . Then, must have been adjacent to before the pivoting operation. However, (SO2) inductively shows that cannot be adjacent to , which is a contradiction.
Using the above lemma, we establish the fundamental properties of the levels.
Lemma 4.20. Every upper vertex labeled during AssignUpperLevel has a level of at least .
Proof. Suppose that Blossom labels the vertex , where level and level . Since the case where is straightforward, we assume . Let be the upper vertex in . As is unlabeled prior to the operation, Lemma 4.13 and Corollary 4.15 together imply . Furthermore, Lemma 4.18 ensures that . Hence, we have . Since by Lemma 4.16 (ii), we obtain , as desired.
Corollary 4.21. Suppose Blossom(u, v) labels an upper vertex w during AssignUpperLevel. Then, for any edge (w, z) where z is also labeled, (u, v) precedes (w, z) in the order of AssignUpperLevel.
Proof. The precondition of Blossom ensures that . Since follows from Lemma 4.20 and is labeled after , it follows that . Given these relations, it suffices to prove that ; the precedence is immediate if the inequality is strict, and otherwise follows from . To derive the desired inequality, we can utilize Lemma 4.18 to show , and thus . Since Lemma 4.16 (ii) ensures , combining these inequalities completes the proof.
Lemma 4.16 (i) and Corollary 4.21 together guarantee the monotonicity of the assigned levels with respect to the execution order; that is, they prevent assigning a level so small that it would require a vertex to be examined by AssignLowerLevel or AssignUpperLevel prior to its labeling. Although tips appear to violate such monotonicity, this is inconsequential because every tip is connected to the vertices within the blossom by (BT2), implying that Grow and Blossom operations involving tips would have no influence. Based on these observations, we prove the following lemma, which is fundamental to establishing optimality in the absence of an augmenting path (see Section 4.7).
Lemma 4.22. If Grow has been applied to a vertex , every line with for some vertex has its lower level assigned. Similarly, if Blossom has been performed, we have for every edge that precedes in the order of AssignUpperLevel.
Proof. Since labeling vertices preserves these conditions, we only need to verify that the addition of new edges does not violate them. By Lemma 4.2, the new edges are classified into two cases: (i) , and (ii) , , and prior to the operation. It is straightforward to verify that edges satisfying condition (i) do not violate the desired conditions. Otherwise, for edges satisfying only condition (ii), Claim 4.19 shows that becomes labeled during the current Blossom operation, which consequently preserves the conditions by Corollary 4.21.
4.5.4 Path Decomposition
This section discusses the properties of and . By leveraging as a basic segment and decomposing the search path into these segments, we inductively verify that and have a unique perfect matching.
Before discussing the properties of , we first focus on each vertex that is unlabeled or satisfies , because such vertices may subsequently determine the segment . The following lemma generalizes Lemmas 4.6 and 4.8.
Lemma 4.23. For a search path , let be a vertex that is unlabeled or satisfies . Then, is an upper vertex and lies at an even position in . Furthermore, decomposes as . Moreover, if is active, every upper vertex satisfies .
Proof. We proceed by induction on the Grow and Blossom operations. We have to consider the following three cases: (i) is defined by Grow, (ii) is modified by Blossom, and (iii) is defined by Blossom. Since it is straightforward to verify case (i), we focus on cases (ii) and (iii).
Case (ii). Suppose is replaced with . Since the case when follows directly, we assume that existed prior to the operation. Then, the decomposition is preserved as follows. If , then is updated to and thus decomposes as . Since is also updated to , this preserves the decomposition. If precedes in , then is also updated to , preserving the decomposition. If precedes in , then is a prefix of and thus of the updated path , as required. The remaining conditions can be easily verified.
Case (iii). Since the conditions follow directly when is a new tip, we assume that existed prior to the operation. Suppose , because the other case follows by symmetry.
We first show that is an upper vertex and satisfies , which is strict if is active. If is already labeled prior to the operation, we have , which implies that is an upper vertex by Lemma 4.16 and Corollary 4.17. Furthermore, since is labeled prior to , Lemma 4.16 (ii) ensures , which yields and thus . If also becomes labeled during the blossom operation, the definition of the labeling order and the tie-breaking rule in (Step 4) ensure , which are equal only when is retired. If remains unlabeled after the operation, then we have by Corollary 4.15, which implies by Lemma 4.13.
We then verify that holds. Since , the contrapositive of Lemma 4.13 implies . Since by Corollary 4.15, and thus . Hence, the inductive assumption for ensures that lies at an even position in , and decomposes as .
Lastly, assuming is active, we show that every upper vertex satisfies . The case has already been verified. If , the inequality follows from the inductive assumption for . When , the inductive assumption for yields , which can be combined with to derive the desired inequality. This exhausts all cases.
We now establish fundamental properties of as corollaries. Corollary 4.25 is crucial for decomposing a search path.
Corollary 4.24. The cardinality is odd. Furthermore, holds.
Proof. The statements are nontrivial only when is defined in (Step 4). The former statement is a direct consequence of Lemma 4.23. For the latter statement, since the bud of is unlabeled, in (Step 4) never precedes in , which yields .
Corollary 4.25. For any labeled vertex other than , the search path decomposes as , where holds. Moreover, for any upper vertex .
Proof. The case where is active can be verified by applying Lemma 4.23 to the vertex in the definition of . If is retired, then Lemmas 4.13 and 4.16 ensure that no vertex satisfies unless a tie occurs in the labeling order. Consequently, we obtain regardless of the existence of a tie, and the statements follow from Lemmas 4.8 and 4.13.
Every vertex satisfies , with the possible exception of a single vertex ; in this case, either or is retired. The following lemma extends Lemma 4.18 to .
Lemma 4.26. Let be an upper vertex and be an active labeled vertex with . No vertex in is adjacent to or , with the following exceptions: (i) is adjacent to when , and (ii) is adjacent to when and is marked as retired during a Grow call.
Proof. First, consider with . Given , if at least one of these inequalities is strict, Lemma 4.18 (SO1) ensures that is not adjacent to or . If , since the edge exists by the definition of , we only need to examine the existence of the edge . If is active, this edge does not exist by Lemma 4.18 (SO2). The remaining cases are straightforward; the edge exists (resp. does not exist) if is marked retired by a Grow (resp. Blossom) call.
Next, consider with . In this case, must be retired, as is active. Consider the Blossom operation that marks as retired. If this operation is called within a Grow operation, then is adjacent only to the tip, from which the statement follows. Otherwise, this case never occurs, because such a situation would correspond to a tie mentioned in (Step 4) with and , contradicting the algorithm specification and the assumption .
Lemma 4.27. Every search path can be decomposed as follows:
where and . Also, the vertex is active for each . Moreover, for any and satisfying , there are no edges between and .
Proof. The decomposition can be obtained by recursively applying Corollary 4.25. The fact that is active follows since search paths to retired vertices will not compose a prefix of any other search paths. We now prove that is not adjacent to for . Since any upper vertex satisfies by Corollary 4.25, no vertex of is adjacent to by Lemma 4.26. Also, since and cannot be marked as retired during a Grow operation, no vertex of is adjacent to , either. This exhausts all vertices of .
Lemma 4.28. Suppose Blossom(u, v) labels an existing vertex x. Define and as follows: if (resp. ), then decompose (resp. ) as , and (resp. ) as . Then, and are adjacent if and only if .
Proof. By symmetry, it suffices to consider the case . Since and hold, Lemmas 4.14 and 4.22 verify the case where and . If or fails to satisfy its corresponding inequalities, such a vertex must have been retired before the current Blossom operation. However, since is unlabeled before the operation, this retired vertex cannot form an endpoint of any incoming edge of .
Lemma 4.29. For every labeled vertex , the induced subgraph has a unique perfect matching.
Proof. Since the statement can be easily verified when Grow defines , we focus on the case where Blossom defines . Assume by symmetry, and suppose that can be represented as .
We show that has a unique perfect matching by the following induction. Since holds, and is unlabeled or satisfies , we can decompose and as and , respectively. The base case is , and each inductive step adds to , where is chosen in decreasing order of the total order .
We begin with the base case. Combining the unique perfect matchings of and with the edge yields a perfect matching of . We then prove its uniqueness. Any perfect matching on should contain , since Lemma 4.28 ensures that it is the only edge bridging these odd-sized components and . Therefore, the remaining edges constitute the unique perfect matchings of and , which finishes the proof for the base case.
Next, we focus on the inductive step. Combining the unique perfect matchings of and with the edge yields a perfect matching on for . We then prove its uniqueness. We first show that is not adjacent to . For vertices in that belong to the decomposed segments, it follows from Lemmas 4.27 and 4.28. For each separating vertex , the order of choosing implies , which ensures that is not adjacent to by Lemma 4.26. Therefore, the edge is the only edge bridging and by Lemma 4.26, which must be contained by any perfect matching on because is odd. As the remaining matching edges split into the unique perfect matchings on and , the uniqueness follows.
A similar inductive argument on the path decomposition yields the following corollary.
Corollary 4.30. For every search path , the induced subgraph has a unique perfect matching.
Finally, we show that the concatenated path found by the algorithm is an augmenting path. Note that the following corollary does not assume the reduction in Section 4.3.
Corollary 4.31. Let P be the augmenting path found by the algorithm. The induced subgraph has a unique perfect matching.
Proof. We apply the super singleton reduction to reduce this corollary to Lemma 4.29. Suppose the algorithm reports an augmenting path in the original instance, and let and be the singletons in . In the reduced instance, the algorithm labels and , forming a blossom containing these vertices. Since possesses a unique perfect matching, removing the edge between and its adjacent tip yields a unique perfect matching on , which completes the proof.
Lemma 4.32. For the augmenting path P found by the algorithm, is an augmenting path for the initial base B.
Proof. As the set obviously satisfies conditions (i) and (ii) from Definition 2.1, we only need to show that is nonsingular. Given Corollary 4.31, is nonsingular, which in turn shows that is nonsingular by Lemmas 4.11 and 4.12.
4.6 Minimality
This section is dedicated to proving that the algorithm finds a shortest augmenting path. Unless otherwise stated, the super singleton reduction is also assumed throughout this section.
4.6.1 Formalization
Since an augmenting path is constructed by concatenating search paths, the pursuit of the shortest augmenting path necessitates a formal identification of “shortest search paths.” This is straightforward in graph matching, because search paths are readily characterized as alternating paths, whose concatenation consistently yields a valid augmenting path. In contrast, the situation in linear matroid parity is significantly more complicated due to its dependence on the processing order. Specifically, if the algorithm skips a concatenation step that would yield an augmenting path, subsequent concatenation steps may result in an invalid augmenting path due to accidental numerical cancellation. Such dependence makes the characterization of search paths inseparable from the search order, thereby hindering an a priori definition of shortest search paths.
To address this issue, we instead give a lower bound on the search path length and prove that our algorithm attains this bound. To this end, we leverage Lemma 4.11 and Corollary 4.30, which characterize as an “augmenting path” connecting and , because we can similarly define the shortest one for this structure. This idea is formalized via a coherent nonsingular path, where coherence is given in Definition 4.10 and nonsingularity is defined below.
Definition 4.33. A vertex set is called a nonsingular path between and if consists of , , and lines, and the submatrix is nonsingular.
To simplify the notation, when a nonsingular path connects and some vertex , we omit the mention of and refer to as a nonsingular path to . Note that a nonsingular path has a perfect matching of and thereby decomposes into an alternating path and possibly alternating cycles on the graph . Hence, similar to augmenting paths, nonsingular paths may not necessarily form a path on .
Next, we define the length of a coherent nonsingular path and thereby define a minimum distance to a node.
Definition 4.34. The length of a coherent nonsingular path is defined as the number of original lines intersecting the path . We also define as the minimum length of a coherent nonsingular path to . We define if there are no such paths. The paths that attain the minimum are called the shortest coherent nonsingular paths to .
The following two lemmas are crucial for bounding the length of the search paths.
Lemma 4.35. The value is invariant under the insertion of dummy lines.
Proof. It suffices to show that this value remains unchanged upon the introduction of a dummy line . Let be a shortest coherent nonsingular path to before the insertion. In this case, is a coherent nonsingular path after the insertion, which implies that cannot increase.
Conversely, consider a shortest coherent nonsingular path to after the operation. Suppose does not contain the dummy line . Then, since is disjoint from the corresponding blossom by the coherence, the neighbor of the tip within is restricted to . This yields , showing that is another shortest coherent nonsingular path to . Now, assume without loss of generality. We then have as a coherent nonsingular path before the operation, implying that cannot decrease.
Lemma 4.36. For any labeled vertex , we have .
Proof. Lemma 4.11 and Corollary 4.30 guarantee that is a coherent nonsingular path of length level( ) to .
The remainder of this section is dedicated to proving that the above lower bound is attained by our algorithm. Using Lemmas 4.16 and 4.20, we can consider the time interval in which a certain level is assigned.
(Pre-LV1) If a non-tip lower vertex v becomes labeled, this must occur during the execution of AssignLowerLevel(k), where .
(Pre-LV2) If an upper vertex becomes labeled, this must occur during the -th iteration and before the completion of AssignUpperLevel, where and satisfy and .
Note that the assignment for the lower level of a dummy line is immediate upon its insertion and thus has no counterpart.
Assuming that the minimum levels are attained, these properties naturally define the “deadlines” for level assignments. The following lemma verifies that our algorithm indeed labels within these time intervals.
Lemma 4.37. The levels assigned by the algorithm satisfy the following properties.
(LV1) The lower level of an original line is assigned by AssignLowerLevel(k), where .
(LV2) For an upper vertex , its level is assigned during the -th iteration and before the completion of AssignUpperLevel, where and satisfy and .
(LV3) For any labeled vertex , we have .
If in (LV1) or (LV2), the condition imposes no constraint on the level assignment.
Remark 4.38. A simple parity argument shows that a labeled vertex belongs to the base if and only if level is even; the same applies to dist(). Consequently, since exactly one of and belongs to the base, the sum level() + dist() in (LV2) is necessarily odd whenever it is finite.
We show by induction that (LV1)–(LV3) are invariant under each execution of the subroutines AssignLowerLevel(k) and AssignUpperLevel(k, ). Under the reduction in Section 4.3, we can easily verify that the iterations for k = 0 and k = 1 satisfy these conditions. Hence, we focus on an iteration for and prove that the procedure maintains these properties.
Before presenting the formal proof, we first outline the main idea of the inductive step. Intuitively, for every target vertex that (LV1) or (LV2) requires to be labeled, we show that there exists an associated “triggering” vertex or edge upon which the labeling operation is performed; this trigger is an adjacent labeled vertex for a Grow operation, and an incoming edge for a Blossom operation. We then demonstrate that this trigger is prepared well in advance of the operation.
In particular, for every line for which the lower level must be assigned, we prove that there exists an associated labeled vertex such that finds and is assigned prior to the execution of . Similarly, we show that every upper vertex in (LV2) has an associated incoming edge such that labels , and both and are labeled before the completion of .
The remainder of this section is devoted to the formal proof that AssignLowerLevel(k) and AssignUpperLevel(k, ) for each preserve (LV1)–(LV3). To this end, we classify vertices into three types and formulate the requirements for each type.
Claim 4.39 (Tips). For each dummy line introduced during the k-th iteration, the tip t satisfies (LV3), and the bud b does not violate (LV2) at the moment it is created.
Claim 4.40 (Non-tip lower vertices). The lower vertex of an original line with is labeled before the completion of AssignLowerLevel(k), ensuring (LV1). Moreover, its mate does not violate (LV2) at the time it is designated as an upper vertex.
Claim 4.41 (Upper vertices). If an upper vertex (including a bud) satisfies and , it is labeled before AssignUpperLevel( ) completes, ensuring (LV2).
Regarding the second and third claims, (LV3) follows from Lemmas 4.16 and 4.20. Hence, these claims verify the inductive step of (LV1)–(LV3). Assuming that these claims are established and thus Lemma 4.37 is proved, we can also show that the augmenting path found by the algorithm is the shortest by leveraging the reduction as in the proof of Corollary 4.31.
Lemma 4.42. For the augmenting path P found by the algorithm, is a shortest augmenting path for the initial base B.
Proof. We reduce this lemma to Lemma 4.37 using the super singleton reduction. Let be a shortest augmenting path satisfying the conditions in Definition 2.1. Let and be the singletons in . Using the super singleton reduction, in the reduced instance is a shortest coherent nonsingular path to , which yields . Since Lemma 4.37 ensures that the algorithm assigns in the reduced instance, the original instance detects an augmenting path no later than the corresponding moment. Therefore, the number of original lines in is at most that of , which guarantees that is also the shortest.
The following subsections prove these three claims by induction on and . We first verify the inductive step for AssignLowerLevel() in Section 4.6.2, followed by the verification for AssignUpperLevel(, ) in Section 4.6.3.
4.6.2 Lower Vertices
This section verifies Claims 4.39 and 4.40 for AssignLowerLevel(k) and establishes the inductive step for AssignLowerLevel(k). Throughout this section, we inductively assume that all the subroutines prior to AssignLowerLevel(k) preserve (LV1)–(LV3).
The following lemma splits a coherent nonsingular path into a smaller coherent nonsingular path and an edge. In terms of the intuition described earlier, this lemma guarantees the existence of a triggering vertex for the Grow operation.
Lemma 4.43. A coherent nonsingular path to can be decomposed into an edge and a set , which is either a smaller coherent nonsingular path to or the empty set.
Proof. Such a vertex is obtained via the Laplace expansion of the row or column of in . The coherence of is immediate from the coherence of and the fact that .
Applying this lemma to a shortest coherent nonsingular path yields the following corollary.
Corollary 4.44. For any vertex with , there exists a vertex with such that .
Assuming that (LV1)–(LV3) have been maintained throughout all the preceding iterations, we show that all vertices requiring level k are already labeled and thus are ready to be processed by AssignLowerLevel(k) at the start of the k-th iteration.
Lemma 4.45. During the search level , every vertex with is labeled and satisfies , as long as are preserved for . In particular, the statement inductively holds at the beginning of the search level .
Proof. It suffices to show that the vertex is labeled, since the level value follows from (LV3). If is an original line, its lower level must have been assigned before the completion of AssignLowerLevel by (LV1). If it is a dummy line, its lower level must have been assigned at the time of its insertion. In either case, the lower vertex is already labeled. As this shows the assertion for the case where is the lower vertex, it remains to consider the case where is an upper vertex. While we have by Corollary 4.17 and , their sum is odd by Remark 4.38, and thus cannot exceed . Hence, (LV2) ensures that is labeled by an earlier execution of AssignUpperLevel for a smaller value of , which completes the proof.
Finally, we verify the correctness of AssignLowerLevel(k).
Lemma 4.46. The subroutine AssignLowerLevel(k) preserves (LV1)–(LV3).
Proof. We first verify Claim 4.40 for the non-tip lower vertices that must be labeled during this process. Let be any original line satisfying and . Applying Corollary 4.44 at the beginning of yields a vertex such that and . Thus, Lemma 4.45 ensures that is labeled and its level is at most . Since the removal of the edge occurs only after has been found, it follows that the line is found no later than and thus before the completion of . Also, the upper vertex does not violate (LV2) at the time it is examined by , since both and are at least .
Next, we verify Claim 4.39 for the dummy lines created during this process. Suppose during finds an original line and creates a blossom during this operation. We first prove (LV2) for the bud . If , we have and thus does not violate (LV2). Assume for contradiction. Let be a shortest coherent nonsingular path to . Following the proof of Lemma 4.43, we apply the Laplace expansion to twice, first at and then at . Since is only adjacent to , this yields the edges for some vertex and a nonsingular path to , which is coherent and has a length of less than . Since cannot be a tip created during , Lemma 4.45 shows that . However, the existence of an edge implies by Lemma 4.18, which contradicts and .
Now, it remains to show that the tip satisfies (LV3). Given , we need to prove . Assume for contradiction. Let be a shortest coherent nonsingular path to . The Laplace expansion decomposes into an edge and a nonsingular path to . Furthermore, cannot contain ; otherwise, since is only adjacent to , the corresponding row/column within would be zero, contradicting its nonsingularity. Hence, is coherent and thus . Since cannot be a tip created during , Lemma 4.45 ensures . However, the existence of an edge implies by Lemma 4.18, which contradicts and .
4.6.3 Upper Vertices
This section proves that AssignUpperLevel(k, ) satisfies Claims 4.39 and 4.41 under the inductive assumption that all preceding subroutines preserve (LV1)–(LV3). Roughly speaking, the following lemma utilizes a variant of the technique in Section 3.4 to decompose a coherent nonsingular path to v into an edge entering and two smaller coherent nonsingular paths Y and Z, where
and are disjoint subsets of (see Figure 7(a)). This lemma is especially crucial when is a lower vertex, constituting the key step to guarantee the existence of an incoming edge on which the Blossom operation labels (see Remark 4.49). The other case where is an upper vertex is used for verifying Claim 4.39.
Lemma 4.47. Let be a coherent nonsingular path from to . Suppose the upper vertex of , denoted by , is unlabeled. Then, there exist an edge satisfying and , and vertex sets and such that (i) ; (ii) and are disjoint and are both contained in ; (iii) is a coherent nonsingular path from to ; and (iv) is a coherent nonsingular path from to , or and .
Proof. Since is unlabeled, every blossom is either disjoint from or contained within . Let be the union of dummy lines within the subtree. We now prove that has a unique perfect matching as follows. Since the dummy lines in individually serve as edges of a perfect matching, we only need to verify its uniqueness. Choose a minimal blossom among the blossoms that introduce the dummy lines in , and let be the dummy line introduced by . Since is only adjacent to vertices within , it must be matched with in any perfect matching. Hence, an inductive argument from smaller to larger blossoms along the laminar structure establishes the uniqueness of a perfect matching. Since we have shown that admits a unique perfect matching, it immediately follows that is nonsingular.
As in the former part of the proof of Lemma 4.12, an induction from larger to smaller blossoms proves that is a coherent nonsingular path. Hence, we assume without loss of generality. We now consider pivoting around on to obtain . We similarly represent the resulting objects by adding a hat, such as and . Then, the nonsingularity of leads to that of for . Note that and . Furthermore, the endpoint of other than , denoted by , remains if and changes to if .
In what follows, we apply a variant of the decomposition technique in Section 3.4 to the non-singular matrix . As its determinant is nonzero, we have
where denotes the order of . Let denote the corresponding term in Eq. (12). For each with , the corresponding edge set constitutes a perfect matching on . Likewise, the set of lines contained within forms a perfect matching on . Consequently, the graph , which may contain parallel edges, consists of an alternating path between and and a collection of alternating cycles (possibly of length two).
Recall that the collection of all partitions of , denoted by , forms a lattice under the refinement order . Let be a map such that is the collection of all the connected components of . We then merge the components that contain any element of into a single component. In the lattice formulation, this is equivalent to taking the join with the partition defined as
i.e., the partition containing as a component and the remaining elements as singletons.
Then, as a refinement of , we define by isolating the subpath from to from the rest of its component, where is the first vertex outside encountered when traversing the path from on (see Figure 7(b)). Note that the other subpath between and is nonempty because .
Grouping the terms by , we obtain
Since this is nonzero, there exists a partition such that . Here, we choose to be minimal with respect to the refinement order ; that is, for every . Summing up these terms for all the refinements of yields
We now prove Claim 4.48, which ensures that Eq. (15) equals the determinant of a block-diagonal matrix with each block being the square submatrix for . This confirms the nonsingularity of each block, thereby decomposing into smaller nonsingular components. Specifically, since there exists with , the partition consists of an alternating path from to , the union of an alternating path from to and the alternating cycles containing dummy lines, and the remaining alternating cycles without dummy lines. Here, satisfies by the choice of , which further implies that . These nonsingular blocks and are subsequently used to construct the desired nonsingular paths and .
Claim 4.48. A permutation is included in the above summation, i.e, , if and only if no edge of bridges two different components of .
Proof. First, suppose that an edge of bridges two different components of . Then, some component of contains this edge by definition, and hence it cannot be a refinement of . Next, suppose that no edge of bridges two different components of . Using , we can easily verify that . Given , we have . Taking the meet with on both sides yields , where the right side is obviously . Hence, it suffices to show that . Since no edge of bridges and another component, is the only edge in that bridges and another component. Hence, when traversing the unique path of from , the first vertex outside is and all preceding vertices are contained in . Since no other edges of cross , we obtain , which finishes the proof of the claim.
Having shown the nonsingularity of and , we now translate these properties to those within by pivoting around again. Consequently, and are nonsingular paths with respect to , where the endpoints of the former are now and while those of the latter remain and .
We now define and show that this is coherent. Observe that and are included in and thus are disjoint from . Since does not contain either of , we have . Given , it also follows that . Consequently, is the desired coherent nonsingular path between and .
To obtain Z, we apply the Laplace expansion to the row/column of y within . As the case can be handled by setting , assume . Then, the expansion yields an edge

(a) Example of Y, Z, and .

(b) Illustration of and .
Figure 7: Illustration of Lemma 4.47 and its proof. Double bonds represent lines, while single bonds in (b) represent . (a) Black and white vertices represent those in and , with vertices outside grayed out. (b) Black and white vertices represent those in and , with vertices outside grayed out.
satisfying and , and a nonsingular path between and . Since , we have . Moreover, since we can prove , the path is coherent. This completes the proof of the lemma.
Remark 4.49. Suppose Lemma 4.47 is applied to a lower vertex . If , the edge is an incoming edge of . This is because cannot contain and thus , which also rules out the possibility that .
Since Lemma 4.47 for a lower vertex provides an edge , which is an incoming edge of under the assumption that , it remains to evaluate the levels of these endpoints via and . These level values are also crucial to ensure .
However, the above lemma only provides a coherent nonsingular path between and , whereas we need one between and to evaluate . The following lemma addresses this gap by concatenating the coherent nonsingular path with a search path.
Lemma 4.50. For any unlabeled upper vertex and a coherent nonsingular path from to with , the set is a coherent nonsingular path from to .
Proof. Since the coherence is straightforward, we focus on the nonsingularity of . Lemma 4.27 decomposes as , where and are all active. Setting , we also have for each . Let and define for . We proceed by induction on in decreasing order to show that is a nonsingular path. It suffices to demonstrate that any perfect matching of necessarily includes the unique perfect matching of and the edge . Such a structure implies and thereby establishes the nonsingularity of by induction.
For , the relation and Lemma 4.26 imply that is not adjacent to . Similarly, is not adjacent to by the property of decomposition. The condition and Lemma 4.26 also ensure that no vertex of is adjacent to . Finally, no vertex of is adjacent to because every upper vertex of satisfies by Lemma 4.13, and Lemma 4.26 prevents adjacency between and . Consequently, no vertex of is adjacent to . Hence, any perfect matching of must contain an edge between and , which is necessarily by Lemma 4.26. Since no edge bridges and , the remaining edges constitute the unique perfect matching of and a perfect matching of , as required.
We also provide a technical lemma that is useful for characterizing nonsingular paths consisting solely of dummy lines.
Lemma 4.51. Suppose a vertex set and its two elements satisfy the following conditions: (1) is a tip, (2) is a union of dummy lines, and (3) has a perfect matching. Then, is a bud and .
Proof. Since the statements are trivial if forms a line, assume otherwise in the following. Then, combining a perfect matching of with dummy lines within yields an alternating path between and .
Letting be the sequence of vertices in , where and , we now inductively prove that is a tip and is a bud. Suppose is a tip. Since each tip is adjacent only to vertices within its blossom by (BT2), the laminar structure of blossoms shows that no edge connects two tips. Hence, as is adjacent to , it follows that is a bud. As forms a line, this in turn shows that is a tip. This inductive argument shows that is a bud. Since each tip is adjacent only to vertices within the blossom, a similar induction verifies and , implying .
The following lemma is crucial for establishing the existence of an incoming edge whose endpoints are labeled.
Lemma 4.52. Let be any unlabeled upper vertex such that is finite. Suppose is complete for with , and are currently preserved. Then, there exists an incoming edge of with such that and satisfy the following inequalities: (i) , (ii) , and (iii) .
Proof. Define Y, Z, and by applying Lemma 4.47 to a shortest coherent nonsingular path P to . We also define , which is a coherent nonsingular path to by Lemma 4.50; even if and hold, this is a coherent nonsingular path to by Lemma 4.11 and Corollary 4.30. As Y and are coherent nonsingular paths to and , we only need to evaluate the lengths of these paths. In this proof, let length(P) denote the length of a coherent nonsingular path P.
We first verify inequality (i). As holds, we have length( ) length( ). Given that and hold, it suffices to show that the inequality length( ) length( ) is strict. If is an original line, it intersects but not , making the inequality strict. Now, suppose that it is a dummy line. Since must be a tip, cannot be adjacent to , leading to and . Assume for contradiction that consists exclusively of dummy lines. Applying Lemma 4.51 to shows that the other endpoint is a bud. Hence, is a tip, which contradicts the fact that tips within cannot be adjacent to . Therefore, intersects at least one original line, which shows length( ) < length( ).
Inequality (iii) can be verified as follows:
Hence, it remains to verify inequality (ii). Given that inequality (iii) holds, it suffices to verify that holds. Assume for contradiction. Since is at most the current search level, the assumptions allow for applying Lemma 4.45 to , showing that is assigned and satisfies . On the other hand, the upper vertex of satisfies by Lemma 4.13. Moreover, the existence of an edge and the contrapositive of Lemma 4.18 together imply . Consequently, we obtain , which contradicts .
Finally, we prove , which implies that is an incoming edge of by Remark 4.49. By inequality (iii), or is at most . If , then Lemma 4.45 shows that is assigned, implying . If , then Lemma 4.45 shows that is assigned. As this level is at most , during or earlier must have detected , which implies .
Remark 4.53. The assumption of (LV2) at v can be dropped in Lemma 4.52, because (LV1)–(LV3) are required solely to apply Lemma 4.45 to y and z, both of which are distinct from v. Removing this assumption avoids a circular argument when establishing (LV2) in the proof of Lemma 4.54.
Finally, we establish the correctness of the subroutine AssignUpperLevel(k, ) by the following two lemmas. We first verify Claim 4.39 for this subroutine in Lemma 4.54, ensuring that (LV1)–(LV3) are maintained as long as the subroutine remains incomplete. Next, we demonstrate Claim 4.41 for the subroutine in Lemma 4.55, guaranteeing that (LV1)–(LV3) are also preserved when the subroutine terminates.
Lemma 4.54. For each dummy line introduced during AssignUpperLevel(k, ), the tip t satisfies (LV3) and the bud b does not violate (LV2) at the moment it is created.
Proof. We proceed by induction to show that each insertion of dummy lines preserves (LV1)–(LV3), as long as the subroutine remains incomplete. Let and be the vertices such that Blossom introduces and . We denote the resulting blossom by , and define and as in the description of the algorithm. Since , we have .
We first focus on (LV3). Assume for contradiction. Let be a shortest coherent nonsingular path to . Applying Lemma 4.47 to provides a coherent nonsingular path to and an edge satisfying and . Since the length of is at most , we have by Lemma 4.45. On the other hand, since , we obtain by Lemma 4.13, where denotes the upper vertex of . Furthermore, the existence of an edge implies by Lemma 4.18, which can be combined with the previous inequality to obtain , a contradiction.
To prove (LV2) for the bud , it suffices to prove ; the statement is straightforward if this inequality is strict, and otherwise it follows from . Thus, assume for contradiction that , as the left side is always odd from Remark 4.38. Then, Lemma 4.52 and Remark 4.53 ensure the existence of an incoming edge of satisfying . Consequently, (LV1)–(LV3) inductively prove that and are both labeled and satisfy . However, since precedes in the order of AssignUpperLevel, Lemmas 4.14 and 4.22 ensure that b must be already labeled, which is a contradiction.
Lemma 4.55. The subroutine AssignUpperLevel(k, ) preserves (LV1)–(LV3).
Proof. Let be any upper vertex satisfying the conditions in (LV2). If is labeled prior to the start of AssignUpperLevel, (LV2) follows immediately. Thus, we assume that is either unlabeled at the beginning of AssignUpperLevel or introduced as a bud during its execution. Then, we obtain an incoming edge of satisfying inequalities (i)–(iii) by applying Lemma 4.52 at the corresponding moment—either at the start of AssignUpperLevel if already exists, or immediately after is inserted during the subroutine. If and are labeled at this point, it follows from these inequalities and (LV3) that Blossom must be invoked before the completion of AssignUpperLevel, which then ensures that is labeled by Lemmas 4.14 and 4.22. Note that, once and are labeled, Claim 4.19 rules out the possibility that is deleted by subsequent pivoting operations. To prove that and are labeled, we divide the argument into two cases: (a) and (b) ; these are exhaustive since the values are integers and their sum is at most .
Case (a). Given that , Lemma 4.45 guarantees that is labeled. The case where is the lower vertex is trivial, so we focus on the case where is the upper vertex. Setting , we have by inequality (i). Similarly, setting , we obtain the following:
and Lemma 4.18)
Therefore, (LV2) inductively implies that is labeled before AssignUpperLevel() completes. As this precedes AssignUpperLevel(), the statement follows.
Case (b). Given that , Lemma 4.45 guarantees that is labeled. The case where is a lower vertex is trivial, and the case where follows by a symmetric argument. Hence, we now assume that is an upper vertex and . In this case, we have the following:
(Lemma 4.13)
(Lemma 4.18)
(Lemma 4.52 (iii))
which yields . Since Corollary 4.15 ensures that decomposes as , the previous equation implies that the set , which may be empty, consists solely of dummy lines. If is nonempty, has a perfect matching by Lemma 4.6. As is a tip, Lemma 4.51 ensures that and that is a tip, which further imply . This property also holds in the case where , from which follows immediately. Because is unlabeled and , it follows from (MB1) that is labeled unless ; however, this is impossible since and .
4.7 Optimality
This section is devoted to proving that the current independent parity set is maximum if the algorithm does not detect any augmenting paths. We relate the maximum cardinality and the current cardinality via the alternating matrix of size defined as follows:
We first express the rank of using . Property (BT1) in Lemma 4.1 ensures that the following transformation via row operations is possible:
\begin{array}{c c c c c}{{{J^{\prime}}}}&{{{V\setminus J}}}&{{{T\setminus B^{*}}}} \\{{{T\cap B^{*}}}} \\{{{S\left[\begin{array}{c}O}}} \\{{{I}}}\end{array}\right]}&{{{C^{*}}}} \\{{{J}}}\end{array}\quad\xrightarrow{\mathrm{R o w~o p e r a t i o n s}}\quad\begin{array}{c c c c}{{{J^{\prime}}}}&{{{V\setminus J}}}&{{{T\setminus B^{*}}}} \\{{{T\cap B^{*}}}} \\{{{S\left[\begin{array}{c}O}}} \\{{{I}}}\end{array}\right]\left[\begin{array}{c}X}} \\{{{C}}}\end{array}\right]\left[\begin{array}{c}I}\\ O\end{array}\right].}\\ J\end{array} \tag{17}Here, X denotes the resulting nonzero part. Therefore, we can transform into the following matrix via row and column operations:
Note that appears at the center as a submatrix. Since holds by Proposition 3.2, we have
We then evaluate rank using the current size . To this end, we first analyze the structure of the graph when the algorithm terminates without finding any augmenting paths. Let be the set of unlabeled vertices that have unlabeled mates. Let be the union of lines whose lower level is assigned. We define a partition of based on , i.e., . Let denote the unique unlabeled vertex in . By excluding from the graph , the blossoms and unreached part become disjoint. More formally, the following lemma holds.
Lemma 4.56. Define a partition of by . By eliminating and their incident edges from the graph , no remaining edge connects two different components of .
Proof. Assume for contradiction that such an edge exists. Since bridges different components, its endpoints are both active. If bridges and a component of , the endpoint that does not belong to must be labeled. However, given the negation of Line 7 in Algorithm 2, this labeled endpoint cannot be connected to any vertex of by Lemma 4.22, a contradiction. Similarly, cannot bridge two distinct components of .
We then examine the support graph of . Crucially, contains as its subgraph (see Figure 1). We define as the following map: given a set , it attaches the copies of to . More formally, we define by , where is a natural bijection. Then, the following lemma holds.
Lemma 4.57. Define a partition of by . By eliminating and their incident edges from the graph , no remaining edge connects two different components of .
Proof. The graph is constructed from by adding the following:
• the copies of J,
• the edges given by that connect the two vertices of each line in , and
• the edges given by unit matrices between each element in J and its copy in .
Then, the lemma follows from Lemma 4.56 and the fact that these new edges do not bridge different components of .
Finally, we evaluate rank as follows. While the following discussion derives the bound in Eq. (24) by a linear-algebraic argument, it also admits a graph-theoretic proof as described in Remark 4.58.
Since removing one row or column reduces the rank by at most one, we have
After removing , Lemma 4.57 ensures that the resulting matrix has a block-diagonal structure. The partition of can be explicitly given by
Using the partition K, we have
Since an alternating matrix of odd size is singular, we have for odd-sized . Applying this bound to the summation yields
where odd(K) denotes the number of odd components in K. Combining Eqs. (20) and (23) gives
The description of given in Eq. (21) implies that each component of is odd-sized except for , which leads to . Substituting this equality, along with and , into Eq. (24) yields
Finally, combining Eqs. (19) and (25) leads to
which shows . This completes the optimality proof.
Remark 4.58. We can rephrase the derivation of Eq. (24) in a graph-theoretic manner as follows. The rank of an alternating matrix is bounded above by twice the maximum size of a matching on its support graph [26, Remark 7.3.13]. Thus, rank is at most twice the maximum size of a matching on . This can also be bounded as in Eq. (24) by using the easier direction of the Tutte–Berge formula and the partition given in Lemma 4.57. Notably, this alternative proof indicates that the graph structure , without the numeric information , suffices to certify optimality.
4.8 Implementation Details
In this section, we provide several implementation details that are crucial for achieving the desired time bounds. The objective of this section is to demonstrate that a single search for a shortest augmenting path completes in time.
Lemma 4.59. Let be a base consisting of an independent parity set and a set of singletons. Given the fundamental cocircuit matrix with respect to , a shortest augmenting path can be identified in time, or its non-existence can be determined within the same time bound.
To this end, we begin by establishing two fundamental bounds. We first evaluate the number of nodes . Since blossoms form a laminar family and every non-minimal blossom merges two original lines from different blossoms, the number of blossoms is , which leads to . Therefore, the variables related to the vertices, such as and VL, can be managed in space.
We next analyze the nested loops of AssignUpperLevel. Given that and are not added to VL in each insertion of a dummy line, VL has at most elements from and at most elements from . Consequently, the algorithm examines at most pairs of vertices in the nested loop.
Blossoms. To maintain blossoms, we utilize Tarjan's algorithm [34] combined with a trick for optimizing the time complexity. Given that Find operations are performed over vertices, a naive application results in a time bound of , where denotes the inverse Ackermann function.
While Gabow and Stallmann [10] suggested using the incremental tree set union algorithm [11] to remove this factor, their description lacks details and appears to struggle with blossoms sharing the same root. Furthermore, the RAM model is necessitated.
Alternatively, we present a simple trick that restricts the number of vertices to , thereby reducing the factor to , which is constant. By excluding singletons and relabeling as upon the introduction of a dummy line, the problem becomes a disjoint set union (DSU) over the original lines . We partition into and . To implement the DSU over , we construct an internal DSU on via Tarjan's algorithm and maintain a pointer . Note that this internal DSU handles elements. Let and denote the internal operations on . Given that Union always merges a line from and another from , we can define the operation for and as follows.
• If is defined, perform .
• Otherwise, set .
Correspondingly, for is supported as follows.
• If , perform .
• If and is defined, execute .
• Otherwise, return .
Consequently, this DSU over L ensures that the Find operations take only linear time in total.
Blossoms in their framework correspond to ours without dummy lines; hence, children of a vertex can be arbitrarily grouped into blossoms.
The overall bound can also be seen from the fact that the total cost of path compression is .
Search Paths. We next describe the management of search paths. While path recovery is associated with both backtracking during Blossom operations and identifying augmenting paths, the former does not strictly require explicit recovery.
Alternatively, we employ the DSU for blossoms. By maintaining a map from the results of Find operations to the unique unlabeled vertices of the components, we can assume that each Find operation retrieves such a unique unlabeled vertex. Consequently, the unlabeled vertices on and can be efficiently collected by iteratively applying Find and . This procedure effectively performs backtracking on a tree where each maximal blossom is contracted into a node. Given that each blossom is merged immediately after being traced, the total cost of this backtracking process can be bounded by the number of blossoms, .
Hence, we only need to recover a search path when an augmenting path is detected. The following recovery process is based on [10, 16]. For each vertex x labeled by (Step 4), the algorithm associates the blossom-forming edge and records whether x belongs to or .
The recovery process takes and an optional to construct , where if is null. If is specified, it must have been unlabeled at the moment was labeled. The procedure is defined recursively as follows.
• As the base case, directly compute the path segment if is a singleton.
-
If is associated with a blossom-forming edge , where , recursively construct and , which are then concatenated to form .
-
Otherwise, define as follows: if , set to an empty path; if , recursively construct and set to this path. Finally, return .
The validity of this process is straightforward for newly defined search paths and is preserved under the insertion of dummy lines by Corollary 4.9. The procedure runs in time linear in the path length and thereby completes in time.
Alternatively, we can efficiently recover a search path excluding its tips and retired vertices in time by simulating the behavior of the Gabow–Stallmann algorithm. Essentially, this is equivalent to constructing another search tree, where dummy lines are not inserted, g is replaced with b, and search paths are similarly maintained.
Pivoting. Next, we address the pivoting operations utilized during the search procedure. A naive implementation increases the height of from to , which inevitably leads to a total time complexity of . Preventing the growth of is therefore crucial to achieving the desired bound of . Our method first saves a copy of and then prunes upon pivoting by eliminating rows and columns associated with tips and retired vertices. Since these vertices are neither involved in the search nor designated as or in subsequent pivoting operations, their removal allows us to maintain as an matrix throughout the search procedure.
Furthermore, each pivoting operation can be optimized so that the total time complexity is bounded by . The analysis depends on whether the bud b belongs to the base; we categorize blossoms as basic if their bud is part of the base, and nonbasic otherwise. The following lemmas are essential for obtaining the overall complexity.
Lemma 4.60. The number of basic (resp. nonbasic) blossoms that insert a dummy line is (resp. ).
Proof. As the total number of blossoms is , it suffices to show the bound of on the number of basic blossoms that insert a dummy line. Since each basic blossom created by a Blossom operation within Grow contains a single original line from B, the number of such blossoms is . The number of remaining basic blossoms is likewise , because each merges two distinct original lines from B when creating a dummy line.
Lemma 4.61. At the start of (Step 2), there are at most two vertices in H that are adjacent to c.
Proof. As the claim holds trivially if the Blossom operation is called within a Grow operation, we assume otherwise. By Lemma 4.5 and Remark 4.7, is contained within at most two child subtrees of , each containing or . For every such subtree , where is a child of , Lemmas 4.13 and 4.18 together ensure that is the unique vertex in that is adjacent to . Consequently, has at most two neighbors within these subtrees, and thus in .
Lemma 4.62. A pivoting operation forming a basic (resp. nonbasic) blossom can be implemented in (resp. ) time, provided that the tip and the retired vertex are removed from immediately after every operation.
Proof. Since there are at most two vertices in that are adjacent to by Lemma 4.61, the pivoting operation only involves three rows (resp. columns) when forming a basic (resp. nonbasic) blossom. Hence, the time bound of follows directly for a basic blossom. To attain the time bound for nonbasic blossoms, it suffices to avoid explicitly appending a new row to , which corresponds to the tip after the operation. Given that this row is only used for the pivoting operation and is subsequently deleted, we can omit explicitly inserting this row, reducing the time complexity from to .
Given the bounds in Lemmas 4.60 and 4.62, we obtain the claimed bound of for all pivoting operations during the search.
5 Overall Complexity
Since the search procedure completes in time, the total time complexity of each augmentation step is dominated by the pivoting operation along an augmenting path. For a shortest augmenting path of length , the time complexity is or , depending on the application of fast matrix multiplication. Given the bound on from Corollary 3.6, we can evaluate the total time complexity as follows.
Theorem 1.1. Under the uniform cost model for K, the unweighted linear matroid parity problem can be solved deterministically in time. This complexity is reduced to if fast matrix multiplication is employed.
Proof. Recall that Corollary 3.6 ensures , where is the current independent parity set and denotes the maximum size of an independent parity set.
We first consider the analysis without fast matrix multiplication. By summing the upper bound of across , the total length of the shortest augmenting paths can be bounded by via the harmonic series. Hence, the total complexity of the algorithm can be evaluated as , or more simply, .
We then consider the application of fast matrix multiplication. Setting , we can bound the total running time by , which can be evaluated as via the following integration:
Hence, we obtain the bound of , and hence of .
The proof of Theorem 1.1 implies the following refined bounds.
Remark 1.2. In terms of the maximum cardinality of an independent parity set, the complexity bounds in Theorem 1.1 can be refined to and , respectively.
The former bound in Theorem 1.1 generalizes Cunningham’s time bound for the linear matroid intersection algorithm [5]. Although Cunningham’s analysis did not account for fast matrix multiplication, a counterpart to the latter bound can also be derived for this intersection algorithm, which shaves off the log factor. Note that any exponent , including the original value by Strassen [32], yields the same time bounds up to a constant factor.
6 Conclusion
In this paper, we have provided a shortest augmenting path algorithm for linear matroid parity. This work improves upon the fastest known deterministic algorithm of Gabow and Stallmann [10] by extending the efficacy of the shortest augmenting path framework for linear matroid intersection and graph matching.
In Section 3, we have derived a bound on the lengths of shortest augmenting paths for linear matroid parity, which generalizes Cunningham's bound on the lengths of shortest augmenting paths for linear matroid intersection. As a corollary, we have verified in Section 3.5 that the local search algorithm, studied by Lee, Sviridenko, and Vondrák [19] for general matroid parity, requires a much smaller neighborhood to guarantee a PTAS when applied to linear matroid parity.
In Sections 4 and 5, we have developed a shortest augmenting path algorithm for linear matroid parity, established its correctness, and analyzed its time complexity. Consequently, we have demonstrated that the problem can be deterministically solved in or time, depending on the use of fast matrix multiplication. These time bounds improve on the previous best deterministic bounds of [10, 27] and [10], and narrow the gap with the best randomized bounds of and [4].
A natural research direction is to examine whether the shortest augmenting path framework generalizes to the linear delta-matroid parity algorithm [14]. Since our verification process builds upon their proof techniques, such an extension appears highly plausible. However, removing singletons and generalizing the analysis of the shortest augmenting path lengths may present unforeseen challenges.
Given that the time complexity of our algorithm aligns with that of Cunningham [5] for linear matroid intersection, it would be intriguing to explore computational improvements or weighted extensions by leveraging existing techniques for linear matroid intersection. Specifically, Gabow and Xu [12] developed more efficient linear matroid intersection algorithms for unweighted and integer-weighted cases by extending Cunningham's observations and utilizing the weight-splitting theorem by Frank [7]. Generalizing this approach to linear matroid parity using our framework and the primal-dual relation for the weighted problem [15] is a compelling future direction.
Acknowledgements
The authors thank Takuro Fukunaga, Jim Geelen, and Vijay Vazirani for their suggestions and encouragements. This work was supported by JSPS KAKENHI Grant Number JP26KJ0928 and JST ASPIRE Grant Number JPMJAP2302.
References
[1] J. Alman, R. Duan, V. V. Williams, Y. Xu, Z. Xu, and R. Zhou. More asymmetry yields faster matrix multiplication. In Proceedings of the 2025 Annual ACM-SIAM Symposium on Discrete Algorithms, pages 2005–2039, 2025.
[2] P. M. Camerini, G. Galbiati, and F. Maffioli. Random pseudo-polynomial algorithms for exact matroid problems. Journal of Algorithms, 13(2):258–273, 1992.
[3] H. Y. Cheung, T. C. Kwok, and L. C. Lau. Fast matrix rank algorithms and applications. Journal of the ACM, 60(5):31:1–31:25, 2013.
[4] H. Y. Cheung, L. C. Lau, and K. M. Leung. Algebraic algorithms for linear matroid parity problems. ACM Transactions on Algorithms, 10(3):1–26, 2014.
[5] W. H. Cunningham. Improved bounds for matroid partition and intersection algorithms. SIAM Journal on Computing, 15(4):948–957, 1986.
[6] J. Edmonds. Maximum matching and a polyhedron with 0, 1-vertices. Journal of Research of the National Bureau of Standards, 69B:125–130, 1965.
[7] A. Frank. A weighted matroid intersection algorithm. Journal of Algorithms, 2(4):328–336, 1981.
[8] T. Fujito. A 2/3-approximation of the matroid matching problem. In Proceedings of the 4th International Symposium on Algorithms and Computation, volume 762 of LNCS, pages 185–190. Springer-Verlag, 1993.
[9] M. L. Furst, J. L. Gross, and L. A. McGeoch. Finding a maximum-genus graph imbedding. Journal of the ACM, 35(3):523–534, 1988.
[10] H. N. Gabow and M. Stallmann. An augmenting path algorithm for linear matroid parity. Combinatorica, 6(2):123–150, 1986.
[11] H. N. Gabow and R. E. Tarjan. A linear-time algorithm for a special case of disjoint set union. Journal of Computer and System Sciences, 30(2):209–221, 1985.
[12] H. N. Gabow and Y. Xu. Efficient theoretic and practical algorithms for linear matroid intersection problems. Journal of Computer and System Sciences, 53(1):129–147, 1996.
[13] J. F. Geelen and S. Iwata. Matroid matching via mixed skew-symmetric matrices. Combinatorica, 25(2):187–215, 2005.
[14] J. F. Geelen, S. Iwata, and K. Murota. The linear delta-matroid parity problem. Journal of Combinatorial Theory, Series B, 88(2):377–398, 2003.
[15] S. Iwata and Y. Kobayashi. A weighted linear matroid parity algorithm. SIAM Journal on Computing, 51(2):STOC17, 238–280, 2022.
[16] T. Izumi, N. Kitamura, and Y. Yamaguchi. Forgetting alternation and blossoms: A new framework for fast matching augmentation and its applications to sequential/distributed/streaming computation. arXiv preprint arXiv:2511.08210, 2025.
[17] P. M. Jensen and B. Korte. Complexity of matroid property algorithms. SIAM Journal on Computing, 11(1):184–190, 1982.
[18] E. L. Lawler. Combinatorial Optimization: Networks and Matroids. Holt, Rinehart and Winston, 1976.
[19] J. Lee, M. Sviridenko, and J. Vondrák. Matroid matching: The power of local search. SIAM Journal on Computing, 42(1):357–379, 2013.
[20] L. Lovász. On determinants, matchings and random algorithms. In Fundamentals of Computation Theory, volume 79, pages 565–574, 1979.
[21] L. Lovász. Matroid matching and some applications. Journal of Combinatorial Theory, Series B, 28(2):208–236, 1980.
[22] L. Lovász. Selecting independent lines from a family of lines in a space. Acta Scientiarum Mathematicarum, 42(1-2):121–131, 1980.
[23] L. Lovász. The matroid matching problem. In Algebraic Methods in Graph Theory, Vol. II, Colloquia Mathematica Societatis János Bolyai 25, pages 495–517. North-Holland, 1981.
[24] S. Micali and V. V. Vazirani. An algorithm for finding maximum matching in general graphs. In Proceedings of the 21st Annual Symposium on Foundations of Computer Science, pages 17–27, 1980.
[25] M. M. Milić. General passive networks-solvability, degeneracies, and order of complexity. IEEE Transactions on Circuits and Systems, 21(2):177–183, 1974.
[26] K. Murota. Matrices and Matroids for Systems Analysis. Springer-Verlag, 2010.
[27] J. B. Orlin. A fast, simpler algorithm for the matroid parity problem. In Proceedings of the 13th International Conference on Integer Programming and Combinatorial Optimization, volume 5035 of LNCS, pages 240–258. Springer-Verlag, 2008.
[28] J. B. Orlin and J. H. Vande Vate. Solving the linear matroid parity problem as a sequence of matroid intersection problems. Mathematical Programming, 47(1):81–106, 1990.
[29] G. Pap. Weighted linear matroid matching. In Proceedings of the 8th Japanese-Hungarian Symposium on Discrete Mathematics and Its Applications, pages 411–413, 2013.
[30] A. Recski. Hybrid description and the spectrum of linear multiports. IEEE Transactions on Circuits and Systems II: Express Briefs, 66(9):1502–1506, 2019.
[31] A. Schrijver. Combinatorial Optimization: Polyhedra and Efficiency. Springer-Verlag, 2003.
[32] V. Strassen. Gaussian elimination is not optimal. Numerische Mathematik, 13(4):354–356, 1969.
[33] S. Tanigawa and Y. Yamaguchi. Packing non-zero A-paths via matroid matching. Discrete Applied Mathematics, 214:169–178, 2016.
[34] R. E. Tarjan. Efficiency of a good but not linear set union algorithm. Journal of the ACM, 22(2):215–225, 1975.
[35] V. V. Vazirani. A theory of alternating paths and blossoms for proving correctness of the general graph maximum matching algorithm. Combinatorica, 14(1):71–109, 1994.
[36] V. V. Vazirani. A simplification of the MV matching algorithm and its proof. arXiv preprint arXiv:1210.4594, 2013.
[37] V. V. Vazirani. A theory of alternating paths and blossoms from the perspective of minimum length. Mathematics of Operations Research, 49(3):2009–2047, 2024.
[38] Y. Yamaguchi. Packing A-paths in group-labelled graphs via linear matroid parity. SIAM Journal on Discrete Mathematics, 30(1):474–492, 2016.