GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2026 set1

GATE 2026 set1 · CS · MSQ · 2 marks · Algorithms › Graph Algorithms

GATE 2026 set1 Computer Science and Information Technology question: An undirected, unweighted, simple graph G(V, E) is said to be 2-colorable if there…

An undirected, unweighted, simple graph is said to be 2-colorable if there exists a function such that for every , .

Which of the following statements about 2-colorable graphs is/are true?

  1. (A)

    If is 2-colorable, then may contain cycles of odd length

  2. (B)

    If is 2-colorable, then may contain cycles of even length

  3. (C)

    An optimal algorithm for testing whether is 2-colorable runs in time , if is represented as an adjacency list

  4. (D)

    An optimal algorithm for testing whether is 2-colorable runs in time , if is represented as an adjacency list

Show answer

This question is in an all-India live mock that is open now. Its answer appears here when the mock closes.

Practise this question with exam-style marking