Parameterized Algorithms and Kernels for Rainbow Matching

In this paper, we study the NP-complete colorful variant of the classical Matching problem, namely, the Rainbow Matching problem. Given an edge-colored graph G and a positive integer k, this problem asks whether there exists a matching of size at least k such that all the edges in the matching have distinct colors. We first develop a deterministic algorithm that solves Rainbow Matching on paths in time $$\mathcal{O}^\star \left( \left( \frac{1+\sqrt{5}}{2}\right) ^k\right) $$O⋆1+52k and polynomial space. This algorithm is based on a curious combination of the method of bounded search trees and a “divide-and-conquer-like” approach, where the branching process is guided by the maintenance of an auxiliary bipartite graph where one side captures “divided-and-conquered” pieces of the path. Our second result is a randomized algorithm that solves Rainbow Matching on general graphs in time $$\mathcal {O} ^\star (2^k)$$O⋆(2k) and polynomial-space. Here, we show how a result by Björklund et al. (J Comput Syst Sci 87:119–139, 2017) can be invoked as a black box, wrapped by a probability-based analysis tailored to our problem. We also complement our two main results by designing kernels for Rainbow Matching on general and bounded-degree graphs.

[1]  Fedor V. Fomin,et al.  Exact exponential algorithms , 2013, CACM.

[2]  Mihalis Yannakakis,et al.  Edge Dominating Sets in Graphs , 1980 .

[3]  Dániel Marx,et al.  Kernelization of packing problems , 2012, SODA.

[4]  Van Bang Le,et al.  Complexity results for rainbow matchings , 2013, Theor. Comput. Sci..

[5]  Alon Itai,et al.  Some Matching Problems for Bipartite Graphs , 1978, JACM.

[6]  David S. Johnson,et al.  Computers and In stractability: A Guide to the Theory of NP-Completeness. W. H Freeman, San Fran , 1979 .

[7]  Alon Itai,et al.  Two-Commodity Flow , 1978, JACM.

[8]  Faisal N. Abu-Khzam,et al.  An improved kernelization algorithm for r-Set Packing , 2010, Inf. Process. Lett..

[9]  Michael R. Fellows,et al.  Review of: Fundamentals of Parameterized Complexity by Rodney G. Downey and Michael R. Fellows , 2015, SIGA.

[10]  Meirav Zehavi Mixing Color Coding-Related Techniques , 2015, ESA.

[11]  Richard M. Karp,et al.  A n^5/2 Algorithm for Maximum Matchings in Bipartite Graphs , 1971, SWAT.

[12]  J. Edmonds Paths, Trees, and Flowers , 1965, Canadian Journal of Mathematics.

[13]  Michal Pilipczuk,et al.  Parameterized Algorithms , 2015, Springer International Publishing.

[14]  David S. Johnson,et al.  Computers and Intractability: A Guide to the Theory of NP-Completeness , 1978 .

[15]  Vijay V. Vazirani,et al.  NP-Completeness of Some Generalizations of the Maximum Matching Problem , 1982, Inf. Process. Lett..

[16]  Xueliang Li,et al.  Monochromatic and Heterochromatic Subgraphs in Edge-Colored Graphs - A Survey , 2008, Graphs Comb..

[17]  Fabrizio Grandoni,et al.  Some New Techniques in Design and Analysis of Exact (Exponential) Algorithms , 2005, Bull. EATCS.

[18]  Andreas Björklund,et al.  Narrow sieves for parameterized paths and packings , 2010, J. Comput. Syst. Sci..

[19]  Fabrizio Grandoni,et al.  A measure & conquer approach for the analysis of exact algorithms , 2009, JACM.

[20]  Silvio Micali,et al.  An O(v|v| c |E|) algoithm for finding maximum matching in general graphs , 1980, 21st Annual Symposium on Foundations of Computer Science (sfcs 1980).