Structural Complexity of Matching-Match: Dense and Sparse Graphs
Abstract
The Matching-Match puzzle asks whether the vertices of a fixed graph can be colored so that the multiset of color pairs induced by its edges is exactly a prescribed multiset. We study how the complexity of this realization problem depends on the host graph. On the dense side, we give a polynomial-time algorithm for complete -partite graphs for every fixed number of parts, with arbitrary precoloring and an arbitrary number of colors. We prove a sharp complement-degree threshold: the problem is polynomial-time solvable when , but NP-complete on completely uncolored graphs already when . This yields a dichotomy for uniform complete multipartite graphs, and connected diameter two already suffices for NP-completeness. We also prove W[1]-hardness on cographs parameterized by the number of colors. On the sparse side, completely uncolored paths and cycles admit a linear-time characterization by Euler trails and circuits, while counting feasible colorings is -complete on both classes. Counting is nevertheless polynomial-time solvable on stars and complete graphs, even with arbitrary precoloring. A decomposition-transfer theorem yields NP-completeness already at tree-depth two. A separate path-decomposition reduction gives a maximum-degree threshold between one and two for completely uncolored disconnected host graphs with unrestrictedly many colors. Components with at most two edges are tractable, while a disjoint union of 's is NP-complete. Finally, precoloring restores tractability in several cases: star forests are polynomial when every center is precolored, and two broad precoloring regimes on length-two spiders are polynomial even when the number of colors is unbounded.
Create a lesson
Related papers
Improved Bounds for Directed SSSP in Sparse and Intermediate-Density Graphs
Shared title terminology · Valery, Grishin, Aryeh Lev Zabokritskiy
Subexponential algorithms for structural parameterizations of Vertex Cover in geometric graphs
Shared title terminology · Marin Bougeret, Juan Pablo Bravo, Daniel Gonçalves
Tight Quantum Query Bounds for Minimum Cut and Multicut on Dense Graphs
Shared title terminology · Tianhang Lu, Runtian Ren, Shengcai Liu
Faster Algorithms for Finding Small Induced Patterns in Sparse Host Graphs
Shared title terminology · Priyanshi Agrawal, Balagopal Komarath
A Quantum Scaling Algorithm for Maximum-Weight Perfect Matching in General Graphs
Shared title terminology · Kourosh Mirsohi, Sandy Irani, Michael T. Goodrich
Query Complexity of Testing Structured Parenthesis Languages
Shared title terminology · Tim Jackman, Diptaksho Palit, Sofya Raskhodnikova