December2015 Cs Q4

0. Consider the graph given below:

The two distinct sets of vertices, which make the graph bipartite are:

  • Option : C
  • Explanation :
    A simple graph G=(V,E) is called bipartite if its vertex set can be partitioned into two disjoint subsets V=V1⋃V2, such that every edge has the form e=(a,b) where aϵV1 and bϵV2.
    Bipartite graphs are equivalent to two-colorable graphs.
    1. Assign Red color to the source vertex (putting into set V1).
    2. Color all the neighbours with Black color (putting into set V2).
    3. Color all neighbour’s neighbour with Red color (putting into set V1).
    4. This way, assign color to all vertices such that it satisfies all the constraints of m way coloring problem where m = 2.
    5. While assigning colors, if we find a neighbour which is colored with same color as current vertex, then the graph cannot be colored with 2 colors (ie., graph is not Bipartite).
    So answer is option (C).
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *