Questions: Bipartite Graphs and 2-Colorability

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

You run a BFS coloring algorithm on a graph: start at vertex A, color it red, and alternate colors as you traverse edges. At some point you find an edge connecting two vertices that would both need to be colored red. What does this tell you about the graph?

AThe graph is bipartite with an unusual structure requiring more than 2 colors
BThe graph contains an odd-length cycle and is therefore not bipartite
CThe graph contains an even-length cycle which prevents proper 2-coloring
DThe BFS coloring algorithm failed — restart from a different vertex
Question 2 Multiple Choice

A graph has vertices {1, 2, 3, 4} and edges {1-2, 2-3, 3-4, 4-1}, forming a 4-cycle. Is this graph bipartite?

ANo — any cycle graph is non-bipartite
BYes — color {1, 3} red and {2, 4} blue; no two adjacent vertices share a color
CNo — the graph has an even number of vertices but an odd number of edges
DYes — but only because the graph has exactly four vertices
Question 3 True / False

A graph is bipartite if and only if it contains no odd-length cycles.

TTrue
FFalse
Question 4 True / False

A complete graph on 4 vertices (K4) is bipartite because its vertex set can be split into two groups of 2.

TTrue
FFalse
Question 5 Short Answer

Why do odd-length cycles prevent a graph from being 2-colored, while even-length cycles do not?

Think about your answer, then reveal below.