Rainbow coloring

Rainbow coloring of a wheel graph, with three colors. Every two non-adjacent vertices can be connected by a rainbow path, either directly through the center vertex (bottom left) or by detouring around one triangle to avoid a repeated edge color (bottom right).

In graph theory, a path in an edge-colored graph is said to be rainbow if no color repeats on it. A graph is said to be rainbow colored if there is a rainbow path between each pair of its vertices. If there is a rainbow shortest path between each pair of vertices, the graph is said to be strong rainbow colored.[1]

Definitions and bounds

The rainbow connection number of a graph G is the minimum number of colors needed to rainbow color G, and is denoted by \text{rc}(G). Similarly, the strong rainbow connection number of a graph G is the minimum number of colors needed to strong rainbow color G, and is denoted by \text{src}(G). Clearly, each strong rainbow coloring is also a rainbow coloring, while the converse is not true in general.

It is easy to observe that to rainbow color any connected graph G, we need at least \text{diam}(G) colors, where \text{diam}(G) is the diameter of G (i.e. the length of the longest shortest path). On the other hand, we can never use more than m colors, where m denotes the number of edges in G. Finally, because each strong rainbow colored graph is rainbow colored, we have that \text{diam}(G) \leq \text{rc}(G) \leq \text{src}(G) \leq m.

The following are the extremal cases:[1]

The above shows that in terms of the number of vertices, the upper bound \text{rc}(G) \leq n - 1 is the best possible in general. When G is 2-connected, we have that \text{rc}(G) \leq \lceil n/2 \rceil.[2] Moreover, this is tight as witnessed by e.g. odd cycles.

Exact rainbow or strong rainbow connection numbers

The rainbow or the strong rainbow connection number has been determined for some structured graph classes:

Complexity

The problem of deciding whether \text{rc}(G) = 2 for a given graph G is NP-complete.[3] Because \text{rc}(G) = 2 if and only if \text{src}(G) = 2,[1] it follows that deciding if \text{src}(G) = 2 is NP-complete for a given graph G.

Variants and generalizations

Krivelevich and Yuster generalized the concept of rainbow connection to the vertex version.[4] The rainbow vertex-connection number of a graph G is the minimum number of colors needed to color G such that for each pair of vertices, there is a path connecting them whose internal vertices are assigned distinct colors, and is denoted by \text{rvc}(G).

Chartrand, Okamoto and Zhang[5] generalized the rainbow connection number as follows. Let G be an edge-colored nontrivial connected graph of order n. A tree T is a rainbow tree if no two edges of T are assigned the same color. Let k be a fixed integer with 2 \leq k \leq n. An edge coloring of G is called a k-rainbow coloring if for every set S of k vertices of G, there is a rainbow tree in G containing the vertices of S. The k-rainbow index \text{rx}_k(G) of G is the minimum number of colors needed in a k-rainbow coloring of G. A k-rainbow coloring using \text{rx}_k(G) colors is called a minimum k-rainbow coloring. Thus \text{rx}_2(G) is the rainbow connection number of G.

See also

Notes

References

This article is issued from Wikipedia - version of the Tuesday, April 26, 2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.