TOPICS
Search

Color Coding


Color coding is a randomized algorithmic technique introduced by Alon et al. (1995) for finding and counting small subgraphs in a graph. It randomly colors the vertices of a graph and then searches for a copy of the desired subgraph whose vertices all receive distinct colors.

The method is especially useful for detecting simple paths and cycles of a specified length. A derandomized version can be obtained using families of perfect hash functions (Alon et al. 1995).


See also

Colorful Cycle, Graph Coloring, Graph Cycle, Vertex-Colored Graph

Explore with Wolfram|Alpha

References

Alon, N.; Yuster, R.; and Zwick, U. "Color-Coding." J. ACM 42, 844-856, 1995. https://doi.org/10.1145/210332.210337.Alon, N.; Yuster, R.; and Zwick, U. "Finding and Counting Given Length Cycles." Algorithmica 17, 209-223, 1997.

Cite this as:

Weisstein, Eric W. "Color Coding." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/ColorCoding.html

Subject classifications