Faster Algorithms on Linear Delta-Matroids
Abstract
We present new algorithms and constructions for linear delta-matroids. Delta-matroids are generalizations of matroids that also capture structures such as matchable vertex sets in graphs and path-packing problems. As with matroids, an important class of delta-matroids is given by linear delta-matroids, which generalize linear matroids and are represented via a “twist” of a skew-symmetric matrix. We observe an alternative representation, termed a contraction representation over a skew-symmetric matrix. This representation is equivalent to the more standard twist representation up to -time transformations (where is the dimension of the delta-matroid and the matrix multiplication exponent), but it is much more convenient for algorithmic tasks. For instance, the problem of finding a max-weight feasible set now reduces directly to finding a max-weight basis in a linear matroid. Supported by this representation, we provide new algorithms and constructions for linear delta-matroids. In particular, we show that the union and delta-sum of linear delta-matroids are again linear delta-matroids, and that a representation for the resulting delta-matroid can be constructed in randomized time (or more precisely, in field operations, over a field of size at least , where is an error parameter). Previously, it was only known that these operations define delta-matroids. We also note that every projected linear delta-matroid can be represented as an elementary projection. This implies that several optimization problems over (projected) linear delta-matroids, including the coverage, delta-coverage, and parity problems, reduce (in their decision versions) to a single -time matrix rank computation. Using the methods of Harvey, previously applied by Cheung, Lao and Leung for linear matroid parity, we furthermore show how to solve the search versions in the same time. This improves on the -time augmenting path algorithm of Geelen, Iwata and Murota, albeit with randomization. Finally, we consider the maximum-cardinality delta-matroid intersection problem (equivalently, the maximum-cardinality delta-matroid matching problem). Using Storjohann’s algorithms for symbolic determinants, we show that such a solution can be found in time. This provides the first (randomized) polynomial-time solution for the problem, thereby solving an open question of Kakimura and Takamatsu.
Keywords and phrases:
Delta-matroids, Randomized algorithmsFunding:
Tomohiro Koana: Supported by the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (project CRACKNP under grant agreement No. 853234). Supported by JSPS KAKENHI Grant Number JP20H05967.Copyright and License:
![[Uncaptioned image]](x1.png)
2012 ACM Subject Classification:
Mathematics of computing Matroids and greedoidsEditors:
Olaf Beyersdorff, Michał Pilipczuk, Elaine Pimentel, and Nguyễn Kim ThắngSeries and Publisher:

1 Introduction
Matroids are important unifying structures in many parts of computer science and discrete mathematics, abstracting and generalizing notions from linear vector spaces and graph theory; see, e.g., Oxley [30] and Schrijver [32]. Formally, a matroid is a collection of independent sets, subject to particular axioms (see below). A maximum independent set is a basis. Among other things, matroids are a very useful source of algorithmic meta-results, since there are many problems on matroids which admit efficient, general-purpose algorithms – such as the greedy algorithm for finding a max-weight basis, generalizing algorithms for max-weight spanning trees; or Matroid Intersection, the problem of finding a maximum common feasible set in two given matroids, which generalizes bipartite matching.
An important class of matroids are linear matroids, where independence in the matroid is represented by the column space of a matrix. Linear matroids enjoy many properties not shared by generic matroids. For example, the famous Matroid Parity problem, which generalizes the matching problem in general graphs, is known to be intractable in the general case but efficiently solvable over linear matroids [26]. In addition, linear representations, as a compact representation of combinatorial information, have seen many applications in parameterized complexity for purposes of sparsification and kernelization [24, 25], and algebraic algorithms over linear matroids have proven a very useful general-purpose tool in FPT algorithms [14, 12] (cf. [8, 15]).
Delta-matroids are a generalization of matroids, where, informally, the notion of bases is replaced by the notion of feasible sets, which satisfy an exchange axiom similar to matroid bases but need not all have the same cardinality. Delta-matroids were introduced by Bouchet (although similar structures were independently defined by others), and have connections to multiple areas of computer science such as structural and topological graph theory [28], constraint satisfaction problems [13, 22], matching and path-packing problems and more. Like with matroids, there is also a notion of linear delta-matroids, where the feasible sets are represented through a skew-symmetric matrix. These generalize linear matroids, although this fact (or indeed the fact that skew-symmetric matrices define delta-matroids) is not elementary [17]. Delta-matroids (linear or otherwise) are remarkably flexible structures, in that there are many ways to modify or combine given delta-matroids into new delta-matroids, including twisting (partial dualization), contraction and deletion, existential projection, and unions and delta-sums of delta-matroids (all described below).
Similarly to matroids, there is also a range of generic problems that have been considered over delta-matroids, including delta-matroid intersection, partition, and parity problems. Unfortunately, due to the generality of delta-matroids, these problems are all intractable in the general case, since they generalize matroid parity. However, they are tractable on linear delta-matroids, where Geelen et al. [17] gave an algorithm (and a corresponding min-max theorem) with a running time of , and using fast matrix multiplication. However, other variants remain open. Kakimura and Takamatsu [21] considered the maximum cardinality version of delta-matroid parity (as opposed to the result of Geelen et al. [17], which is more of a feasibility or minimum error version). They gave a solution for a restricted class of linear and projected linear delta-matroid, but left the general case open. Furthermore, the natural weighted optimization variants of the above appear completely open.
In this paper, we show new constructions of linear delta-matroids and new and faster randomized algorithms for the aforementioned problems on linear and projected linear delta-matroids. In particular, we show a new representation variant for linear delta-matroids – dubbed contraction representation, as opposed to the standard twist representation – which appears more amenable to efficient algorithms. Using this representation, we show for the first time that unions and delta-sums of linear delta-matroids (represented over a common field ) define linear delta-matroids, and that a representation can be constructed in randomized polynomial time. We also show new algorithmic results, including solving the search version of Linear Delta-Matroid Parity (Linear DM Parity for short) in field operations111Throughout, we give our running times as field operations. If the field has size , as in most applications, then this is just polylogarithmic overhead. and giving the first (randomized) polynomial-time algorithm for the maximum cardinality version of the problem in field operations, thereby settling an open question from Kakimura and Takamatsu [21].
1.1 Introduction to delta-matroids
Before we describe our results in detail, let us review some background on delta-matroids. For more material, we refer to the survey by Moffatt [28].
Like matroids, delta-matroids are formally defined as set systems satisfying particular axioms. Formally, a delta-matroid is a pair where is a ground set and a non-empty collection of subsets of , referred to as feasible sets in , subject to the following symmetric exchange axiom:
(1) |
where denotes symmetric difference.
It should be enlightening to compare this to the definition of matroids. Formally, a matroid is most commonly defined as a collection of independent sets; i.e., a matroid is defined as a pair where is the ground set and is a collection of sets, referred to as independent sets in , subject to (1) ; (2) if and then ; and (3) if with then there exists an element such that . The second condition encodes that is an independence system. However, matroids can also be equivalently defined from just the collection of maximal independent sets, known as bases. Under this definition, a matroid is a pair where is a non-empty collection of bases, subject to the basis exchange property:
(2) |
In particular, all bases of a matroid have the same cardinality. Thus, delta-matroids can be seen as the relaxation of matroids where the feasible sets (analogous to the bases) need not all have the same cardinality. In fact, a delta-matroid where all feasible sets have the same cardinality is precisely a matroid (represented as a set of bases). A similar statement holds for independent sets – the independent sets of a matroid form the feasible sets of a delta-matroid, and a delta-matroid which is an independence system is precisely a matroid in this sense – but the formulation from the set of bases is standard and more convenient.
As a further illustration, consider the case of graph matchings. Let be a graph. The matching matroid of is a matroid over ground set where a set is a basis if and only if it is the set of endpoints of a maximum matching of . Correspondingly, the independent sets of the matching matroid are vertex sets that can be covered by a matching. On the other hand, the matching delta-matroid over is the delta-matroid where a set is feasible if and only if has a perfect matching. Thus, the maximal feasible sets of the matching delta-matroid form the bases of the matching matroid, but clearly, the matching delta-matroid captures more of the structure of than the matching matroid does.
Linear delta-matroids.
As with matroids, an important class of delta-matroids are linear delta-matroids. A matrix is skew-symmetric if . Let be a skew-symmetric matrix with rows and columns indexed by a set . Then defines a delta-matroid where for we have if and only if the principal submatrix of indexed by , denoted by , is non-singular. We refer to as a directly represented linear delta-matroid. More generally, the twist of a delta-matroid by a set , denoted , is the delta-matroid with feasible sets
It is easy to check that is a delta-matroid. The twisting operation is also known as partial dualization, since the twist corresponds to the dualization of a matroid . A general representation of a linear delta-matroid is given as for some skew-symmetric matrix and twisting set . A delta-matroid is even if all feasible sets have the same cardinality modulo 2; all linear delta-matroids are even. In addition, we consider projected linear delta-matroids, which is a delta-matroid defined via existential projection over a set from a larger linear delta-matroid over ground set . We denote this , where has the feasible set
As a canonical example, the matching delta-matroid of a graph is directly represented by the Tutte matrix over . The set of bases of a linear matroid forms a linear delta-matroid, and the independent sets form a projected linear delta-matroid, under natural representations (see Section 3.1 of the full version of the paper).
Underpinning algorithms on linear delta-matroids are a number of fundamental operations on skew-symmetric matrices. For a skew-symmetric matrix indexed by and a set such that is non-singular, there is a pivoting operation that constructs a new skew-symmetric matrix such that for any , is non-singular if and only if is. Via this operation, linear delta-matroids are closed under the contraction operation as well as deletion (see Section 2 for the definitions). Another fundamental property of skew-symmetric matrices is the Pfaffian, defined as follows. Let be a skew-symmetric matrix with rows and columns indexed by . The support graph of is the graph where if and only if . Then the Pfaffian of is defined as
where ranges over all perfect matchings in and is a sign term. It holds that , thus is non-singular if and only if . Via this connection to matchings, the Pfaffian forms a link between the combinatorial and algebraic aspects of linear delta-matroids, in a way that is often exploited in this paper. The Pfaffian also enjoys some useful algebraic properties, such as the Pfaffian sum formula and the Ishikawa-Wakayama formula, with clear combinatorial interpretations. See Section 2 for details.
1.2 Our results
We show a range of results regarding the representation and construction of linear delta-matroids, and new and faster algorithms for computational problems over them. We discuss these in turn.
Representations and constructions.
Our first result, which supports the others, is the introduction of a new representation for linear delta-matroids. Recall that a linear delta-matroid is represented as for a skew-symmetric matrix with rows and columns indexed by . We refer to this as a twist representation. Although this representation is intimately connected to the structure of delta-matroids, it is less convenient for algorithmic purposes. For this, we introduce the contraction representation, representing a linear delta-matroid as for a skew-symmetric matrix indexed by . Thus, a set is feasible in if and only if is non-singular.
We show that the representations are equivalent, and given a representation in one form, we can efficiently and deterministically construct one in the other; see Section 3.1. Thus contraction representations do not change the class of representable delta-matroids; however, we find that the contraction representation is more compatible with the algorithmic methods of linear algebra.
Next, we consider two methods of composing linear delta-matroids. Let and be given delta-matroids (padding the ground sets with dummy elements if necessary so that they are defined over the same ground set ). The union is the delta-matroid where
i.e., the feasible sets in are the disjoint unions of feasible sets in and . Additionally, the delta-sum is defined as the delta-matroid with feasible sets
where denotes symmetric difference. Bouchet [2] and Bouchet and Schwärzler [4] showed that and are delta-matroids. Using properties of Pfaffians and the contraction representation, we show that furthermore, the union and delta-sum of linear delta-matroids are linear delta-matroids.
The construction is randomized, and takes an error parameter which controls the size of the field that the output delta-matroid is represented over. For this purpose, we say that an algorithm constructs an -approximate representation of a delta-matroid if it constructs a representation of a delta-matroid where and for every the probability that is at least . Setting where gives a representation that with good probability is correct for all subsets. However, this leads to a prohibitive field size, with significant overhead cost per field operation. Thus, for algorithmic applications, a smaller value of may be faster and sufficient.
Theorem 1.
Let and be delta-matroids represented over a common field , and let be given. Let be an extension field of with at least elements. Then the delta-matroid union and delta-sum are linear, and -approximate representations over can be constructed in respectively field operations.
Algorithms.
As a warm-up, we first consider the problem of finding a max-weight feasible set in a given delta-matroid with element weights . Note that the weights may be negative, and since not all feasible sets have the same cardinality, unlike in matroids, they cannot simply be raised to be non-negative. Bouchet [3, 1] showed that there is a variant of greedy algorithm that solves this problem using only separation oracle calls. However, this requires separation oracle calls, each of which requires field operations in linear representation. We show that, using the contraction representation, the max-weight feasible set problem in a linear delta-matroid reduces to finding a max-weight column basis of an matrix, which can be done significantly faster.
Theorem 2.
Let be a linear or projected linear delta-matroid. In field operations, we can find a max-weight feasible set in .
For more intricate questions, the literature contains a range of problems over delta-matroids [3, 17, 29]. The most important are arguably the following.
-
DM Intersection: Given delta-matroids and , find a common feasible set .
-
DM Parity: Given a delta-matroid and a partition of into pairs, is there a feasible set in which is the union of pairs? More generally, find a feasible set to minimize the number of broken pairs, i.e., the number of pairs with .
Recall that the matroid versions differ in complexity; Matroid Intersection is tractable in the oracle model while Matroid Parity is intractable in general but tractable for linear matroids. However, due to the flexibility of delta-matroids, DM Intersection and DM Parity are equivalent under efficient transformations [17], hence both intractable in general. Given an instance of DM Intersection, a reduction to DM Parity is immediate by constructing the disjoint union of and [17]. In the other direction, given a delta-matroid and a partition of into pairs, let be the matching delta-matroid of the graph with edge set . Thus the feasible sets of are precisely the sets with no broken pairs, and the DM Parity instance has a perfect solution – i.e., one with no broken pairs – if and only if and have a common feasible set. For linear-delta-matroids the problems are solvable in time due to Geelen et al. [17].
Additionally, the following problems have been considered. Again, due to the flexibility of delta-matroids, these problems are related to one another; see [17, 29]. The previously fastest algorithm for all of them is by Geelen et al. [17] at time. Let and be given delta-matroids.
-
DM Covering: Given and , find , with to maximize
-
DM Delta-Covering: Given and , find , to maximize
-
DM Partition: Given and , find a partition such that and
The variant of DM Covering where the disjointness constraint is dropped reduces to Matroid Union, since the maximal feasible sets of a delta-matroid form a matroid, hence is of less interest for delta-matroids.
Using the methods of the previous subsection, the decision versions of the above for linear and projected linear delta-matroids all reduce to computing the rank of an skew-symmetric matrix. Indeed, consider DM Delta-Covering. Assume that and are given in some linear representation and let . Then a set is a solution to the delta-covering problem if and only if is a basis of . Similarly, DM Covering reduces to finding a maximum feasible set in . DM Intersection and DM Partition are asking whether is feasible in and , respectively. For DM Parity, as above let the input be and construct the delta-matroid . Then DM Parity reduces to finding the rank of (or indeed ). Thus the decision versions of all the above problems can be solved by a randomized algorithm using field operations given linear representations of resp. and thanks to Theorem 2.
For general delta-matroids, these problems are as hard as Matroid Parity: Clearly, DM Parity is as hard as Matroid Parity. Given an instance of DM Parity, let and . Then, the following is equivalent:
-
The instance has a perfect solution for DM Parity
-
has a solution of cardinality for DM Covering
-
has a solution of cardinality for DM Delta-Covering
-
is a yes-instance of DM Partition
This shows that these problems are all intractable in the oracle model. For linear delta-matroids, achieving time is arguably the best possible.
For the search versions, the situation changes slightly. Although these problems can be reduced to straightforward questions about non-singularity or rank of a skew-symmetric matrix the resulting solution (e.g., a basis of ) provides only limited insight into the solution of the original problem. For example, if is an instance of DM Parity, then the rank of tells us the number of broken pairs in an optimal solution (and a maximum feasible set tells us the set of broken pairs in such a solution), it does not give us the feasible set that is the “actual” solution. Similarly, for DM Covering and DM Delta-Covering the above reduction gives us the set respectively but not the pair . We refer to this (the set for DM Parity and the pair for the other four problems) as the witness.
The algorithm of Geelen et al. [17] actually computes the witness for Linear DM Parity, and can be implemented in field operations. Applying self-reducibility over the above-mentioned representation to find a witness would reproduce the same running time. Using methods of Harvey [18] we show the following improved result. These methods also underpin the currently fastest algorithm for linear matroid parity [6]. The condition of field size is for simplicity; given representations over a common field we can easily move to a large enough extension field of .
Theorem 3.
Let and be (projected) linear delta-matroids over a common field with elements. For a feasible set in , we can, with high probability, find feasible sets and with in field operations.
Via the reductions given above, this lets us find a witness for all problems considered. For Linear DM Covering, we would first find the optimal set as above, then solve Linear DM Partition for the instance induced by ; for the remaining problems the solution is straightforward. See the full version of the paper for details.
Corollary 4.
The following search problems can be solved in field operations with high probability, given (projected) linear delta-matroids on ground sets of elements represented over a common field with elements: DM Covering; DM Delta-Covering; DM Intersection; DM Partition; and DM Parity.
Finally, we consider the weighted versions of the above problems. Again, the picture becomes slightly different. For DM Partition, there is no sensible weighted version. For DM Covering and DM Delta-Covering, the natural weight is the weight of the solution set , in which case the problem is solved in strongly polynomial time of field operations using Theorem 2 and 3. For DM Parity, we would attach weights to the pairs, and consider two weighted versions. In the first version, we want to minimize the weight of the broken pairs; this problem is solved in field operations using Theorem 2 and 3. For the more interesting version, we assume that there exists a perfect delta-matroid parity solution, and we wish to maximize the weight of such a set. This version, finally, is equivalent to the weighted version of DM Intersection, which we focus on, and directly generalizes Weighted Matroid Parity. We use the matrix representation of the problem to construct a solution via algebraic methods.
As a special case, even the unit weight version, Maximum Linear DM Intersection, is an interesting problem which up to now has had no polynomial-time solution. Kakimura and Takamatsu [21] asked this as an open problem, and provided algorithms for some special cases of it. We solve the general case with a randomized algorithm.
Theorem 5.
Let and be (projected) linear delta-matroids over a common field with elements and let be element weights. In field operations we can find with high probability the maximum weight of a common feasible set . In particular, we can find the maximum cardinality of in field operations with high probability.
By self-reducibility, the search version can thus be solved by a factor overhead.
Corollary 6.
Maximum Linear DM Intersection can be solved with high probability in field operations. Weighted Linear DM Intersection and Weighted Perfect DM Parity with maximum element weight can be solved with high probability in field operations.
Applications.
We now review some applications of the results. Not all of these results are new, but they serve to demonstrate the applicability of the setting.
One area of application is graph matching and factor problems. In the general factor problem, we are given a graph , and a set of integers for each vertex . The task is to find a spanning subgraph such that for every vertex . Cornuéjols [7] showed that this problem is polynomial-time solvable if each has gaps of length at most 1, but becomes NP-hard otherwise.
For each , let be the set of edges incident with and define . Under the gap-1 condition, forms a delta-matroid for every . We refer to as a symmetric delta-matroid.
The general factor problem can be reformulated as a DM Intersection problem. We define two delta-matroids on the ground set , where each edge is represented by and . Let be the matching delta-matroid of , where is the graph on with edges between the pairs and for each edge . Furthermore, let be the direct sum of symmetric delta-matroids with and . Then the intersection of and captures the general factor problem.222We find it interesting that in this formulation, the General Factor problem is tractable if and only if every set system , forms a delta-matroid. For more such occurrences, see the Boolean Edge CSP [13, 22] and Boolean Planar CSP [11, 22] problems, both of which appear (roughly speaking) to be interestingly tractable if and only if the constraints form delta-matroids in natural ways.
When the symmetric delta-matroids correspond to cases where and , they are linear and projected linear, respectively. The associated factor problems are known as parity -factors and -factors. Thus, these problems can be reduced to Linear DM Intersection, and solved via Corollary 4 (although a naive formulation gives only time here). The algebraic formulation of Gabow and Sankowski [16] for the -factor problem, where for all , can essentially be derived from this method in a generic way using the Ishikawa-Wakayama formula (see Lemma 10), as the corresponding systems form matroids. See also recent work on weighted general factors [10, 23].
For another example, let be a graph and a set of terminals. Let be a partition of . An -path packing is a vertex-disjoint packing of paths where every path has endpoints in distinct parts of and internal vertices disjoint from . A classical theorem of Mader shows a min-max theorem characterizing the maximum number of paths in an -path packing, generalizing Menger’s theorem and the Tutte-Berge formula; see Schrijver [32]. Wahlström [36] recently showed the following. Let a set be feasible if there is an -path packing whose set of endpoints is precisely . Then is a linear delta-matroid. Then, via Linear DM Intersection as above, we can solve the following “-factor” problem: Given , and a prescribed set of degrees , , is there an -path packing in where precisely paths have an endpoint in ? The generalizations to -factors and -parity factors can be handled similarly.
Structure of the paper.
Section 2 contains all definitions. Section 3 gives results about new representations, and Section 4 gives the algorithmic results. Section 5 concludes the paper. For missing proofs (for results marked with ) and additional results, including a more extensive related work review, see the full version of the paper.
2 Preliminaries
For two sets , we let denote their symmetric difference.
For a matrix and a set of rows and columns , we denote by the submatrix containing rows and columns . If contains all rows ( contains all columns), then we use the shorthand (, respectively). The zero matrix and the identity matrix is denoted by and , respectively. We often drop the subscript when clear from context.
Delta-matroids. A delta-matroid is a pair where is a ground set and a collection of feasible sets, subject to the rule
This is known as the symmetric exchange axiom. For we let and . A delta-matroid is even if all feasible sets have the same parity. Note that in this case we must have in the symmetric exchange axiom, although this does not necessarily hold in general.
A separation oracle for a delta-matroid is an oracle that, given a pair of disjoint subsets of , reports whether there is a set such that and . If so, the pair is separable. A delta-matroid is tractable if it has a polynomial-time separation oracle.
For a delta-matroid and , the twisting of by is the delta-matroid where This generalizes some common operations from matroid theory. The dual delta-matroid of is . For a set , the deletion of from refers to the set system The contraction of refers to
Skew-symmetric matrices. A square matrix is skew-symmetric if . In the case that is over a field of characteristic 2, we will additionally assume that it has zero diagonal, unless stated otherwise. For a skew-symmetric matrix with rows and columns indexed by a set , the support graph of is the graph where . A fundamental tool for working with skew-symmetric matrices is the Pfaffian, defined for a skew-symmetric matrix as where ranges over all perfect matchings of the support graph of and is the sign of the permutation: , where with for all . It is known that , hence in particular if and only if is non-singular. However, for many algorithms it will be more convenient to work directly with the Pfaffian. In fact, Pfaffian generalizes the notion of determinants as follows.
Lemma 7.
For an -matrix , it holds that
An important operation on skew-symmetric matrices is pivoting. Let be skew-symmetric and let be such that is non-singular. Order the rows and columns of so that , where . Then the pivoting of by is . Note that this is a well-defined, skew-symmetric matrix.
Lemma 8 ([34]).
It then holds, for any , that In particular, is non-singular if and only if is non-singular.
Finally, let us note a formula on the Pfaffian of a sum of two skew-symmetric matrices:
Lemma 9 ([29, Lemma 7.3.20]).
For two skew-symmetric matrices and both indexed by , we have
where for and is a sign of the permutation
where and are the -th largest elements of and , respectively.
The following is a generalization of the Cauchy-Binet formula to skew-symmetric matrices. The algebraic approach of Lovász [26] for matroid parity can be derived from this formula (see [27]).
Lemma 10 (Ishikawa-Wakayama formula [19]).
For a skew-symmetric -matrix and a -matrix with , we have
Linear representation.
A skew-symmetric matrix defines a delta-matroid as follows. For a skew-symmetric matrix over a field , define . Then, , which is denoted by , is a delta-matroid. We say that a delta-matroid is representable over if there is a skew-symmetric matrix and a twisting set such that . If is non-singular, or equivalently , we say that is directly representable over . Note that a directly representable delta-matroid can be represented without a twisting set , as . We will say that is directly represented by if . A delta-matroid is called normal if is feasible. Note that every linear delta-matroid is even, and that a linear delta-matroid is directly representable if and only if it is normal. Linear delta-matroids are tractable [3].
In addition, we consider projected linear delta-matroids. Let be a delta-matroid and . Then the projection is defined as where . Then is a delta-matroid, although it is in general not even, hence not linear. When is linear, then we refer to as a projected linear delta-matroid. When we refer to this as an elementary projection, following Geelen et al. [17].
As noted above, we assume that has a zero diagonal (this naturally follows from the definition over all fields with a characteristic not 2). However, if is a field of characteristic 2, then linear delta-matroids over with a non-zero diagonal correspond to projected linear delta-matroids over ; see Geelen et al. [17].
For a matroid with the basis family , is a delta-matroid. If is represented by , can be represented as follows. Fix a basis . We may assume w.l.o.g. that . Define
Observe that for every , is non-singular if and only if is non-singular. Since , this is equivalent to being non-singular, and thus .
Conversely, let be a delta-matroid. Then the set of maximum-cardinality feasible sets in forms the set of bases of a matroid . Furthermore, if is directly represented, then (as a column space) is also a representation of the matroid . This is because if is a column basis for a skew-symmetric matrix , then is non-singular (see e.g., [31] or [29, Proposition 7.3.6]).
To avoid intricate representation issues, we assume that every linear representation is given over some finite field. We note that a representation over the rationals can be efficiently transformed into an equivalent representation over a finite field.
Approximate linear representation.
For a delta-matroid , we say that a delta-matroid is an -approximate representation of if and for every , the probability that is at least . For constructing an -approximate linear representation, the Schwartz-Zippel lemma [33, 37] (also referred to as the DeMillo-Lipton-Schwartz-Zippel lemma) comes in handy. It states that a polynomial of total degree at most over a field becomes nonzero with probability at least when evaluated at uniformly chosen elements from , unless is identically zero.
Let be an undirected graph and let contain all sets such that has a perfect matching. Then is a delta-matroid referred to as the matching delta-matroid of . The Tutte matrix gives rise to an approximate linear representation. Note that setting (or lower) gives a matrix of polynomial size which with high probability is a correct representation of . However, this will inflate the time needed for field operations over by at least , so for efficiency reasons we work with -approximate representations where is a parameter.
Lemma 11 ().
Let be a graph on vertices and be a field with at least elements. We can construct a -approximate linear representation of the matching delta-matroid of over .
Operations in matrix product time.
Determinant, rank, basis, inverse can be found in time. Given an -matrix, its row echelon form can be computed in . We can find a lexicographically smallest column basis in time. See [35].
3 Contraction representation of linear delta-matroids
In this section, we introduce a novel linear representation for delta-matroids, called contraction representation. For the sake of clarity, we will say that the representation of a delta-matroid as is a twist representation. As we will see in Section 4, the contraction representation is useful in the design of more efficient algorithms for linear delta-matroids. We also give further results, supported by the new representation. First, we show that the union and delta-sum of linear delta-matroids is linear. Previously, this was only known to define delta-matroids [2, 4]. We also use this to provide a compact representation of projected linear delta-matroids. All of these additional results will be useful in our algorithms.
3.1 Contraction representations
For a delta-matroid , a contraction representation of is a pair where is a skew-symmetric matrix over a field whose rows and columns are labelled by , such that , i.e., for every , is feasible in if and only if is feasible in . This is closely related to strong maps of delta-matroids. For two delta-matroids and , is a strong map of if there exists a delta-matroid such that and (see Geelen et al. [17]). Hence, if is a contraction representation of a delta-matroid , then is a strong map of the directly representable delta-matroid . We show that the contraction and twist representations are equivalent.
Lemma 12.
Given a delta-matroid in twist representation, we can construct a contraction representation of deterministically in time.
Proof.
Let be given as , . For a set of size , define a skew-symmetric matrix over by
where is an identity matrix. Note that the support graph of has a unique perfect matching (namely, every vertex in has degree one), thus and is non-singular. Thus, we can construct the matrix . Note that
and consequently, the result of pivoting is
Clearly, can be constructed in time. Now by Lemma 8, for any , is non-singular if and only if is. Since and , this is equivalent to , thereby showing that is a contraction representation of .
Lemma 13.
Given a contraction representation , we can find a twist representation of deterministically using field operations.
Proof.
Let be a set such that is non-singular; such a set exists since by assumption, and can be found efficiently over . Then is well-defined. Let . Observe that , that is, for every , is non-singular if and only if is non-singular by Lemma 8. All operations above can be performed in matrix multiplication time.
We also observe that the contracted set in a representation of a delta-matroid never needs to be larger than .
Lemma 14 ().
Given a contraction representation of a delta-matroid , in field operations, where , we can find a contraction representation where .
3.2 Constructions
We next consider an immediate way to combine two delta-matroids into a new delta-matroid, the delta-matroid union (surveyed in the introduction). Let and be two delta-matroids on not necessarily disjoint ground sets and let . Define as the collection of sets that can be produced as disjoint unions from and , and write . Then Bouchet [2] showed that is a delta-matroid. We show that furthermore, if and are linear or projected linear then so is , and an -approximate representation can be constructed in polynomial time. Note that we may as well assume that , by adding the missing elements to the respective delta-matroid as loops.
Lemma 15 ().
Let and be linear (respectively projected linear) delta-matroids defined over a common field and given in contraction representation. Then the delta-matroid union is a linear (respectively projected linear) delta-matroid, and an -approximate representation of can be constructed in field operations over an extension field of with at least elements.
Let and be delta-matroids on not necessarily disjoint ground sets. Let and . Then is called the delta-sum of and , and is itself a delta-matroid. Bouchet and Schwärzler [4] give a proof, citing unpublished work by Duchamp for the result. We show that the delta-sum of linear delta-matroids is linear when and are given as representations over a common field. By Lemma 12, we can work with contraction representations.
Lemma 16 ().
The delta-sum of (projected) linear delta-matroids over a common field is a (projected) linear delta-matroid, and a representation can be computed in randomized polynomial time. More precisely, let and be linear delta-matroids given in contraction representation over a common finite field . Let be given and let be a field extension of with at least elements. We can construct an -approximate contraction representation of in field operations over .
Proof sketch.
Let and , w.l.o.g. represented over the same ground set and with . Create three copies of the ground set and define three sets of variables , . Let
where , is a diagonal matrix whose :th entry is . Note that can be seen as the sum of the representation of the disjoint union of and and the Tutte matrix of the graph consisting of a disjoint union of triangles on for every , where is the copy of in , . It now follows from the Pfaffian sum formula (Lemma 9) that is an -approximate representation of .
Recall that a projected linear delta-matroid is a delta-matroid represented as where is a linear delta-matroid. Projections of linear delta-matroids were studied by Geelen et al. [17] in the context of linear delta-matroids over fields of characteristic 2, and by Kakimura and Takamatsu [21] regarding generalizations of constrained matching problems. We observe that if is linear, then the even (respectively odd) sets of form a linear delta-matroid, and that every projected linear delta-matroid can be represented via an elementary projection.
Lemma 17 ().
Let be a linear delta-matroid. Then the following delta-matroids are linear and approximate representations can be constructed efficiently.
-
1.
A linear delta-matroid such that and
-
2.
The delta-matroid where contains the sets of of even cardinality
-
3.
The delta-matroid where contains the sets of of odd cardinality
More precisely, let in contraction representation over a finite field and let be given. Let be a field extension of with at least elements. We can construct an -approximate contraction representation of each of the above delta-matroids in operations over .
4 Algorithms for fundamental delta-matroid problems
We now present the various algorithms over linear delta-matroids.
4.1 Max-weight feasible sets
We show an -time algorithm for finding a max-weight feasible set in a linear delta-matroid. More precisely, let be a delta-matroid and , a set of element weights. Let . The goal is to find a feasible set to maximize the weight . Note that since the feasible sets of do not necessarily all have the same cardinality, the negative element weights cannot easily be removed by any simple transformation (as, e.g., shifting by a constant would affect different feasible sets differently). This problem can be solved via the “signed greedy” algorithm, which extends the normal greedy algorithm (in fact, like for matroids, the success of signed greedy can be taken as a definition of delta-matroids) [3, 1]. However, this requires calls to a separation oracle. If is linear, this algorithm thus runs in time. We show an improvement using the contraction representation. We begin with the following observation.
Lemma 18.
Let be a delta-matroid and a set of weights. Let be the set of elements such that . Let , and define a set of weights by for every . For any feasible set , we have .
Proof.
The following hold: and . Thereby as promised.
The problem of finding a max-weight feasible set in a linear delta-matroid in contraction representation now reduces to the problem of finding a max-weight basis of a linear matroid.
See 2
Proof.
By Lemma 17, it suffices to prove the statement for linear delta-matroids.
Let and be given as input, and as above define , and where for all . Let be a contraction representation of , which can be constructed using Lemma 12. Finally, order the columns of to begin with and thereafter elements in order of non-increasing weight . Let be a lex-min column basis for with respect to this ordering. Then can be computed in field operations over (see e.g., [5]), and is a max-weight column basis of with respect to the weights . We claim that is a max-weight feasible set in . For this, let be a max-weight feasible set in with respect to the weights . Then by Lemma 18, is a max-weight feasible set in with respect to the weights . Hence is feasible in and . On the other hand, let be a lex-min basis of in the above ordering. Then by construction. By Lemma 18, is a feasible set in with . Hence by sandwiching and .
4.2 Intersection, Parity, and Delta-Covering
Recall that the DM Parity problem is defined as follows. Let be a delta-matroid with partitioned into pairs . The problem is to find a feasible set minimizing the number of broken pairs . Let . We consider the equivalent DM Delta-covering problem defined as follows. Let and be two given delta-matroids. The problem is to find and maximizing . Let . As described in Section 1, DM Parity and DM Delta-Covering reduce to each other. Moreover, DM Covering and DM Intersection are special cases of DM Parity and DM Delta-Covering.
We can compute in field operations as follows. Observe that is the maximum feasible set size in the delta-sum . By Lemma 16, we can find a linear representation of in field operations. We then have . Thus the decision variants of DM Parity and DM Delta-Covering can be solved in field operations. Via self-reducibility, we obtain an algorithm that finds a witness for DM Parity and DM Delta-Covering in field operations, matching the result of Geelen et al. [17]. We present an improvement to , using the method of Harvey [18]. Specifically, we prove the following:
Lemma 19 ().
Let be an skew-symmetric, non-singular polynomial matrix with its row and column indexed by . Suppose that , where (i) is a matrix defined over a field containing elements, and (ii) is the Tutte matrix of a graph with variables . Suppose that has connected components , with for every . It is possible to find an inclusion-wise maximal set for which remains non-singular when setting to zero for all . This can be done with probability using field operations over .
Using Lemma 19, we prove Theorem 3, which yields algorithms for DM Delta-Covering and DM Parity as well as DM Covering and DM Intersection using field operations (Corollary 4).
See 3
See 4
Proof sketch.
We treat the problems in turn. Throughout, by Lemma 17 (and by exhaustively guessing the parities of the feasible sets involved in the solution), we assume that every delta-matroid in the input is linear, and by Lemma 12 that it is provided in contraction form for some skew-symmetric matrix . We omit details of field size and approximate representations.
DM Parity. Let the input be with . Construct the matching delta-matroid of the graph with edge set and construct a contraction representation of using Lemma 16. Let be a maximum feasible set in and apply Theorem 3.
DM Intersection. Given input , construct . If is feasible in , then apply Theorem 3 to ; otherwise report a no-instance.
DM Partition. Given input , construct . If the full ground set is feasible in , apply Theorem 3; otherwise report a no-instance.
DM Covering. Given input , construct and let be a maximal feasible set. Delete all elements of to create the induced delta-matroids and with ground set , and apply Theorem 3 to .
DM Delta-Covering. Given input , construct and let be a maximal feasible set. Apply Theorem 3 to .
Let and be two linear delta-matroids with weights . We consider the intersection problem, where the goal is to find a common feasible set , i.e., and . The decision problem, i.e., whether there exists , can be solved in by testing whether is feasible in the delta-sum . Moreover, we can find a common feasible set in time using Theorem 3. We next give a (pseudo)polynomial-time randomized algorithm for the Weighted Delta-matroid Intersection, where we are tasked with finding a common feasible set of maximum weight, answering an open question of Kakimura and Takamatsu [21]. Previously, there has been no polynomial-time algorithm even for the unweighted case.
See 5
5 Conclusions
We have introduced a novel representation for linear delta-matroids, the contraction representation, which enable us to derive a range of new results, including linear representations of delta-matroid union and delta-sum, and faster algorithms for various problems including Linear Delta-Matroid Parity. We also show the first (pseudo)polynomial-time, randomized algorithms for the maximum cardinality and weighted versions of Linear Delta-Matroid Intersection, solving an open question of Kakimura and Takamatsu [21].
We note a few open questions. First, all our running times are stated purely in terms of the number of elements . It would be interesting to explore faster algorithms for linear delta-matroids of bounded “rank”. But we also note two specific challenging questions.
-
1.
Is there a strongly polynomial-time algorithm for Weighted Linear Delta-Matroid Parity, extending the recent result for Weighted Linear Matroid Parity [20]?
-
2.
Is there a -time algorithm for Shortest Disjoint -Paths? This would extend results for graph matching [9].
Additionally, does there exist a good characterization of, and/or a deterministic algorithm for the maximum cardinality version of Linear Delta-Matroid Intersection?
References
- [1] André Bouchet. Greedy algorithm and symmetric matroids. Math. Program., 38(2):147–159, 1987. doi:10.1007/BF02604639.
- [2] André Bouchet. Matchings and -matroids. Discret. Appl. Math., 24(1-3):55–62, 1989. doi:10.1016/0166-218X(92)90272-C.
- [3] André Bouchet. Coverings and delta-coverings. In IPCO, pages 228–243, 1995. doi:10.1007/3-540-59408-6_54.
- [4] André Bouchet and Werner Schwärzler. The delta-sum of matching delta-matroids. Discret. Math., 181(1-3):53–63, 1998. doi:10.1016/S0012-365X(97)00044-7.
- [5] Peter Bürgisser, Michael Clausen, and Mohammad Amin Shokrollahi. Algebraic complexity theory, volume 315 of Grundlehren der mathematischen Wissenschaften. Springer, 1997.
- [6] Ho Yee Cheung, Lap Chi Lau, and Kai Man Leung. Algebraic algorithms for linear matroid parity problems. ACM Trans. Algorithms, 10(3):10:1–10:26, 2014. doi:10.1145/2601066.
- [7] Gérard Cornuéjols. General factors of graphs. J. Comb. Theory, Ser. B, 45(2):185–198, 1988. doi:10.1016/0095-8956(88)90068-8.
- [8] Marek Cygan, Fedor V. Fomin, Lukasz Kowalik, Daniel Lokshtanov, Dániel Marx, Marcin Pilipczuk, Michal Pilipczuk, and Saket Saurabh. Parameterized Algorithms. Springer, 2015. doi:10.1007/978-3-319-21275-3.
- [9] Marek Cygan, Harold N. Gabow, and Piotr Sankowski. Algorithmic applications of Baur-Strassen’s theorem: Shortest cycles, diameter, and matchings. J. ACM, 62(4):28:1–28:30, 2015. doi:10.1145/2736283.
- [10] Szymon Dudycz and Katarzyna E. Paluch. Optimal general matchings. CoRR, abs/1706.07418, 2017. arXiv:1706.07418.
- [11] Zdenek Dvorák and Martin Kupec. On planar Boolean CSP. In ICALP (1), volume 9134 of Lecture Notes in Computer Science, pages 432–443. Springer, 2015. doi:10.1007/978-3-662-47672-7_35.
- [12] Eduard Eiben, Tomohiro Koana, and Magnus Wahlström. Determinantal sieving. In SODA, pages 377–423, 2024. doi:10.1137/1.9781611977912.16.
- [13] Tomás Feder. Fanout limitations on constraint systems. Theor. Comput. Sci., 255(1-2):281–293, 2001. doi:10.1016/S0304-3975(99)00288-1.
- [14] Fedor V. Fomin, Daniel Lokshtanov, Fahad Panolan, and Saket Saurabh. Efficient computation of representative families with applications in parameterized and exact algorithms. J. ACM, 63(4):29:1–29:60, 2016. doi:10.1145/2886094.
- [15] Fedor V. Fomin, Daniel Lokshtanov, Saket Saurabh, and Meirav Zehavi. Kernelization: Theory of Parameterized Preprocessing. Cambridge University Press, 2019. doi:10.1017/9781107415157.
- [16] Harold N. Gabow and Piotr Sankowski. Algorithms for weighted matching generalizations I: Bipartite graphs, b-matching, and unweighted f-factors. SIAM J. Comput., 50(2):440–486, 2021. doi:10.1137/16M1106195.
- [17] James F. Geelen, Satoru Iwata, and Kazuo Murota. The linear delta-matroid parity problem. J. Comb. Theory, Ser. B, 88(2):377–398, 2003. doi:10.1016/S0095-8956(03)00039-X.
- [18] Nicholas J. A. Harvey. Algebraic algorithms for matching and matroid problems. SIAM J. Comput., 39(2):679–702, 2009. doi:10.1137/070684008.
- [19] Masao Ishikawa and Masato Wakayama. Minor summation formula of Pfaffians. Linear and Multilinear algebra, 39(3):285–305, 1995.
- [20] Satoru Iwata and Yusuke Kobayashi. A weighted linear matroid parity algorithm. SIAM J. Comput., 51(2):17–238, 2022. doi:10.1137/17M1141709.
- [21] Naonori Kakimura and Mizuyo Takamatsu. Matching problems with delta-matroid constraints. SIAM J. Discret. Math., 28(2):942–961, 2014. doi:10.1137/110860070.
- [22] Alexandr Kazda, Vladimir Kolmogorov, and Michal Rolínek. Even delta-matroids and the complexity of planar Bpolean CSPs. ACM Trans. Algorithms, 15(2):22:1–22:33, 2019. doi:10.1145/3230649.
- [23] Yusuke Kobayashi. Optimal general factor problem and jump system intersection. In Alberto Del Pia and Volker Kaibel, editors, IPCO, volume 13904 of Lecture Notes in Computer Science, pages 291–305. Springer, 2023. doi:10.1007/978-3-031-32726-1_21.
- [24] Stefan Kratsch and Magnus Wahlström. Compression via matroids: A randomized polynomial kernel for odd cycle transversal. ACM Trans. Algorithms, 10(4):20:1–20:15, 2014. doi:10.1145/2635810.
- [25] Stefan Kratsch and Magnus Wahlström. Representative sets and irrelevant vertices: New tools for kernelization. J. ACM, 67(3):16:1–16:50, 2020. doi:10.1145/3390887.
- [26] László Lovász. Matroid matching and some applications. J. Comb. Theory, Ser. B, 28(2):208–236, 1980. doi:10.1016/0095-8956(80)90066-0.
- [27] Kazuki Matoya and Taihei Oki. Pfaffian pairs and parities: Counting on linear matroid intersection and parity problems. SIAM J. Discret. Math., 36(3):2121–2158, 2022. doi:10.1137/21M1421751.
- [28] Iain Moffatt. Delta-matroids for graph theorists. In Allan Lo, Richard Mycroft, Guillem Perarnau, and Andrew Treglown, editors, Surveys in Combinatorics 2019, London Mathematical Society Lecture Note Series, pages 167–220. Cambridge University Press, 2019. doi:10.1017/9781108649094.007.
- [29] Kazuo Murota. Matrices and matroids for systems analysis, volume 20. Springer Science & Business Media, 1999.
- [30] James Oxley. Matroid Theory. Oxford University Press, 2011.
- [31] Michael O. Rabin and Vijay V. Vazirani. Maximum matchings in general graphs through randomization. J. Algorithms, 10(4):557–567, 1989. doi:10.1016/0196-6774(89)90005-9.
- [32] A. Schrijver. Combinatorial Optimization: Polyhedra and Efficiency. Algorithms and combinatorics. Springer, 2003.
- [33] Jacob T. Schwartz. Fast probabilistic algorithms for verification of polynomial identities. J. ACM, 27(4):701–717, 1980. doi:10.1145/322217.322225.
- [34] Albert W Tucker. A combinatorial equivalence of matrices. Combinatorial analysis, pages 129–140, 1960.
- [35] Joachim von zur Gathen and Jürgen Gerhard. Modern computer algebra. Cambridge university press, 2013.
- [36] Magnus Wahlström. Representative set statements for delta-matroids and the Mader delta-matroid. In SODA, pages 780–810, 2024. doi:10.1137/1.9781611977912.31.
- [37] Richard Zippel. Probabilistic algorithms for sparse polynomials. In EUROSAM, pages 216–226, 1979. doi:10.1007/3-540-09519-5_73.