Matroid parity problem

From HandWiki
Short description: Largest independent set of paired elements
An instance of the matroid parity problem on a graphic matroid: given a graph with colored edges, having exactly two edges per color, find as large a forest as possible that again has exactly two edges per color.

In combinatorial optimization, the matroid parity problem is a problem of finding the largest independent set of paired elements in a matroid.[1] The problem was formulated by (Lawler 1976) as a common generalization of graph matching and matroid intersection.[1][2] It is also known as polymatroid matching, or the matchoid problem.[3]

Matroid parity can be solved in polynomial time for linear matroids. However, it is NP-hard for certain compactly-represented matroids, and requires more than a polynomial number of steps in the matroid oracle model.[1][4]

Applications of matroid parity algorithms include finding large planar subgraphs[5] and finding graph embeddings of maximum genus.[6] These algorithms can also be used to find connected dominating sets and feedback vertex sets in graphs of maximum degree three.[7]

Formulation

A matroid can be defined from a finite set of elements and from a notion of what it means for subsets of elements to be independent, subject to the following constraints:

  • Every subset of an independent set should be independent.
  • If [math]\displaystyle{ S }[/math] and [math]\displaystyle{ T }[/math] are independent sets, with [math]\displaystyle{ |T|\gt |S| }[/math], then there exists an element [math]\displaystyle{ t\in T }[/math] such that [math]\displaystyle{ S\cup\{t\} }[/math] is independent.[1]

Examples of matroids include the linear matroids (in which the elements are vectors in a vector space, with linear independence), the graphic matroids (in which the elements are edges in an undirected graph, independent when they contain no cycle), and the partition matroids (in which the elements belong to a family of disjoint sets, and are independent when they contain at most one element in each set). Graphic matroids and partition matroids are special cases of linear matroids.[1]

In the matroid parity problem, the input consists of a matroid together with a pairing on its elements, so that each element belongs to one pair. The goal is to find a subset of the pairs, as large as possible, so that the union of the pairs in the chosen subset is independent.[1][2] Another seemingly more general variation, in which the allowable pairs form a graph rather than having only one pair per element, is equivalent: an element appearing in more than one pair could be replaced by multiple copies of the element, one per pair.[8]

Algorithms

The matroid parity problem for linear matroids can be solved by a randomized algorithm in time [math]\displaystyle{ O(nr^{\omega-1}) }[/math], where [math]\displaystyle{ n }[/math] is the number of elements of the matroid, [math]\displaystyle{ r }[/math] is its rank (the size of the largest independent set), and [math]\displaystyle{ \omega }[/math] is the exponent in the time bounds for fast matrix multiplication.[1] In particular, using a matrix multiplication algorithm of Le Gall,[9] it can be solved in time [math]\displaystyle{ O(nr^{1.3729}) }[/math]. Without using fast matrix multiplication, the linear matroid parity problem can be solved in time [math]\displaystyle{ O(nr^2) }[/math].[1]

These algorithms are based on a linear algebra formulation of the problem by (Geelen Iwata). Suppose that an input to the problem consists of [math]\displaystyle{ m }[/math] pairs of [math]\displaystyle{ r }[/math]-dimensional vectors (arranged as column vectors in a matrix [math]\displaystyle{ M }[/math] of size [math]\displaystyle{ r\times 2m }[/math]). Then the number of pairs in the optimal solution is

[math]\displaystyle{ \frac{1}{2}\operatorname{rank}\begin{pmatrix}0&M\\M^T&T\end{pmatrix} -m, }[/math]

where [math]\displaystyle{ T }[/math] is a block diagonal matrix whose blocks are [math]\displaystyle{ 2\times 2 }[/math] submatrices of the form

[math]\displaystyle{ \begin{pmatrix}0&t_i\\-t_i&0\end{pmatrix} }[/math]

