Question

Discrete Math: Please help with all parts of question 5. I have included problem 3 to help answer part (a) but I only need help with question 5!

5.

(a) (4 points) Prove that a graph is bipartite if and only if there is a 2-coloring (see problem 3) of its vertices. (b) (4 p

(c) (1 point) Parts (a) and (b) together imply that every tree is bipartite. Show that the converse is false, i.e., draw a bi

3.

x) (4 points) If k is a positive integer, a k-coloring of a graph G is an assignment of one of k possible colors to each of t

0 0
Add a comment Improve this question Transcribed image text
Answer #1

K-Colorable Graph : A graph G is said to be K-Colorable if G has K-coloring of a graph.

5) (a) Prove that a graph G is bipartite if and only if there is a 2-coloring of its vertices.

Answer of 5 (a):

Suppose G is 2-Colorable.

First to prove that G is bipartite.

i.e. we have to partition the vertex set V(G) into two sets V_{1} and V_{2} such that G<V_{1}> = \phi and G<V_{2}> = \phi

Let C_{1} and C_{2} be two colors used to color graph G.

Let V_{1} be the set of all the vertices of G which receives the color C_{1} and V_{2} be the set of all the vertices of G which receives the color C_{2}.

\thereforeV_{1} and V_{2} is a bi-partition of the vertex set of G also there is no edge between any two vertices of V_{1} and V_{2} since they are of same color.

\therefore V(G)=V_{1}\cup V_{2} and \therefore V_{1}\cap V_{2}=\phi also  G<V_{1}> = \phi and G<V_{2}> = \phi

\Rightarrow G is bipartite graph.

Now conversely suppose G is bipartite graph.

Let V_{1} and V_{2} be the vertex set of G such that V(G)=V_{1}\cup V_{2}   and V_{1}\cap V_{2}=\phi    also  G<V_{1}> = \phi and G<V_{2}> = \phi

Now assign the color C_{1} to all the vertices of the set V_{1} and color C_{2} to all the vertices of set V_{2}

Thus all the vertices of graph G are colored using only two colors.

\Rightarrow G is 2-colorable.

Thus a graph G is bipartite if and only if there is a 2-coloring of its vertices.

5) (b) Prove that if a graph is a tree with at least two vertices, then there is a 2-coloring of its vertices.

Answer of 5 (b):

I will prove this using the 2nd Hint given in the problem.

We will make the tree as rooted tree.

Let T(V,E) be tree with at least two vertices.

V be the vertex as V = {v1, v2, v3, . . . vp} and E be the set of edges as E ={e1, e2, e3, . . . eq}

The image of the rooted tree as follows:

level o Vi ぐ level 2 У, is colored by c) Co lour by colour cLet v1 be the root of the tree which is at the level 0. This vertex v1 can be coloured by using color C1. Now in the next level, vertices are adjacent to vertex v1. Hence we cannot color them using color C1. But the vertices at level 1 are not adjacent to themselves. Hence we can color them using a single color say C2. So suppose all the vertices at level 1 are colored using color C2.

Similarly the vertices at the level 2 are adjacent to vertices at level 1. Thus they cannot be coloured using colour C2. But those are not adjacent with the vertices at level 2 and also with the vertices at level 0. Thus the vertices at level 2 can be colored using the color C1.

Thus alternatively we can color the vertices of a tree by color C1 or color C2.

Thus if a graph is a tree with at least two vertices, then there is a 2-coloring of its vertices.

​​​​​​​5) (c) Parts (a) and (b) together imply that every tree is bipartite. Show that the converse is false. i.e. draw a bipartite graph that is not a tree.

Answer of 5 (c):

Yes parts (a) and (b) together imply that every tree is bipartite graph. To show that the converse is false we have to give an example of a bipartite graph which is not a tree.

The example is as follows.

2 3 3 ,& V2 are colored by red oloreo by qreenGraph G is bipartite graph because we can bipartite its vertex set V = {v1, v2, v3, v4} in two sets V_{1} and V_{2} as follows.

V_{1} =\left \{ v_{1}, v_{2} \right \} and V_{2} =\left \{ v_{3}, v_{4} \right \} also G<V_{1}> = \phi and G<V_{2}> = \phi

but it is not a tree because it contains a cycle.

Add a comment
Know the answer?
Add Answer to:
Discrete Math: Please help with all parts of question 5. I have included problem 3 to...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT