Proof: If a Graph has no Odd Cycles then it is Bipartite | Graph Theory, Bipartite Theorem

  Рет қаралды 35,091

Wrath of Math

5 жыл бұрын

A graph has no odd cycles if and only if it is bipartite. One direction, if a graph is bipartite then it has no odd cycles, is pretty easy to prove. The other direction, if a graph has no odd cycles then it is bipartite, is quite a bit harder to prove! In this video, we focus on the difficult direction! In this video math lesson we prove that if a graph has no odd cycles then it is bipartite!
This is a wonderful theorem that I love because it is not obviously true, and so a proof of it is very fascinating! There are several proofs of this theorem, as there are with most any theorem, and there is a shorter proof than this one that I have seen. But I think this proof is more straightforward, so I offer it in this video, and maybe we'll go over a different proof another time. Also, we'll go over the other direction in another lesson as well, but try to prove it yourself!
In this proof, we use the definition of bipartite, and we use an argument by contradiction. We partition the vertex set of our graph into a set of vertices that are an even distance away from a particular vertex, and a set of vertices that are an odd distance away from that particular vertex. Then we assume for the sake of contradiction that this is not a bipartite partitioning, and we find that this forces a contradiction! It's a great proof, so I hope you enjoy this lesson!
So, if you want to know if a graph is bipartite, one way you can check is by checking to see if it has any odd cycles. If it has no odd cycles, then we can say with absolute certainty that it is bipartite! Another theorem we use, right at the beginning of the proof, is that a graph is bipartite if and only if all of its connected components are bipartite. Try proving this yourself if you're not familiar with it, it's pretty straightforward! This theorem allows us to focus our proof only on connected graphs, because as long as we can prove a graph's connected components are bipartite, we have proved the whole graph is bipartite!
I hope you find this video helpful, and be sure to ask any questions down in the comments!
I am playing a song I wrote at the end, and it does not have a name yet.
+WRATH OF MATH+
◆ Support Wrath of Math on Patreon: www.patreon.com/wrathofmathlessons
Follow Wrath of Math on...
● Instagram: wrathofmathedu
● Facebook: WrathofMath
● Twitter: wrathofmathedu
My Music Channel: kzbin.info