for a sequence of variables [math]\displaystyle{ t_1,\dots t_m }[/math].[10] The Schwartz–Zippel lemma can be used to test whether this matrix has full rank or not (that is, whether the solution has size [math]\displaystyle{ r/2 }[/math] or not), by assigning random values to the variables [math]\displaystyle{ t_i }[/math] and testing whether the resulting matrix has determinant zero. By applying a greedy algorithm that removes pairs one at a time by setting their indeterminates to zero as long as the matrix remains of full rank (maintaining the inverse matrix using the Sherman–Morrison formula to check the rank after each removal), one can find a solution whenever this test shows that it exists. Additional methods extend this algorithm to the case that the optimal solution to the matroid parity problem has fewer than [math]\displaystyle{ r/2 }[/math] pairs.[1]

For graphic matroids, more efficient algorithms are known, with running time [math]\displaystyle{ O(mn\log^6 n) }[/math] on graphs with [math]\displaystyle{ m }[/math] vertices and [math]\displaystyle{ n }[/math] edges.[11] For simple graphs, [math]\displaystyle{ m }[/math] is [math]\displaystyle{ O(n^2) }[/math], but for multigraphs, it may be larger, so it is also of interest to have algorithms with smaller or no dependence on [math]\displaystyle{ m }[/math] and worse dependence on [math]\displaystyle{ n }[/math]. In these cases, it is also possible to solve the graphic matroid parity problem in randomized expected time [math]\displaystyle{ O(n^4) }[/math], or in time [math]\displaystyle{ O(n^3) }[/math] when each pair of edges forms a path.[1]

Although the matroid parity problem is NP-hard for arbitrary matroids, it can still be approximated efficiently. Simple local search algorithms provide a polynomial-time approximation scheme for this problem, and find solutions whose size, as a fraction of the optimal solution size, is arbitrarily close to one. The algorithm starts with the empty set as its solution, and repeatedly attempts to increase the solution size by one by removing at most a constant number [math]\displaystyle{ C }[/math] of pairs from the solution and replacing them by a different set with one more pair. When no more such moves are possible, the resulting solution is returned as the approximation to the optimal solution. To achieve an approximation ratio of [math]\displaystyle{ 1-\epsilon }[/math], it suffices to choose [math]\displaystyle{ C }[/math] to be approximately [math]\displaystyle{ 5^{\lceil 1/2\epsilon\rceil} }[/math].[8]

Applications

Many other optimization problems can be formulated as linear matroid parity problems, and solved in polynomial time using this formulation.

Graph matching
A maximum matching in a graph is a subset of edges, no two sharing an endpoint, that is as large as possible. It can be formulated as a matroid parity problem in a partition matroid that has an element for each vertex-edge incidence in the graph. In this matroid, two elements are paired if they are the two incidences for the same edge as each other. A subset of elements is independent if it has at most one incidence for each vertex of the graph. The pairs of elements in a solution to the matroid parity problem for this matroid are the incidences between edges in a maximum matching and their endpoints.[2]
Matroid intersection
An instance of the matroid intersection problem consists of two matroids on the same set of elements; the goal is to find a subset of the elements that is as large as possible and is independent in both matroids. To formulate matroid intersection as a matroid parity problem, construct a new matroid whose elements are the disjoint union of two copies of the given elements, one for each input matroid. In the new matroid, a subset is independent if its restriction to each of the two copies is independent in each of the two matroids, respectively. Pair the elements of the new matroid so that each element is paired with its copy. The pairs of elements in a solution to the matroid parity problem for this matroid are the two copies of each element in a solution to the matroid intersection problem.[2]
Large planar subgraphs

In an arbitrary graph, the problem of finding the largest set of triangles in a given graph, with no cycles other than the chosen triangles, can be formulated as a matroid parity problem on a graphic matroid whose elements are edges of the graph, with one pair of edges per triangle (duplicating edges if necessary when they belong to more than one triangle). The pairs of elements in a solution to the matroid parity problem for this matroid are the two edges in each triangle of an optimal set of triangles. The same problem can also be described as one of finding the largest Berge-acyclic sub-hypergraph of a 3-uniform hypergraph. In the hypergraph version of the problem, the hyper-edges are the triangles of the given graph.[3]

