1.

What is the condition for proper coloring of a graph?(a) two vertices having a common edge should not have same color(b) two vertices having a common edge should always have same color(c) all vertices should have a different color(d) all vertices should have same colorThe question was asked during an online interview.I would like to ask this question from Graph Coloring in portion Graph Coloring of Data Structures & Algorithms II

Answer»

Right answer is (a) two vertices having a common EDGE should not have same COLOR

Best explanation: The condition for proper COLORING of graph is that two vertices which SHARE a common edge should not have the same color. If it uses k colors in the process then it is CALLED k coloring of graph.



Discussion

No Comment Found

Related InterviewSolutions