Skip to main content

Color Coding

  • Reference work entry
  • First Online:

Years and Authors of Summarized Original Work

  • 1995; Alon, Yuster, Zwick

Problem Definition

Color coding [2] is a novel method used for solving, in polynomial time, various subcases of the generally NP-Hard subgraph isomorphism problem. The input for the subgraph isomorphism problem is an ordered pair of (possibly directed) graphs (G,H). The output is either a mapping showing that H is isomorphic to a (possibly induced) subgraph of G, or false if no such subgraph exists. The subgraph isomorphism problem includes, as special cases, the HAMILTON-PATH, CLIQUE, and INDEPENDENT SET problems, as well as many others. The problem is also interesting when H is fixed. The goal, in this case, is to design algorithms whose running times are significantly better than the running time of the naïve algorithm.

Method Description

The color coding method is a randomized method. The vertices of the graph \( { G = (V,E) } \) in which a subgraph isomorphic to \( { H = (V_H,E_H) } \)is sought are randomly...

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   1,599.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD   1,999.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Recommended Reading

  1. Alon N, Goldreich O, Håstad J, Peralta R (1992) Simple constructions of almost k-wise independent random variables. Random Struct Algorithms 3(3):289–304

    Article  MathSciNet  MATH  Google Scholar 

  2. Alon N, Yuster R, Zwick U (1995) Color coding. J ACM 42:844–856

    Article  MathSciNet  MATH  Google Scholar 

  3. Alon N, Yuster R, Zwick U (1997) Finding and counting given length cycles. Algorithmica 17(3):209–223

    Article  MathSciNet  MATH  Google Scholar 

  4. Björklund A, Husfeldt T (2003) Finding a path of superlogarithmic length. SIAM J Comput 32(6):1395–1402

    Article  MathSciNet  MATH  Google Scholar 

  5. Chen J, Lu S, Sze S, Zhang F (2007) Improved algorithms for path, matching, and packing problems. In: Proceedings of the 18th ACM-SIAM symposium on discrete algorithms (SODA), pp 298–307

    Google Scholar 

  6. Eppstein D (1999) Subgraph isomorphism in planar graphs and related problems. J Graph Algorithms Appl 3(3):1–27

    Google Scholar 

  7. Fellows MR (2003) New directions and new challenges in algorithm design and complexity, parameterized. In: Lecture notes in computer science, vol 2748, pp 505–519

    Google Scholar 

  8. Flum J, Grohe M (2004) The parameterized complexity of counting problems. SIAM J Comput 33(4):892–922

    Article  MathSciNet  MATH  Google Scholar 

  9. Fredman ML, Komlós J, Szemerédi E (1984) Storing a sparse table with O(1) worst case access time. J ACM 31:538–544

    Article  MathSciNet  MATH  Google Scholar 

  10. Hüffner F, Wernicke S, Zichner T (2007) Algorithm engineering for color coding to facilitate signaling pathway detection. In: Proceedings of the 5th Asia-Pacific bioinformatics conference (APBC), pp 277–286

    Google Scholar 

  11. Monien B (1985) How to find long paths efficiently. Ann Discret Math 25:239–254

    MathSciNet  MATH  Google Scholar 

  12. Naor J, Naor M (1993) Small-bias probability spaces: efficient constructions and applications. SIAM J Comput 22(4):838–856

    Article  MathSciNet  MATH  Google Scholar 

  13. Papadimitriou CH, Yannakakis M (1996) On limited nondeterminism and the complexity of the V-C dimension. J Comput Syst Sci 53(2):161–170

    Article  MathSciNet  MATH  Google Scholar 

  14. Plehn J, Voigt B (1990) Finding minimally weighted subgraphs. Lect Notes Comput Sci 484:18–29

    Article  MathSciNet  MATH  Google Scholar 

  15. Robertson N, Seymour P (1986) Graph minors. II. Algorithmic aspects of tree-width. J Algorithms 7:309–322

    Article  MathSciNet  MATH  Google Scholar 

  16. Schmidt JP, Siegel A (1990) The spatial complexity of oblivious k-probe hash functions. SIAM J Comput 19(5):775–786

    Article  MathSciNet  MATH  Google Scholar 

  17. Scott J, Ideker T, Karp RM, Sharan R (2006) Efficient algorithms for detecting signaling pathways in protein interaction networks. J Comput Biol 13(2):133–144

    Article  MathSciNet  MATH  Google Scholar 

  18. Sharan R, Ideker T (2006) Modeling cellular machinery through biological network comparison. Nat Biotechnol 24:427–433

    Article  Google Scholar 

  19. Shlomi T, Segal D, Ruppin E, Sharan R (2006) QPath: a method for querying pathways in a protein-protein interaction network. BMC Bioinform 7:199

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Noga Alon .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2016 Springer Science+Business Media New York

About this entry

Cite this entry

Alon, N., Yuster, R., Zwick, U. (2016). Color Coding. In: Kao, MY. (eds) Encyclopedia of Algorithms. Springer, New York, NY. https://doi.org/10.1007/978-1-4939-2864-4_76

Download citation

Publish with us

Policies and ethics