Пікірлер: 95
@WrathofMath
@WrathofMath Ай бұрын
Support the production of this course by joining Wrath of Math as a Channel Member for exclusive and early videos, original music, and upcoming lecture notes for the graph theory series! Plus your comments will be highlighted for me so it is more likely I'll answer your questions! kzbin.info/door/yEKvaxi8mt9FMc62MHcliwjoin Graph Theory course: kzbin.info/aero/PLztBpqftvzxXBhbYxoaZJmnZF6AUQr1mH Graph Theory exercises: kzbin.info/aero/PLztBpqftvzxXtYASoshtU3yEKqEmo1o1L
@ellelee453
@ellelee453 4 жыл бұрын
Yes, the exact explanation I've been finding to clear up my questions.
@WrathofMath
@WrathofMath 4 жыл бұрын
Thanks for watching, I am so glad it helped!
@ellelee453
@ellelee453 4 жыл бұрын
Wrath of Math However, if for example graph A has two adjacent edges on the same side, while graph B has only one adjacent edge on one side, are graph A and B isomorphic?
@calito44
@calito44 2 жыл бұрын
Man... seriously.. Are you a professor? this is what you do in your daily life? Man, anything else you do if a complete waste of time.... this is your stuff. I mean it, exist a lot of person that can comprehend a complex concept, but persons that can comprehend it, digest it and later explain it in a easy and simple way, is a divine gift........
@deekshamohanty
@deekshamohanty 11 ай бұрын
Sean your explanations are honestly awesome! These help me form my own conclusions and get to the proof myself! Thank you so much ☺️
@ashutoshsharma2394
@ashutoshsharma2394 4 жыл бұрын
Great explanation, sir! I've an exam on algebra, three days later. No doubt now persists in mind. You must have been a better student, but believe me, you are a great teacher. God bless you. Love from 🇮🇳. One more request, I am an undergraduate student of mathematics, and I want to be a mathematician like you. Can you please suggest me some books of college level?
@PunmasterSTP
@PunmasterSTP 5 ай бұрын
How did your exam go?
@klejdisevdari3916
@klejdisevdari3916 3 жыл бұрын
This question came up in one of my CS assignments. Thanks
@WrathofMath
@WrathofMath 3 жыл бұрын
Glad it helped, thanks for watching!
@ykfang6169
@ykfang6169 4 жыл бұрын
Your videos are very clear and helpful. Thank you! I hope you will make more videos so I can learn from you
@WrathofMath
@WrathofMath 4 жыл бұрын
Thanks for watching and I'm so glad you find the lessons helpful! I release new lessons every two days! New lesson comes out tomorrow! :)
@victort4796
@victort4796 6 ай бұрын
Thanks so much for making this clear! I pray to have professors who can articulate just like you!
@WrathofMath
@WrathofMath 6 ай бұрын
Thank you!
@thankmelater9774
@thankmelater9774 5 жыл бұрын
Very good and elaborate proof man! Thanks
@WrathofMath
@WrathofMath 5 жыл бұрын
You’re welcome, thanks for watching! I am glad it was clear!
@aaronjs99
@aaronjs99 3 жыл бұрын
@Wrath_of_Math can you please do a series on discontinuous dynamics?
@fabriziogambelin8214
@fabriziogambelin8214 4 жыл бұрын
Thank you! I was struggling so bad with this proof.
@WrathofMath
@WrathofMath 4 жыл бұрын
Thanks a lot for watching, Fabrizio! I'm so glad the lesson helped clear it up for you! One of my favorite graph theory proofs!
@misssissipiboston9457
@misssissipiboston9457 2 жыл бұрын
when you talk about distance between 2 nodes, do you mean the shortest distance? Coz there could be multiple paths between nodes and each could be of different lengths.
@PunmasterSTP
@PunmasterSTP 5 ай бұрын
No odd cycles? More like "Nice proof that excites us!" 🙏
@InoceramusGigas
@InoceramusGigas Жыл бұрын
Excellent video, going over this before we cover the proof more thoroughly in friday's lecture! Cheers WOM!
@WrathofMath
@WrathofMath Жыл бұрын
Thanks for watching!
@Aman_iitbh
@Aman_iitbh 5 ай бұрын
isn't proof over at 13:52 if we say [wab] is closed odd walk hence it should contain odd cycle hence contradiction
@gaganganapathy9271
@gaganganapathy9271 4 жыл бұрын
Loved the explanation, thanks! :D
@WrathofMath
@WrathofMath 4 жыл бұрын
So glad it helped! Thanks for watching!
@KomalAdhikari-d4l
@KomalAdhikari-d4l 7 ай бұрын
why you take intersection point if we take without intersection we obtain closed walk wa to ab and bw of odd length which gives odd cycle by leema and which is contradiction...
@lonandon
@lonandon 3 жыл бұрын
Great explanation, fun to watch!
@WrathofMath
@WrathofMath 3 жыл бұрын
Thank you, I'm glad to hear it!
@shwetanktewari7762
@shwetanktewari7762 6 ай бұрын
Yo, thanks for giving me some direction. How did this proof assumed that all graphs without odd cycles can be partitioned into 2 sets of vertices with different parity distance to a given vertex ? This statement is clearly not true for graphs with odd cycle, but what makes it true for graphs without odd cycles? Thanks
@hassanboukhamseen1956
@hassanboukhamseen1956 Жыл бұрын
if a=w, doesn't this mean that we assume that a, b belong to X? Since d(w, w) = 0, so w has to be in X. But, as a result, this contradicts the prior assumption that a, b belong to X or Y, because if both a and b are in the same set and a=w is in X, then we have not covered the case for Y.
@dialaali9510
@dialaali9510 3 жыл бұрын
Please can you answer this question ::show that every closed odd walk contains an odd cycle
@rocnietoq
@rocnietoq 3 жыл бұрын
Tanks!! Really good explanation!
@WrathofMath
@WrathofMath 3 жыл бұрын
You're welcome, I am glad it helped! Let me know if you ever have any questions!
@Per48edjes
@Per48edjes 2 жыл бұрын
Hmmmm, wouldn't |P_2| = |Q_2|, necessarily (read: stronger claim than P_1 and P_2 having the same parity)? I'm assuming distance d(s, t) is the length of the shortest path between vertices s and t in the connected graph; |P| = d(w, a) and |Q| = d(b, w) are the same parity; |P_1| = |Q_1|; d(a, b) = 1. PS: Awesome video -- thank you for sharing!
@jineshpagaria3421
@jineshpagaria3421 Жыл бұрын
Absolutely brilliant!
@WrathofMath
@WrathofMath Жыл бұрын
Thank you!
@filipvlaisavljevic2619
@filipvlaisavljevic2619 3 жыл бұрын
Amazing explanation!
@WrathofMath
@WrathofMath 3 жыл бұрын
Thank you! If you're looking for more graph theory, check out my graph theory playlist: kzbin.info/aero/PLztBpqftvzxXBhbYxoaZJmnZF6AUQr1mH
@anuragunnikrishnan6851
@anuragunnikrishnan6851 4 жыл бұрын
At 11:41, you have assumed that the distance between d(a,b) = 1 and what follows is that since d(a,b) must be even, it can't be 1. Why have you chosen 1? If would have been if you chose d(a,b) to be 2. How would you proceed then? The assumption fit in perfectly because it then helps us prove that d(a,b) is not even.
@WrathofMath
@WrathofMath 4 жыл бұрын
Thanks for watching and for your question! The important point is that we didn't exactly assume d(a,b) = 1, what we assumed was that X and Y did not form a bipartite partitioning of V(G) - that was our assumption for the sake of contradiction. We assumed for the sake of contradiction that our partitioning of V(G) was NOT bipartite, and thus there exists a pair of vertices, a and b, that are adjacent and in the same set (X or Y). Thus, d(a,b) MUST be equal to 1 since they are adjacent, there is no other possibility due to our contradiction assumption. Good question, does that help? Here is a lesson I did on distance between vertices in case the precise definition of that is unclear: kzbin.info/www/bejne/kJ7EnKqkj9tgp9E
@anuragunnikrishnan6851
@anuragunnikrishnan6851 4 жыл бұрын
@@WrathofMath Thank you so much! It makes more sense now.
@rekhajangra1386
@rekhajangra1386 4 жыл бұрын
Really it was very helpful for me.
@WrathofMath
@WrathofMath 4 жыл бұрын
Glad to hear it, thanks for watching!
@ashlyantony1507
@ashlyantony1507 3 жыл бұрын
Very helpful video.. Thank u ...
@WrathofMath
@WrathofMath 3 жыл бұрын
Glad it helped, thanks for watching and if you're looking for more graph theory - check out my graph theory playlist! kzbin.info/aero/PLztBpqftvzxXBhbYxoaZJmnZF6AUQr1mH Let me know if you ever have any video requests!
@luciano8158
@luciano8158 Жыл бұрын
So the v in "v is an element of V(G)" for the set X... is different than the v in "v is an element of of V(G)" for the set Y? I ask because you call them both v, but it seems to me like they can't both be the same vertex...
@WrathofMath
@WrathofMath Жыл бұрын
That is correct, assuming you mean around 7:40, calling them both is acceptable in this context of set builder notation. We could read it as "X is the set containing all vertices v in the graph G such that the distance between v and the vertex w is even." Then we read Y as "the set of all vertices v in G such that the distance between v and w is odd". In each case, v is ranging through all vertices of G that have a particular property in order to create each set. If we actually intended on using v to represent an arbitrary member of X, we would certainly need to use a different letter to represent an arbitrary member of Y.
@lostname468
@lostname468 5 жыл бұрын
Sir wher is converse part it is if and only if condition U only show if a graph has no odd cycle then it is bipartite but what about that is G is bipartite then it has no odd cycle
@WrathofMath
@WrathofMath 5 жыл бұрын
Thanks for watching! I only included what I think is the much harder part to prove in this video, which was also specifically requested by a viewer, and because of how long the video already is I didn't want to make it any longer. If you'd like, I'd be happy to do a video on the proof of the converse!
@WrathofMath
@WrathofMath 5 жыл бұрын
I was actually in the mood today to do a video on the converse, so I just recorded it. It will be out Sunday 12:00 am EDT. That's a weird time for people in America like me, but not many Americans are watching at this time of year, so I'm trying to release lessons at a time better for everyone else! Thanks for your support :)
@WrathofMath
@WrathofMath 5 жыл бұрын
Here's the lesson! kzbin.info/www/bejne/roLGdIuJe7uGodU
@AmberSystem
@AmberSystem 5 жыл бұрын
Thanks, this helped a lot.
@WrathofMath
@WrathofMath 5 жыл бұрын
You're very welcome, I am glad it helped and thank you for watching!
@kushagrasaxena8831
@kushagrasaxena8831 4 жыл бұрын
great explanation can you explain this - In a complete graph with n vertices there are n−1/2 edge-disjoint Hamiltonian cycles if n is an odd number and n≥3.
@WrathofMath
@WrathofMath 4 жыл бұрын
Thank you for watching! Sure, here is a very informal explanation. A Hamiltonian cycle will contain two edges incident with each vertex (one to get there, and one to leave, so to speak). Each vertex is incident to n-1 edges by definition of a complete graph. Of course, n-1 is even if we assume n is odd. Then, if we take all of the edges incident to a vertex, and give pairs of them to as many Hamiltonian cycles as we can, we would give 2 edges to (n - 1)/2 Hamiltonian cycles. We also know that every other vertex needs to give 2 incident edges to each of these (n - 1)/2 Hamiltonian cycles, and of course we know each other vertex has exactly enough edges for that. When we think of making the cycles as "giving edges", we assure that we have edge-disjoint cycles since once we give two edges to a cycle we cannot give those edges to another cycle. The idea of giving edges also suggests the division, as that is often how division is introduced. If you share n-1 apples with your (n-1)/2 friends, how many apples does each friend get? Of course the answer is 2. In our situation, we are asking, "If you must give away 2 apples to make a friend, and you have n-1 apples, how many friends can you make?" The answer is (n-1)/2. A silly explanation, but I hope it helps some!
@kushagrasaxena8831
@kushagrasaxena8831 4 жыл бұрын
Thanks a lot for your amazing explanation! Keep up with the great work ✌️
@arshakkhoshnevis
@arshakkhoshnevis 3 жыл бұрын
Thank U for this awesome video.
@WrathofMath
@WrathofMath 3 жыл бұрын
My pleasure, thanks for watching!
@gisellegavorskis8333
@gisellegavorskis8333 4 жыл бұрын
Can you prove isomorphism in bicyclic graphs? Thanks!
@SatnamSingh-sk3hd
@SatnamSingh-sk3hd 5 жыл бұрын
thanks so much sir
@WrathofMath
@WrathofMath 5 жыл бұрын
You're very welcome! Thanks for watching and let me know if you ever have any lesson requests!
@harshitchoudhary6969
@harshitchoudhary6969 4 жыл бұрын
Can you prove by induction?
@mohamedzayton9693
@mohamedzayton9693 4 жыл бұрын
thank you sir . with my best wishes
@WrathofMath
@WrathofMath 4 жыл бұрын
Thanks so much for watching!
@ekjotnanda6832
@ekjotnanda6832 3 жыл бұрын
Really good 👍🏻
@WrathofMath
@WrathofMath 3 жыл бұрын
Thank you! If you're looking for more graph theory, check out my playlist! kzbin.info/aero/PLztBpqftvzxXBhbYxoaZJmnZF6AUQr1mH
@dejavukun
@dejavukun 5 жыл бұрын
Thanks a lot sir!
@WrathofMath
@WrathofMath 5 жыл бұрын
You're very welcome, thanks for watching! Let me know if you ever have any lesson requests!
@BudskiiHD
@BudskiiHD 4 жыл бұрын
why do you assume G is a connected graph at the start of the proof?
@WrathofMath
@WrathofMath 4 жыл бұрын
Thanks for watching and good question! I mention early in the video that "A graph is bipartite if and only if all of its connected components are bipartite" (let me know if you'd like explanation of that fact). So that is why we only have to consider connected graphs, because if a graph is disconnected then we can just apply our proof to its connected components, proving each component is bipartite and thus the whole disconnected graph is as well. Does that help?
@BudskiiHD
@BudskiiHD 4 жыл бұрын
@@WrathofMath Yes, that answers my question, thanks!
@i_am_wiz
@i_am_wiz 2 жыл бұрын
Beautiful
@TheWildStatistician
@TheWildStatistician Жыл бұрын
Fantastico!
@WrathofMath
@WrathofMath Жыл бұрын
Thank you!
@YellowMiniCooper2
@YellowMiniCooper2 4 жыл бұрын
Thanks !
@WrathofMath
@WrathofMath 4 жыл бұрын
You're welcome, thanks for watching!
@tshepomogagabe1533
@tshepomogagabe1533 4 жыл бұрын
Awesome!!!
@WrathofMath
@WrathofMath 4 жыл бұрын
Thanks for watching!
@dhe1782
@dhe1782 Жыл бұрын
marvellous
@WrathofMath
@WrathofMath Жыл бұрын
Thank you!
@rushilthareja3340
@rushilthareja3340 4 жыл бұрын
I am doing gt without doing dm hope I Ge through ...
@WrathofMath
@WrathofMath 4 жыл бұрын
Thanks for watching and good luck! Let me know if you ever have any graph theory lesson requests!
@TVSuchty
@TVSuchty 4 жыл бұрын
Are you a Computer Scientist or a mathematician? Since only a Computer Scientist starts counting with zero.
@WrathofMath
@WrathofMath 4 жыл бұрын
Haha, thanks for watching and good question! I've done a bit of programming, but I am no computer scientist! But us graph theorists benefit a lot by counting from 0 in a lot of situations, particularly when writing out the vertices of a walk! So when I put on my graph theory hat, I count from 0!
@potatocat2766
@potatocat2766 5 жыл бұрын
I am in 6th grade
@WrathofMath
@WrathofMath 5 жыл бұрын
That's awesome you're studying graph theory in 6th grade! I wish I had began studying it that early!
@potatocat2766
@potatocat2766 5 жыл бұрын
Also your arrows look like smiley faces
@potatocat2766
@potatocat2766 5 жыл бұрын
=)
@WrathofMath
@WrathofMath 5 жыл бұрын
Haha, I suppose they kind of do, I have never looked at them that way! If you can find subliminal images of happiness in my math lessons, all the better!
@raheemvlogs9040
@raheemvlogs9040 3 жыл бұрын
prove that Cn is a bipartite iff n is even. Sir plz its prooof????
@mazalawson1117
@mazalawson1117 3 жыл бұрын
ł
@WrathofMath
@WrathofMath 3 жыл бұрын
Thanks for watching!
@originalandfunnyname8076
@originalandfunnyname8076 4 жыл бұрын
Great explanation!
@WrathofMath
@WrathofMath 4 жыл бұрын
Glad it was clear, thanks a lot for watching!
버블티로 부자 구별하는법4
00:11
진영민yeongmin
Рет қаралды 19 МЛН
Who’s the Real Dad Doll Squid? Can You Guess in 60 Seconds? | Roblox 3D
00:34
Flipping Robot vs Heavier And Heavier Objects
00:34
Mark Rober
Рет қаралды 54 МЛН
Mom had to stand up for the whole family!❤️😍😁
00:39
버블티로 부자 구별하는법4
00:11
진영민yeongmin
Рет қаралды 19 МЛН