Abstract
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) \) 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)\) 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.
Similar content being viewed by others
Notes
Specifically, if the algorithm determines that an input instance is a yes-instance, then this answer is necessarily correct.
References
Abu-Khzam, F.N.: An improved kernelization algorithm for r-set packing. Inf. Process. Lett. 110, 621–624 (2010)
Björklund, A., Husfeldt, T., Kaski, P., Koivisto, M.: Narrow sieves for parameterized paths and packings. J. Comput. Syst. Sci. 87, 119–139 (2017)
Cygan, M., Fomin, F.V., Kowalik, L., Lokshtanov, D., Marx, D., Pilipczuk, M., Pilipczuk, M., Saurabh, S.: Parameterized Algorithms. Springer, Berlin (2015)
Dell, H., Marx, D.: Kernelization of packing problems. In: SODA’12 (2012)
Downey, R.G., Fellows, M.R.: Fundamentals of Parameterized Complexity. Springer, Berlin (2013)
Edmonds, J.: Paths, trees, and flowers. Can. J. Math. 17(3), 449–467 (1965)
Fomin, F.V., Grandoni, F., Kratsch, D.: A measure & conquer approach for the analysis of exact algorithms. J. ACM 56(5), 25:1–25:32 (2009)
Fomin, F.V., Kratsch, D.: Exact Exponential Algorithms. Texts in Theoretical Computer Science. An EATCS Series. Springer, Berlin (2010)
Garey, M.R., Johnson, D.S.: Computers and Intractability: A Guide to the Theory of NP-Completeness. W. H. Freeman, London (1979)
Hopcroft, J.E., Karp, R.M.: An \(n^{5/2}\) algorithm for maximum matchings in bipartite graphs. SIAM J. Comput. 2, 225–231 (1973)
Itai, A., Rodeh, M., Tanimoto, S.L.: Some matching problems for bipartite graphs. J. ACM 25(4), 517–525 (1978)
Kano, M., Li, X.: Monochromatic and heterochromatic subgraphs in edge-colored graphs—a survey. Graphs Comb. 24(4), 237–263 (2008)
Le, V.B., Pfender, F.: Complexity results for rainbow matchings. Theor. Comput. Sci. 524, 27–33 (2014)
Lovász, L., Plummer, M.D.: Matching Theory. American Mathematical Society, Providence (2009)
Micali, S., Vazirani, V.V.: An \(O(\sqrt{|V|} |E|)\) algorithm for finding maximum matching in general graphs. In: 21st Annual Symposium on Foundations of Computer Science, Syracuse, New York, USA, 13–15 October 1980, pp. 17–27 (1980)
Ryser, H.J.: Neuere probleme der kombinatorik. In: Vorträge über Kombinatorik, pp. 69–91. Matematisches Forschungsinstitute, Oberwolfach (1967)
Stockmeyer, L.J., Vazirani, V.V.: NP-completeness of some generalizations of the maximum matching problem. Inf. Process. Lett. 15(1), 14–19 (1982)
Yannakakis, M., Gavril, F.: Edge dominating sets in graphs. SIAM J. Appl. Math. 38(3), 364–372 (1980)
Zehavi, M.: Mixing color coding-related techniques. In: Algorithms—ESA 2015—23rd Annual European Symposium, Patras, Greece, September 14–16, 2015, Proceedings, Volume 9294 of Lecture Notes in Computer Science, pp. 1037–1049 (2015)
Author information
Authors and Affiliations
Corresponding author
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
The preliminary version of this paper has appeared in MFCS 2017.
Rights and permissions
About this article
Cite this article
Gupta, S., Roy, S., Saurabh, S. et al. Parameterized Algorithms and Kernels for Rainbow Matching. Algorithmica 81, 1684–1698 (2019). https://doi.org/10.1007/s00453-018-0497-3
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00453-018-0497-3