A cactus graph is a graph in which each two cycles have at most one vertex in common. As a special case, the graphs in which each cycle is a triangle are necessarily cactus graphs. The largest triangular cactus in the given graph can then be found by adding additional edges from a spanning tree, without creating any new cycles, so that the resulting subgraph has the same connected components as the original graph. Cactus graphs are automatically planar graphs, and the problem of finding triangular cactus graphs forms the basis for the best known approximation algorithm to the problem of finding the largest planar subgraph of a given graph, an important step in planarization. The largest triangular cactus always has at least 4/9 the number of edges of the largest planar subgraph, improving the 1/3 approximation ratio obtained by using an arbitrary spanning tree.[5]

Combinatorial rigidity
A framework of rigid bars in the Euclidean plane, connected at their endpoints at flexible joints, can be fixed into a single position in the plane by pinning some of its joints to points of the plane. The minimum number of joints that need to be pinned to fix the framework is called its pinning number. It can be computed from a solution to an associated matroid parity problem.[3]
Maximum-genus embeddings

A cellular embedding of a given graph onto a surface of the maximum possible genus can be obtained from a Xuong tree of the graph. This is a spanning tree with the property that, in the subgraph of edges not in the tree, the number of connected components with an odd number of edges is as small as possible.

To formulate the problem of finding a Xuong tree as a matroid parity problem, first subdivide each edge [math]\displaystyle{ e }[/math] of the given graph into a path, with the length of the path equal to the number of other edges incident to [math]\displaystyle{ e }[/math]. Then, pair the edges of the subdivided graph, so that each pair of edges in the original graph is represented by a single pair of edges in the subdivided graph, and each edge in the subdivided graph is paired exactly once. Solve a matroid parity problem with the paired edges of the subdivided graph, using its cographic matroid (a linear matroid in which a subset of edges is independent if its removal does not separate the graph). Any spanning tree of the original graph that avoids the edges used in the matroid parity solution is necessarily a Xuong tree.[6]

Connected domination
A connected dominating set in a graph is a subset of vertices whose induced subgraph is connected, adjacent to all other vertices. It is NP-hard to find the smallest connected dominating set in arbitrary graphs, but can be found in polynomial time for graphs of maximum degree three. In a cubic graph, one can replace each vertex by a two-edge path connected to the ends of its three endpoints, and formulate a matroid parity problem on the pairs of edges generated in this way, using the cographic matroid of the expanded graph. The vertices whose paths are not used in the solution form a minimum connected dominating set. In a graph of maximum degree three, some simple additional transformations reduce the problem to one on a cubic graph.[7]
Feedback vertex set
A feedback vertex set in a graph is a subset of vertices that touches all cycles. In cubic graphs, there is a linear equation relating the number of vertices, cyclomatic number, number of connected components, size of a minimum connected dominating set, and size of a minimum feedback vertex set.[12] It follows that the same matroid parity problem used to find connected dominating sets can also be used to find feedback vertex sets in graphs of maximum degree three.[7]

Hardness

The clique problem, of finding a [math]\displaystyle{ k }[/math]-vertex complete subgraph in a given [math]\displaystyle{ n }[/math]-vertex graph [math]\displaystyle{ G }[/math], can be transformed into an instance of matroid parity as follows. Construct a paving matroid on [math]\displaystyle{ 2n }[/math] elements, paired up so that there is one pair of elements per pair of vertices. Define a subset [math]\displaystyle{ S }[/math] of these elements to be independent if it satisfies any one of the following three conditions:

  • [math]\displaystyle{ S }[/math] has fewer than [math]\displaystyle{ 2k }[/math] elements.
  • [math]\displaystyle{ S }[/math] has exactly [math]\displaystyle{ 2k }[/math] elements, but is not the union of [math]\displaystyle{ k }[/math] pairs of elements.
  • [math]\displaystyle{ S }[/math] is the union of [math]\displaystyle{ k }[/math] pairs of elements that form a clique in [math]\displaystyle{ G }[/math].

Then there is a solution to the matroid parity problem for this matroid, of size [math]\displaystyle{ 2k }[/math], if and only if [math]\displaystyle{ G }[/math] has a clique of size [math]\displaystyle{ k }[/math]. Since finding cliques of a given size is NP-complete, it follows that determining whether this type of matrix parity problem has a solution of size [math]\displaystyle{ 2k }[/math] is also NP-complete.[13]

