Chapter 3: Q7E (page 107)
A bipartite graph is a graph
(a) Give a linear-time algorithm to determine whether an undirected graph is bipartite.
(b) There are many other ways to formulate this property. For instance, an undirected graph is bipartite if and only if it can be colored with just two colors. Prove the following formulation:
an undirected graph is bipartite if and only if it contains no cycles of odd length.
(c) At most how many colors are needed to color in an undirected graph with exactly one odd length?
Short Answer
(a) A linear-time algorithm to determine whether an undirected graph is bipartite is proved.
(b) An undirected graph is bipartite if and only if it is colored with just two colors. An undirected graph is bipartite if and only if it contains no cycles of odd length is proved.
(c) At most three colors are needed to color in an undirected graph with exactly one odd length.