00:06
Alright, so the question is about bipartite graph.
00:14
So what is a bipartite graph? so let me begin by giving the definition.
00:27
A simple graph is called bipartite if the vertex set v can be partitioned into two disjoint sets v1, and v2 such that every edge in v1 sorry every edge in the graph connects a vertex in v1 so that so so that no age in g which is my graph connects either two vertices or in v1 or two vertices in v2 this means that you can separate the graph into so you can separate the set of vertices into two disjoint pieces so that you can have graphs so any two points is a graph between points here but you cannot have this is allowed but you cannot have let's say this is a this is b this is c this is d e and f then you you can have you don't have any adjust between a b or bc or ac and similarly you cannot have any but any wages between d -e d -f or ef so this is my v1 and this is my v2 this is a discharge participant now of course it's always difficult to to see why to see if when a graph is bypartite by the very definition itself so therefore what we're going to do is we are going to use a theorem the theorem says that a simple graph is bipartite if and only if it is possible to assign one of two different colors to each vertex of the graph so that no two adjacent vertices assign the same color.
04:11
So this means that you start out, you name any two of your favorite colors and then you start out by giving a color to each vertex.
04:20
Just keeping in mind that you cannot assign the same color to adjacent vertices.
04:25
Now if you keep on doing this, now at some point will come if you can complete the graph by this process or you may have to assign two adjacent vertices the same color.
04:36
If you are, if it is the later then the graph is not bipartite and this is an even only condition.
04:40
So let me give an example which is the question number 21 in the book.
04:46
This is very simple thing is a is joined to a vertex d here and there is another vertex here and this is b and this is c.
04:59
Now i'm going to choose my favorite colors.
05:02
So i'll choose red and blue and then assign stat assigning colors to the vertices.
05:08
So let's start with a i'll assign a red here...