This problem transformation does not depend on the structure of the clique problem in any deep way, and would work for any other problem of finding size-[math]\displaystyle{ k }[/math] subsets of a larger set that satisfy a computable test. By applying it to a randomly-permuted graph that contains exactly one clique of size [math]\displaystyle{ k }[/math], one can show that any deterministic or randomized algorithm for matroid parity that accesses its matroid only by independence tests needs to make an exponential number of tests.[4]

References

  1. 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 Cheung, Ho Yee; Lau, Lap Chi; Leung, Kai Man (2014), "Algebraic algorithms for linear matroid parity problems", ACM Transactions on Algorithms 10 (3): 10:1–10:26, doi:10.1145/2601066, https://cs.uwaterloo.ca/~lapchi/papers/parity.pdf 
  2. 2.0 2.1 2.2 2.3 "Chapter 9: The Matroid Parity Problem", Combinatorial Optimization: Networks and Matroids, New York: Holt, Rinehart and Winston, 1976, pp. 356–367, https://books.google.com/books?id=MTuoAAAAQBAJ&pg=PA356 
  3. 3.0 3.1 3.2 "Matroid matching and some applications", Journal of Combinatorial Theory, Series B 28 (2): 208–236, 1980, doi:10.1016/0095-8956(80)90066-0 
  4. 4.0 4.1 Jensen, Per M. (1982), "Complexity of matroid property algorithms", SIAM Journal on Computing 11 (1): 184–190, doi:10.1137/0211014 
  5. 5.0 5.1 Călinescu, Gruia; Fernandes, Cristina G.; Finkler, Ulrich; Karloff, Howard (1998), "A better approximation algorithm for finding planar subgraphs", Journal of Algorithms 27 (2): 269–302, doi:10.1006/jagm.1997.0920 .
  6. 6.0 6.1 Furst, Merrick L.; Gross, Jonathan L.; McGeoch, Lyle A. (1988), "Finding a maximum-genus graph imbedding", Journal of the ACM 35 (3): 523–534, doi:10.1145/44483.44485 
  7. 7.0 7.1 7.2 Ueno, Shuichi; Kajitani, Yoji; Gotoh, Shin'ya (1988), "On the nonseparating independent set problem and feedback set problem for graphs with no vertex degree exceeding three", Discrete Mathematics 72 (1–3): 355–360, doi:10.1016/0012-365X(88)90226-9 
  8. 8.0 8.1 Lee, Jon; Sviridenko, Maxim; Vondrák, Jan (2013), "Matroid matching: the power of local search", SIAM Journal on Computing 42 (1): 357–379, doi:10.1137/11083232X 
  9. Le Gall, François (2014), "Powers of tensors and fast matrix multiplication", Proceedings of the 39th International Symposium on Symbolic and Algebraic Computation (ISSAC 2014), New York: ACM, pp. 296–303, doi:10.1145/2608628.2608664, ISBN 9781450325011 
  10. "Matroid matching via mixed skew-symmetric matrices", Combinatorica 25 (2): 187–215, 2005, doi:10.1007/s00493-005-0013-7 
  11. Brauer, Wilfried, ed. (1985), "Efficient algorithms for graphic matroid intersection and parity (extended abstract)", Automata, Languages and Programming, Lecture Notes in Computer Science, 194, Berlin: Springer, pp. 210–220, doi:10.1007/BFb0015746, ISBN 978-3-540-15650-5 
  12. Speckenmeyer, E. (1986), "Bounds on feedback vertex sets of undirected cubic graphs", Algebra, Combinatorics and Logic in Computer Science, Vol. I, II (Győr, 1983), Colloquia Mathematica Societatis János Bolyai, 42, Amsterdam: North-Holland, pp. 719–729 
  13. Soto, José A. (2014), "A simple PTAS for weighted matroid matching on strongly base orderable matroids", Discrete Applied Mathematics 164 (part 2): 406–412, doi:10.1016/j.dam.2012.10.019