All mock tests are FREE till 31 December — register to save your progress

Consider the following statements:

(A) Any tree is 2-colorable

(B) A graph G has no cycles of even length if it is bipartite.

(C) A graph G is 2-colorable if it is bipartite.

(D) A graph G can be colored with d+1 colors if d is the maximum degree of any vertex in the graph G.

(E) A graph G can be colored with O(log∣v∣) colors if it has O(∣v∣) edges.

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: C. (B) and (E) are incorrect

Explanation

Trees and bipartite graphs are 2-colourable (A, C true), and greedy colouring uses at most d + 1 colours (D true). Bipartite graphs have no odd cycles — even cycles are allowed — so B is wrong. A graph with O(|V|) edges can still contain a large clique, so E is wrong.

More Discrete Structures and Optimisation questions