Question

Let GG be a simple, finite, undirected graph with vertex set {v1,…,vn}\{v_1, \dots, v_n\}. Let Δ(G)\Delta(G) denote the maximum degree of GG and let N={1,2,… }\mathbb{N} = \{1, 2, \dots\} denote the set of all possible colors. Color the vertices of GG using the following greedy strategy:

for i=1,…,n:color(vi)←min⁡{j∈N:no neighbour of vi is colored j}\text{for } i = 1, \dots, n: \quad \text{color}(v_i) \leftarrow \min \{j \in \mathbb{N} : \text{no neighbour of } v_i \text{ is colored } j\}

Which of the following statements is/are TRUE?

Choose every correct option
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.

  1. Proper Coloring: At step ii, vertex viv_i is assigned the minimum color j∈Nj \in \mathbb{N} that is not assigned to any already-colored neighbour of viv_i. By construction, no two adjacent vertices receive the same color. Thus, the procedure produces a valid, proper vertex coloring (Statement A is TRUE).

  2. Maximum Colors Used: Every vertex viv_i has at most Δ(G)\Delta(G) neighbours in GG, so at most Δ(G)\Delta(G) distinct colors can be forbidden when choosing a color for viv_i. In the set of colors {1,2,…,Δ(G)+1}\{1, 2, \dots, \Delta(G) + 1\}, at least one color is guaranteed to be available by the Pigeonhole Principle. Hence the greedy algorithm never uses more than Δ(G)+1\Delta(G) + 1 colors (Statement B is TRUE).

  3. Statements C and D: For complete graphs KnK_n, χ(Kn)=Δ+1=n\chi(K_n) = \Delta + 1 = n, so ≤Δ\le \Delta 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 χ(G)\chi(G) (D is FALSE).

Final answer

Options (A, B)

Common trap

Believing greedy coloring is optimal and achieves the chromatic number χ(G)\chi(G) 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.