186 research outputs found

    On the fine-grained complexity of rainbow coloring

    Get PDF
    The Rainbow k-Coloring problem asks whether the edges of a given graph can be colored in kk colors so that every pair of vertices is connected by a rainbow path, i.e., a path with all edges of different colors. Our main result states that for any k2k\ge 2, there is no algorithm for Rainbow k-Coloring running in time 2o(n3/2)2^{o(n^{3/2})}, unless ETH fails. Motivated by this negative result we consider two parameterized variants of the problem. In Subset Rainbow k-Coloring problem, introduced by Chakraborty et al. [STACS 2009, J. Comb. Opt. 2009], we are additionally given a set SS of pairs of vertices and we ask if there is a coloring in which all the pairs in SS are connected by rainbow paths. We show that Subset Rainbow k-Coloring is FPT when parameterized by S|S|. We also study Maximum Rainbow k-Coloring problem, where we are additionally given an integer qq and we ask if there is a coloring in which at least qq anti-edges are connected by rainbow paths. We show that the problem is FPT when parameterized by qq and has a kernel of size O(q)O(q) for every k2k\ge 2 (thus proving that the problem is FPT), extending the result of Ananth et al. [FSTTCS 2011]

    Computing Minimum Rainbow and Strong Rainbow Colorings of Block Graphs

    Get PDF
    A path in an edge-colored graph GG is rainbow if no two edges of it are colored the same. The graph GG is rainbow-connected if there is a rainbow path between every pair of vertices. If there is a rainbow shortest path between every pair of vertices, the graph GG is strongly rainbow-connected. The minimum number of colors needed to make GG rainbow-connected is known as the rainbow connection number of GG, and is denoted by rc(G)\text{rc}(G). Similarly, the minimum number of colors needed to make GG strongly rainbow-connected is known as the strong rainbow connection number of GG, and is denoted by src(G)\text{src}(G). We prove that for every k3k \geq 3, deciding whether src(G)k\text{src}(G) \leq k is NP-complete for split graphs, which form a subclass of chordal graphs. Furthermore, there exists no polynomial-time algorithm for approximating the strong rainbow connection number of an nn-vertex split graph with a factor of n1/2ϵn^{1/2-\epsilon} for any ϵ>0\epsilon > 0 unless P = NP. We then turn our attention to block graphs, which also form a subclass of chordal graphs. We determine the strong rainbow connection number of block graphs, and show it can be computed in linear time. Finally, we provide a polynomial-time characterization of bridgeless block graphs with rainbow connection number at most 4.Comment: 13 pages, 3 figure
    corecore