Abstract
This paper resolves a significant open question in graph theory by proving that determining if a graph has a rainbow connection number $rc(G) \le k$ is NP-complete for all odd $k \ge 3$. The authors further explore the complexity of strong rainbow connectivity on bipartite graphs and directed graphs, establishing hardness results across these classes. Additionally, the paper presents a fixed-parameter tractable (FPT) algorithm for a maximization version of the 2-color rainbow connectivity problem, providing a $4k$ vertex kernel for connecting $k$ non-adjacent pairs.
Introduction
Rainbow connectivity is a concept in graph theory where edges are colored such that every pair of vertices is connected by at least one "rainbow path"—a path where no two edges share the same color. The minimum number of colors required to achieve this is the rainbow connection number, $rc(G)$. A related metric, the strong rainbow connection number $src(G)$, requires a rainbow path to be a shortest path (geodesic) between the vertices. This problem has practical applications in secure message routing for cellular networks.
Complexity of Rainbow Connectivity
Prior to this research, the complexity of deciding $rc(G) \le k$ for odd $k$ was a notable open problem, as only the even case had been established. The authors resolve this by employing reduction techniques from known NP-hard problems like 3-SAT and Vertex Coloring.
As illustrated in Figure 1, the proof for odd $k$ involves constructing intricate graph gadgets. These structures allow the authors to transform instances of subset rainbow connectivity into general rainbow connectivity problems. Beyond general graphs, the research demonstrates that strong rainbow connectivity remains NP-complete even on bipartite graphs, and that the problem is hard for directed graphs even when $k=2$. Furthermore, the paper proves that $src(G)$ is NP-hard to approximate within a factor of $n^{1/2-\epsilon}$, suggesting that heuristic approaches may struggle to find near-optimal solutions.
Parameterized Complexity and Kernelization
Despite the general hardness of these problems, the authors identify tractable instances through parameterized complexity. They focus on a maximization variant: given a graph and two colors, can we rainbow-connect at least $|E| + k$ pairs?
The paper proves this problem is Fixed-Parameter Tractable (FPT) by providing a kernelization algorithm. Specifically, they show that any instance can be reduced to a "kernel" of at most $4k$ vertices. This means that if one wishes to connect $k$ non-adjacent pairs, they only need to analyze a subgraph of size $4k$ to find the answer, allowing for efficient computation when $k$ is relatively small.
Conclusion and Future Work
The authors have successfully mapped the complexity landscape of rainbow connectivity, particularly for the previously elusive odd $k$ cases. While finding the exact rainbow connection number is hard to even approximate, the discovery of a linear kernel for the maximization variant offers a path forward for practical applications. Future research directions include investigating better approximation algorithms for $rc(G)$ and exploring the problem's complexity on restricted graph classes such as planar graphs or graphs with bounded treewidth.
Summary updated