1.

How many unique colors will be required for proper vertex coloring of a line graph having n vertices?(a) 0(b) 1(c) 2(d) nThe question was asked in an interview for internship.My doubt stems from Graph Coloring topic in section Graph Coloring of Data Structures & Algorithms II

Answer» RIGHT choice is (d) n

Easiest explanation - A line graph of a SIMPLE graph is OBTAINED by CONNECTING two vertices with an edge. So the number of unique colors REQUIRED for proper coloring of the graph will be n.


Discussion

No Comment Found

Related InterviewSolutions