GATE CS 2026, set 1 · Question 55 · Engineering Mathematics · Multiple select (MSQ) · 2 marks · no negative marks

An undirected, unweighted, simple graph G(V,E) is said to be 2-colorable if there exists a function c: V → {0, 1} such that for every (u, v) ∈ E, c(u) ≠ c(v).
Which of the following statements about 2-colorable graphs is/are true?

  1. (A) If G is 2-colorable, then G may contain cycles of odd length
  2. (B) If G is 2-colorable, then G may contain cycles of even length
  3. (C) An optimal algorithm for testing whether G is 2-colorable runs in time Θ(|V| + |E|), if G is represented as an adjacency list
  4. (D) An optimal algorithm for testing whether G is 2-colorable runs in time Θ(|E| log |V|), if G is represented as an adjacency list
Answer

Answer (B), (C)

Answer from the official GATE CS 2026 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes