Checking Graph Colorability: How Many Colors are Needed?

  • Level: Undergrad 
  • Thread starter zetafunction
  • Start date
  • Tags Tags
    Graph
1 reply · 2K views · last reply
zetafunction
Messages
371
Reaction score
0
given a bipartite graph , how do i know that two colors are enough to paint it ??

another question given a general graph , how do i know how many colors do i need to color it

of course in any case there can not be adjacent colors in vertices
 
1) Because it is bipartite - look at the definition of bipartite

2) Computing the chromatic number is NP-complete, so in general you don't know if it can be coloured with k colours by any cheap calculation.