6.3 Graph Coloring Problem - Backtracking

  Рет қаралды 1,148,690

Abdul Bari

Abdul Bari

Күн бұрын

CORRECTION: at the end of this video, in a MAP, region 1 is also Adjacent to region 4
Graph coloring problem using Backtracking
PATREON : www.patreon.com/bePatron?u=20...
Courses on Udemy
================
Java Programming
www.udemy.com/course/java-se-...
Data Structures using C and C++
www.udemy.com/course/datastru...
C++ Programming
www.udemy.com/course/cpp-deep...

Пікірлер: 287
@scabbage
@scabbage 4 жыл бұрын
I like how he actually took the effort to draw the last level.
@gannonben2554
@gannonben2554 2 жыл бұрын
instablaster.
@kunalakhade5660
@kunalakhade5660 2 жыл бұрын
I was like how will I draw the level in the exam paper
@SandeshMotoVlogs
@SandeshMotoVlogs 2 жыл бұрын
@@kunalakhade5660 Indian teachers are like it should look neat no matter whether that's gonna fit in the area/page
@shaikhtaqueveem6819
@shaikhtaqueveem6819 Жыл бұрын
​@@kunalakhade5660 how did you draw...
@mahadevawasthi8187
@mahadevawasthi8187 8 ай бұрын
Someone give this man a medal 🥇 . He is better than the lecturar of expensive private universities. Hats off to you legend 🔥
@gaharavara
@gaharavara 5 жыл бұрын
Loved the last part where you told about the origin of this problem, it was something new and really helped to realize why were we doing this : )
@ayounghosh9218
@ayounghosh9218 5 жыл бұрын
I feel like I'm giving my fees to the wrong teachers, my college should hire teachers like him instead
@anirudhavadhani8586
@anirudhavadhani8586 4 жыл бұрын
same here
@sanayshah1
@sanayshah1 4 жыл бұрын
Same same
@matthieub3973
@matthieub3973 4 жыл бұрын
What program are you majoring in that you're learning stuff like this? AI or something? That's great!
@CoderBrains
@CoderBrains 4 жыл бұрын
Just try this kzfaq.info/love/4CwQWuy47lTFP8-RhtF8lw?view_as=subscriber
@artisingh1944
@artisingh1944 3 жыл бұрын
damn true
@swatisharma9373
@swatisharma9373 Жыл бұрын
funny thing is my college teacher is making notes from your videos and still could not teach
@lokeshkandpal6600
@lokeshkandpal6600 Жыл бұрын
Same🥲😂
@ankursoni8751
@ankursoni8751 2 жыл бұрын
The way you gracefully explain the complex problem is just amazing. Thank you for all your hard work. :)
@chepaiytrath
@chepaiytrath 4 жыл бұрын
Looking forward to the day when I post on LinkedIn about my journey to my dream company and I attach your channel as a reference for DP, Backtracking, Algos, etc
@shivammwarambhey5614
@shivammwarambhey5614 Жыл бұрын
13:09 Smoothest transition by Abdul Sir so far😅😂. Can't stop going back and checking frame by frame the way sir seems to be in the same place.
@yhwu4747
@yhwu4747 5 жыл бұрын
brilliant storytelling of the historical case where the graph coloring can be applied!
@johnlebens6463
@johnlebens6463 4 жыл бұрын
Your videos are the best sir! Thank you for getting me through my algorithms class. Keep up the good work :)
@ashokindiagaming6064
@ashokindiagaming6064 Ай бұрын
A
@brettford7521
@brettford7521 2 жыл бұрын
Your videos have a lot of educational value, thank you so much for sharing. Currently taking Algorithm Design and Analysis
@benneal8224
@benneal8224 3 жыл бұрын
Your videos are a gift to the world! Thank you
@arunachhatkuli2103
@arunachhatkuli2103 2 жыл бұрын
In the coloring of the map there must have to connect node 1 to node 4 because these two are adjacent according to this map.
@ajinkyabhalerao984
@ajinkyabhalerao984 Жыл бұрын
Exactly!
@maheshmahi06981
@maheshmahi06981 Жыл бұрын
Yes 1 and 4 have connection
@LL-ol8gr
@LL-ol8gr 3 жыл бұрын
Best CS teacher ever, make every topic bite-able.
@TridibSamanta
@TridibSamanta 5 жыл бұрын
Great ! You are a great Teacher. Thanks for saving my Design and analysis of Algorithm Paper. #Respect
@shwetankjoshi3011
@shwetankjoshi3011 2 жыл бұрын
Which university
@HAAH999
@HAAH999 4 жыл бұрын
Thank you for your great effort and helping students around the world.
@gopeshkhandelwal9823
@gopeshkhandelwal9823 5 жыл бұрын
sir ,your teaching style is awesome .Really, love your videos
@sapingeli
@sapingeli 5 жыл бұрын
I am a big fan of you, now following everything about algorithms and maths.
@ujwalgupta7457
@ujwalgupta7457 Жыл бұрын
Even though NITs and prestigious state government colleges have the worst faculty. Without these teachers, I cannot imagine that I could pass the semester exams.
@malaykumar7991
@malaykumar7991 5 жыл бұрын
Thank you sir. 🙂 Your videos are very helpful for papers .
@c.danielpremkumar8495
@c.danielpremkumar8495 6 жыл бұрын
I appreciate your immediate response.
@tejudimple689
@tejudimple689 5 жыл бұрын
Superb sir....seriously the way you explain and speak is so easy and understandable to any one.....
@abhijeetiyer1556
@abhijeetiyer1556 5 жыл бұрын
It would be helpful if you provide some pseudo code with the examples and explain in terms with the code too 😁😁 PS:- your videos are really helpful
@codeforester
@codeforester 4 ай бұрын
What an excellent teacher! I feel like I am back in college! Thank you Abdul for educating us.
@MdAsif-zx5wy
@MdAsif-zx5wy 4 жыл бұрын
itna zyada student seen kr rha ....bhut accha sir,thanku so much sir for ur help
@GustavoHenrique-xg4ey
@GustavoHenrique-xg4ey 5 жыл бұрын
well explained, good camera, thanks
@RS_renovation_10
@RS_renovation_10 Жыл бұрын
Thank you sir for these types of videos it's really very helpful for us ❤️❤️
@jaslinkaur645
@jaslinkaur645 2 жыл бұрын
For the graph colouring problem at 14:55, should not vertex 4 connect to vertex 1? The boundaries connect
@santoshreddy9963
@santoshreddy9963 2 жыл бұрын
same doubt
@lucifercp4056
@lucifercp4056 2 жыл бұрын
+1
@jeffmathew6238
@jeffmathew6238 Жыл бұрын
it should...just change the solution accordingly
@rrMaxwell
@rrMaxwell Жыл бұрын
the map printing example was superb professor
@putluruvenkatsabarisainath7009
@putluruvenkatsabarisainath7009 2 жыл бұрын
good Teacher.Learnt many things.so simple in understanding.
@anuragvishwa1847
@anuragvishwa1847 6 жыл бұрын
Sir is, Aamir Khan of Algorithms
@bavalpreetsingh4664
@bavalpreetsingh4664 5 жыл бұрын
thugs of hindustan flops
@RajVerma-lg3kp
@RajVerma-lg3kp 5 жыл бұрын
Bavalpreet Singh lmao 😂
@ttctoh
@ttctoh 4 жыл бұрын
He is Lee CHong Wei of Algorithms
@KeshariPiyush24
@KeshariPiyush24 3 жыл бұрын
wanted to like this comment but it is on 69 so not doingXD
@anums4590
@anums4590 6 жыл бұрын
Your channel is very helpful
@rahulraut2689
@rahulraut2689 4 жыл бұрын
@Abdul Bari In university exam, is required to find all possibility of graph coloring ?
@ssm840
@ssm840 Жыл бұрын
Great content as usual-can anyone suggest a good tutorial (novice friendly) for finding the chromatic no of a graph.Does Abdul sir have any videos on this topic in particular?
@mpmukundh
@mpmukundh 5 жыл бұрын
Please include algorithm sir
@aryantiwari3823
@aryantiwari3823 16 күн бұрын
even after 100 years , this man will be remembered
@chanduyerragundla2268
@chanduyerragundla2268 2 жыл бұрын
Your an life savior of many btech students in jntu
@hemantsingh6420
@hemantsingh6420 5 жыл бұрын
Sir for Network flow and matching lecture video is available or not?
@mansonchallenger1143
@mansonchallenger1143 3 жыл бұрын
best explanation of backtracking this far
@amanjain256
@amanjain256 4 жыл бұрын
15:25 Since 4 is neighbour to 1 between 2 and 5,there should be an edge from 4 to 1 or 1 to 4 at 15:25, right?
@aniljami6786
@aniljami6786 4 жыл бұрын
Yes,but assume that 2nd vertex is completely in between 1 and 4 i.e the small uncovered region is to be covered
@sonudwivedi4815
@sonudwivedi4815 3 жыл бұрын
if you think like that then if 1-4 has boundary then tell me where is the ending boundary of 2 you won't be able to decide hence if you look carefully you will notice that 1's boundary goes up from 2 not below of 2 because below of is 2's boundary not 1's
@anandbaskaran
@anandbaskaran 2 жыл бұрын
Should we use the same kind of execution technique for mColouringDecisionProblem and mColouringOptimzationProblem? (Of course, we will terminate once a solution is obtained, nut is there a better method?)
@danym-98
@danym-98 2 жыл бұрын
Thanks!
@garlapatibalu6192
@garlapatibalu6192 5 жыл бұрын
sir if we are having only 3 nodes and 3 colors how could we do the problem ??
@ajaykommalapati9906
@ajaykommalapati9906 6 жыл бұрын
It's really good sir.
@udaykumar5387
@udaykumar5387 5 жыл бұрын
really helpful sir thank you very much
@c.danielpremkumar8495
@c.danielpremkumar8495 6 жыл бұрын
Is there a condition as to whether all the given colours must be used ?
@Nani-ox4ht
@Nani-ox4ht 6 жыл бұрын
What an explanation sir,,👏👏👏
@Hindicartoonstory0308
@Hindicartoonstory0308 5 жыл бұрын
Sir it is simple graph,how can we do backtracking using tree in complex graph like if there is path between 2 and 4
@nishant9972
@nishant9972 3 жыл бұрын
thanks, wrote the code directly, didn't even need to take any reference or watch it again
@shikshagarg5855
@shikshagarg5855 6 жыл бұрын
Thanks. Very helpful!
@lspophale
@lspophale 5 жыл бұрын
voice is so good to understand and skip written part by himself which is not imp thats so better
@stith_pragya
@stith_pragya Жыл бұрын
Thank You So Much Abdul Sir..........🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻 as usual super dooper explanation
@mohammedadel8948
@mohammedadel8948 2 жыл бұрын
Thank you , I appreciate your help so much
@HamsaShehadeh
@HamsaShehadeh 3 жыл бұрын
how about the point that dont connect to any other point? what should i color it? a different color that no point got it? or same as any point color?
@sai007
@sai007 6 жыл бұрын
Sir.. actually how many solutions can obtain at end of the video is 18 or more that?
@dr.p.sridevi2626
@dr.p.sridevi2626 3 жыл бұрын
Thank you for your great effort
@vishallondhe7298
@vishallondhe7298 4 жыл бұрын
looks little bit like gujarat map, btw nice video appreciate the effort.
@HelloWorld-zt4ol
@HelloWorld-zt4ol 5 жыл бұрын
is there any rule to start colouring from specific vertex? or we can start colouring from any vertex?? please reply @Abdul Bari
@theonefromtheback
@theonefromtheback Жыл бұрын
Best teacher I've seen my teacher is not even close to him!!
@gideonkiplagat4232
@gideonkiplagat4232 Жыл бұрын
Can you explain how GCP can be used in College/exam Timetabling
@kshnt9996
@kshnt9996 3 жыл бұрын
Can you provide lisp programming for the same problem using any search method
@vishnuvardhans8463
@vishnuvardhans8463 4 жыл бұрын
Sir the last application part was really awesome and made me reason for learning Can you please add applications to all problems to solve in upcoming videos :)
@codelover847
@codelover847 5 жыл бұрын
In exam , how are we going to draw the space tree of such a lengthy problem?Please suggest some ways
@jackiechoe1841
@jackiechoe1841 7 ай бұрын
Thankyou abdul! great bideo!
@adipratapsinghaps
@adipratapsinghaps 5 жыл бұрын
Preparing for upcoming google interviews. Solved an unanswered google problem from geeksforgeeks interview experience with m-colouring optimization algorithm. Had start and end time of meetings in 2 different arrays. Had to compute minimum number of rooms that are required to host all meetings. Start = [9:00,9:40,9:50,11:00,15:00,18:00] End = [9:10,12:00,11:20,11:30,19:00,20:00] So I created objects with start and end time and treated them as graph nodes. And added edges between nodes with overlapping timings. And finally solved it using m-colour optimization problem. The answer is 3. 😄
@adipratapsinghaps
@adipratapsinghaps 5 жыл бұрын
@@abdul_bari Sir, I assume that I found the right solution. But I need your advice if my approach is right. And if there is any better way of solving this problem?
@bhuveshdhiman2
@bhuveshdhiman2 2 жыл бұрын
@@adipratapsinghaps you can apply greedy algo for this q
@sam111880
@sam111880 4 жыл бұрын
Great video , I am curious not on writing an algorithm for chromatic number but to obtain the chromatic polynomial for the graph. Is there an easy relation one can uses to go from chromatic number to chromatic polynomial for a backtracking algorithm?
@bavidlynx3409
@bavidlynx3409 3 жыл бұрын
i cant really find any easy to write algoritms. i know hes a great teacher but he aint explining any algoritms
@onais__
@onais__ 2 жыл бұрын
@@bavidlynx3409 hey, so from where did you do the algo explanation part
@sushanth6039
@sushanth6039 6 жыл бұрын
Sir time complexity of this problem?
@lakshmiinukonda8582
@lakshmiinukonda8582 5 жыл бұрын
Is there any condition that all colors must be used at every step..?
@cvismenu
@cvismenu 6 жыл бұрын
very conceptual
@danishbhatia1734
@danishbhatia1734 6 жыл бұрын
great job sir.
@somilshah7841
@somilshah7841 6 жыл бұрын
nice explanation :)
@asmrao3824
@asmrao3824 5 жыл бұрын
is this also called Constraint Satisfaction problem? CSPs?
@SaiKumar-zw9eh
@SaiKumar-zw9eh 6 жыл бұрын
Sir, firstly thanx for your videos. In the above example, if we draw tree by taking even GREEN and BLUE in the root node then the tree expands very large so would you suggest how to represent such huge trees in exam?
@user-ql5ut8rx9o
@user-ql5ut8rx9o 2 жыл бұрын
Hello, how many chromatic number of (c7) power 2 ????
@piyushlohani3278
@piyushlohani3278 6 жыл бұрын
sir how to determine minimum number of color required to color a graph
@gnrh123
@gnrh123 3 жыл бұрын
Thank you algo king Abdul 🙏
@NavjotKaur-pk4gx
@NavjotKaur-pk4gx 3 жыл бұрын
Sir, this is working in sequence number means 1,2,3..... Like this Or This is working with the adjacent
@namankhard4270
@namankhard4270 5 жыл бұрын
Sir it would be much better if you provide algorithms as well because in exams they ask algorithms too.
@darshanarani9059
@darshanarani9059 5 жыл бұрын
Yes please Sir
@TusharYadav-es1bq
@TusharYadav-es1bq 5 жыл бұрын
he doesnt know them
@varunrao2135
@varunrao2135 4 жыл бұрын
@@TusharYadav-es1bq writing the algorithm is trivial if you understand the algorithm well. Understanding algorithm is more difficult
@Homelander-compV
@Homelander-compV Жыл бұрын
@@TusharYadav-es1bq kiddo
@harishchirati2311
@harishchirati2311 6 жыл бұрын
thank u nice explanation sir
@Mithilesh165
@Mithilesh165 5 жыл бұрын
Awesome sir....Thank you....😇😇😇😇
@unofficialcoder
@unofficialcoder 5 жыл бұрын
very well explained sir
@ericwang4917
@ericwang4917 5 жыл бұрын
Can you also do the machine learning algorithm too, and thank you for helping understanding these concept :)
@tusharsingh2286
@tusharsingh2286 2 жыл бұрын
Tommorrow is my exam and i done prepration by your video 🍀🍀
@AdarshkiBines
@AdarshkiBines 2 жыл бұрын
cam share your exam paper
@vikassingh8473
@vikassingh8473 6 жыл бұрын
Sir ye 5. Bhi to connect ho rha hai 2 se
@gateeasycse
@gateeasycse 6 жыл бұрын
can u explain bounding function
@ggauthamin7420
@ggauthamin7420 6 жыл бұрын
Thank u so much sir! really
@amitkumarsrivastava9261
@amitkumarsrivastava9261 4 ай бұрын
Sir, you explained the Graph colouring problem as "the number of ways to colour a graph or given a number of colours, find if its possible to colour the graph". Then you explained about the history with Map colouring. In Map colouring problem, we need to find the minimum number of colours to colour the map with same constraints. These are related but different problems. Nevertheless, I feel that in the Graph colouring we can add a small optimisation - if the number of colours needed are more than the number of colours in a previously seen branch, then also we can stop early(bound).
@akashmaurya5338
@akashmaurya5338 5 жыл бұрын
how many of you are watchin 1.5x or 2x hit like here kabi kabhi nhi hamesha lagta hai ki sir ich bhagwan hai.... akash gaytunde
@AMITKUMAR-te9bn
@AMITKUMAR-te9bn 4 жыл бұрын
i'm at 1.75x lol xd
@deeproy7292
@deeproy7292 4 жыл бұрын
awesome example on application✌
@sarvodaykumar2723
@sarvodaykumar2723 4 жыл бұрын
Hello dear sir could you please add video on adding and delete node/ edge in graph
@schaudhari
@schaudhari 6 жыл бұрын
Sir please upload Live variable analysis in compiler design thanks
@ThuyVu-pv5wd
@ThuyVu-pv5wd 2 жыл бұрын
bài giảng hay lắm ạ, mỗi tội cháu ko nghe thấy gì, may mà có phụ đề tiếng anh.
@ssm840
@ssm840 Жыл бұрын
after trying red on the first vertex,do we need to try out Green and blue on the first vertex in the subsequent iterations.Or will 1st vertex always be colored with red only?
@pareekshithachar3788
@pareekshithachar3788 Жыл бұрын
have to put other colours there too as they are possible solutions
@rechinraj111
@rechinraj111 5 жыл бұрын
@abdul Bari : can u Plz start including code snippet also in Ur videos? Everytime I need to follow other sites for code.
@aparnazomeeeeee2
@aparnazomeeeeee2 Жыл бұрын
Great explanation ❤️
@chandrakanthsagar8886
@chandrakanthsagar8886 Жыл бұрын
Great explanation 🔥
@ramapriya6702
@ramapriya6702 3 жыл бұрын
what is the m value for map graph?
@priyankapasupuleti5892
@priyankapasupuleti5892 5 жыл бұрын
Nice superb explanation
@kinglygaurav
@kinglygaurav 4 жыл бұрын
@AbdulBari Sir, which book do you recommend reading. I am following "The Algorithm Design Manual". But it does not have many of the concepts I learnt from you. Can you recommend a few. Thanks in advance
@neelkamal9515
@neelkamal9515 4 жыл бұрын
Horowitz and sahini
@RAGHUNATHSINGHBCI
@RAGHUNATHSINGHBCI Жыл бұрын
will there be a direct path from node 1 to node 4 in Map to graph. Anyone help me in understand.
6.4 Hamiltonian Cycle - Backtracking
18:35
Abdul Bari
Рет қаралды 994 М.
6.2 Sum Of Subsets Problem - Backtracking
12:19
Abdul Bari
Рет қаралды 1,3 МЛН
Despicable Me Fart Blaster
00:51
_vector_
Рет қаралды 27 МЛН
Inside Out 2: Who is the strongest? Joy vs Envy vs Anger #shorts #animation
00:22
3.6 Dijkstra Algorithm - Single Source Shortest Path - Greedy Method
18:35
Understanding B-Trees: The Data Structure Behind Modern Databases
12:39
Fastest Way to Learn ANY Programming Language: 80-20 rule
8:24
Sahil & Sarra
Рет қаралды 797 М.
6.1 N Queens Problem using Backtracking
13:41
Abdul Bari
Рет қаралды 1,9 МЛН
I gave 127 interviews. Top 5 Algorithms they asked me.
8:36
Sahil & Sarra
Рет қаралды 627 М.
Despicable Me Fart Blaster
00:51
_vector_
Рет қаралды 27 МЛН