Question
Let be a simple, finite, undirected graph with vertex set . Let denote the maximum degree of and let denote the set of all possible colors. Color the vertices of using the following greedy strategy:
Which of the following statements is/are TRUE?
Official answer and solution
- Official answer
- A and B
- From
- Official GATE 2023 answer key
Solution
Analyze the properties of the greedy vertex coloring algorithm.
-
Proper Coloring: At step , vertex is assigned the minimum color that is not assigned to any already-colored neighbour of . By construction, no two adjacent vertices receive the same color. Thus, the procedure produces a valid, proper vertex coloring (Statement A is TRUE).
-
Maximum Colors Used: Every vertex has at most neighbours in , so at most distinct colors can be forbidden when choosing a color for . In the set of colors , at least one color is guaranteed to be available by the Pigeonhole Principle. Hence the greedy algorithm never uses more than colors (Statement B is TRUE).
-
Statements C and D: For complete graphs , , so does not hold in general (C is FALSE). Furthermore, greedy coloring depends heavily on vertex ordering and can use more colors than the optimal chromatic number (D is FALSE).
Options (A, B)
Believing greedy coloring is optimal and achieves the chromatic number for all graphs.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2023 Computer Science and Information Technology (CS)
- Question
- 55 of 65
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.