6 Introduction to Backtracking - Brute Force Approach

  Рет қаралды 1,371,068

Abdul Bari

Abdul Bari

Күн бұрын

Пікірлер: 293
@AnitShrestha
@AnitShrestha 5 жыл бұрын
Self notes: - Brute Force approach finds all the possible solutions and selects desired solution per given the constraints. - Dynamic Programming also uses Brute Force approach to find the OPTIMUM solution, either maximum or minimum. - Backtracking also uses Brute Force approach but to find ALL the solutions. - Solutions to the Backtracking problems can be represented as State-Space Tree. - The constrained applied to find the solution is called Bounding function. - Backtracking follows Depth-First Search method. - Branch and Bound is also a Brute Force approach, which uses Breadth-First Search method.
@bhagyashrikumbar9900
@bhagyashrikumbar9900 5 жыл бұрын
Thank you sir
@sauravkumar7508
@sauravkumar7508 5 жыл бұрын
Thanks anit shrestha manandhar For this useful information....🙏
@villagevibes6472
@villagevibes6472 4 жыл бұрын
Hi
@munafdivan3882
@munafdivan3882 3 жыл бұрын
@@villagevibes6472 are you from ddu?
@willoyd
@willoyd 3 жыл бұрын
Backtracking is a brute-force subset. Kind of a brute-force early optimization. Dynamic Programming is NOT brute-force because memoization.
@12Saqlain
@12Saqlain 3 жыл бұрын
Other professors are using complicated examples that are available in reference books, but sir Abdul Bari has created his own simple and easy examples for every topic to teach students.. Thank u sir
@ivybrandyn
@ivybrandyn 29 күн бұрын
I haven't seen you in so long! You got me through college years ago and now I'm a computer vision engineer in robotics. Hope you're proud
@ParthKoli-m7x
@ParthKoli-m7x 3 күн бұрын
hey there:)
@vaibhavtiwari6030
@vaibhavtiwari6030 3 күн бұрын
@ParthKoli-m7x hi here
@oscaranillo7131
@oscaranillo7131 4 жыл бұрын
Im watching you from Colombia in 2020! You are the best!
@govind22703
@govind22703 4 жыл бұрын
Yeah. No doubt
@govind22703
@govind22703 4 жыл бұрын
I'm in India btw
@ilyabikmeev
@ilyabikmeev 3 жыл бұрын
Qué bacano
@YasserSinjab
@YasserSinjab 4 жыл бұрын
You are the best who explained backtracking in just 8 minutes. I lost hours reading and watching and no one explain it easily like you. Thnaks
@yousufborno3875
@yousufborno3875 3 жыл бұрын
Wow, I am impressed by his teaching skills. Even a layman could understand the core idea of backtracking
@SenthilKumar-ji5wu
@SenthilKumar-ji5wu 4 жыл бұрын
I spend hours and hours in watching recursion and backtracking.. but you made it soo simple..
@aryanbarodwal9498
@aryanbarodwal9498 2 ай бұрын
same
@phillipuchen
@phillipuchen 3 жыл бұрын
You deserve to be awarded the best professor award, sir!
@Maheshkumarsc
@Maheshkumarsc 5 жыл бұрын
One of best lecture of Algorithm on KZbin..thank you sir with bottom of my heart..
@ytg6663
@ytg6663 4 жыл бұрын
Heaven my O!
@edensexile582
@edensexile582 Жыл бұрын
I maybe 5 years late for commenting but this was the best backtracking exaplaination I found. Thank you so much sir.
@elisadistante3511
@elisadistante3511 9 ай бұрын
Grazie.
@srinathakarur9798
@srinathakarur9798 3 жыл бұрын
Simply I am saying Thank U very much sir and very deserve personality. May GOD bless him and his family.
@abdulrahmanmustapha7486
@abdulrahmanmustapha7486 3 жыл бұрын
You are one of the best online Tutors i have ever come across
@RohitKumar-dz8dh
@RohitKumar-dz8dh 2 жыл бұрын
I had seen this when I was in second year for getting good marks in university exam and now after two years I am in final year and again watching this to understand the concept and implement in competitive coding . Thank you so much sir 🙏🙏🙏🙏
@crescent4033
@crescent4033 2 жыл бұрын
happing same with me .... watching for university exam 😅😅
@sheeprambeta3217
@sheeprambeta3217 3 жыл бұрын
Dislikes are from college professors who are salty that they cannot explain as well as him
@contactdi8426
@contactdi8426 3 жыл бұрын
LOL !! True. Dislike out of jealousy
@melissagblinwon9838
@melissagblinwon9838 2 жыл бұрын
My lecture is very Lazy..he can't explain very well, we are struggling to understand this topic because of him
@جمهوريةخرى
@جمهوريةخرى Жыл бұрын
Hahahahahha trueee
@arjumandwani7392
@arjumandwani7392 8 ай бұрын
absolutely
@rafaelnegron5662
@rafaelnegron5662 3 жыл бұрын
This is the video that truly helped me understand this concept.
@yizhang7027
@yizhang7027 3 жыл бұрын
Thank you very much! Your visualization of backtracking is so good.
@KrishnaKumar-lb6yw
@KrishnaKumar-lb6yw 5 жыл бұрын
Cant find a better explanation than this . I wish code corresponding for the problem is also written and explained in your own style so that we can follow that as well !
@nikhilbadyal
@nikhilbadyal 5 жыл бұрын
That gonna make us more and more dumb.
@vinoddiwan5792
@vinoddiwan5792 4 жыл бұрын
@@nikhilbadyal have You written evert code by yourself? No
@satyamgaba
@satyamgaba 4 жыл бұрын
@@vinoddiwan5792 how do you know he has not written?
@12Saqlain
@12Saqlain 3 жыл бұрын
Thank u Sir... Thank u so much for your hard work ALLAH PAK aap se razi hojae.... ALLAH PAK apko jaza e khair ataa kare...
@mahammadkhalilov1700
@mahammadkhalilov1700 4 жыл бұрын
Thank you for your hard work. Your tutorials are distinguishable and perfect. There is no other place that would teach as easily as you do. You deserve to be listed alongside Linus Torvards :)
@harshitsharma1905
@harshitsharma1905 Жыл бұрын
One of the best teachers available for us college students over youtube. Thank you so much sir for all these videos.🥰🥰
@souraverdodia2812
@souraverdodia2812 Жыл бұрын
bro do you know why did sir left teaching and what he is doing nowadays ? do you have any idea ??
@harshitsharma1905
@harshitsharma1905 Жыл бұрын
@@souraverdodia2812 He is actually teaching on udemy, you can check his community section about his courses over udemy.
@x.0726
@x.0726 4 жыл бұрын
Wow! This is beyond my expectations... this is simple and elegant .. Thank you so much for providing such great content.
@minhphong5418
@minhphong5418 2 жыл бұрын
you are one of the best teachers I've known. Thank you so much teacher!
@jaidevgatla9685
@jaidevgatla9685 10 ай бұрын
sir, you teach so well, and to the point, i like the way to flow the topic , thanks
@ShriTech-mp7pv
@ShriTech-mp7pv 4 жыл бұрын
Great explanation, i have all study of disign and analysis by watching your videos And my College teacher also reference your videos and teaching in a class.
@aashishgoyal1436
@aashishgoyal1436 6 жыл бұрын
best algo tutorials on youtube.thank you sir
@sachinshilwal71
@sachinshilwal71 3 жыл бұрын
Just realized our teacher watches your videos before teaching us. What a legend
@melvinkimathi8924
@melvinkimathi8924 3 жыл бұрын
same case
@csspms7970
@csspms7970 3 жыл бұрын
Best lecture ...May Allah bless you sir, Adul Bar
@aqsa7141
@aqsa7141 6 жыл бұрын
I am about to complete my midterm exmas syllabus by watching your videoes....thakyou so much sir.......alot of thanks......but one topic left sir..... heap...😞
@jewwantcady
@jewwantcady 3 жыл бұрын
In a few minutes you did it for me. Excellent! Thank you!
@sain3352
@sain3352 Жыл бұрын
Thanks!
@ABHISHEKYADAV-mj8yi
@ABHISHEKYADAV-mj8yi 6 жыл бұрын
Faith in Humanity Restored
@ytg6663
@ytg6663 4 жыл бұрын
Why
@dipanshumishra8901
@dipanshumishra8901 3 жыл бұрын
Lmao😂
@tanujmanral486
@tanujmanral486 3 жыл бұрын
lol
@testloop1048
@testloop1048 3 жыл бұрын
Download humanity.exe file
@marshal7115
@marshal7115 3 жыл бұрын
😂😂
@PINKIKUMARI-zh8yj
@PINKIKUMARI-zh8yj 6 жыл бұрын
i love your teaching @Abdul Bari
@austincarrowraces9080
@austincarrowraces9080 4 жыл бұрын
Thank you Abdul, your videos have helped me through Data Struct. & Algorithms. Without you I would have failed.
@umarrehankhan6350
@umarrehankhan6350 4 ай бұрын
Backtracking is a general algorithmic technique used for solving problems incrementally by trying out partial solutions and then abandoning them if they are not suitable. It is commonly used in problems that require searching through a large space of possible solutions, such as puzzles, constraint satisfaction problems, and combinatorial optimization problems.
@finnex5316
@finnex5316 24 күн бұрын
This is very clear, thank for this, professor!!
@DineshKumar-lq2ck
@DineshKumar-lq2ck 4 жыл бұрын
You are an angel, wish every school and institute has a teacher like you.
@chinmaydas4053
@chinmaydas4053 6 жыл бұрын
Very nice a learning video sir..we want these type of very informative,deep but easy to understand type videos which can understand anyone..our lots of love and respect for you sir..
@Stella-se1lg
@Stella-se1lg 6 жыл бұрын
Very clear illustration. You are able to explain the problem, the solution in a simple and easy way. Thank you, sir! Please keep the great work.
@eccheong
@eccheong 2 жыл бұрын
Very clear explanation sir, thank you and keep up the good work! You made my day!
@gurjotsinghpandher3908
@gurjotsinghpandher3908 3 ай бұрын
Wow, totally amazed by the explanation!
@neerajmahapatra5239
@neerajmahapatra5239 2 жыл бұрын
How you are so simple and clear 😁😁
@vrindatiwari3925
@vrindatiwari3925 4 жыл бұрын
thanks a lot sir for this wonderful vdo ...i m using ur vdos to revise all of my concepts...thanks again
@victoranghel7965
@victoranghel7965 3 жыл бұрын
I am have to tke an exam and with the online school i know nothing, but after tthis i got an idea. TY Abdul
@Joangiemarquez
@Joangiemarquez 4 жыл бұрын
I really enjoy your explanations, sir!
@samirkumarpadhi
@samirkumarpadhi 2 жыл бұрын
Hello One of the finest class. One thing you said it but you should have empasized(caps and bold) about posibilities while back tracking.
@inversemetric
@inversemetric 4 жыл бұрын
You are an incredible teacher, thank you
@brunospring1130
@brunospring1130 Жыл бұрын
abdul bari é uma lenda!
@amerdelic8710
@amerdelic8710 2 жыл бұрын
Moral of the story, never let a girl get between you and your boy.
@Nameiscantsay
@Nameiscantsay 6 ай бұрын
🤣🤣🤣
@prashantsalhanvlogs2373
@prashantsalhanvlogs2373 2 ай бұрын
😂😂
@OverLordOfDa3rdWorld
@OverLordOfDa3rdWorld 2 жыл бұрын
You are AMAZING!! Thank you so much for everything that you do!!!!!
@shammya9446
@shammya9446 6 жыл бұрын
Appreciation from Bangladesh, Thanks a lot sir
@syedchand995
@syedchand995 6 жыл бұрын
Very well explained. Deep nd both easy. Itz like we r attending a class 👌😊
@andrewcenteno3462
@andrewcenteno3462 Жыл бұрын
This guy helped me through college...now he helps me at my job lol
@shruthirekha6097
@shruthirekha6097 3 жыл бұрын
Tq sir your teaching was nice and pretty easy to understand.
@hotaru6765
@hotaru6765 6 жыл бұрын
Best teacher for Analysis nd design of Algo period!!
@Tommy-dd5pz
@Tommy-dd5pz 4 жыл бұрын
Such a great explanation!
@ArjunSingh-ew6ob
@ArjunSingh-ew6ob Жыл бұрын
best video on Backtracking
@abhiireddy6
@abhiireddy6 4 жыл бұрын
such a simple and elegant explanation
@FantaPopRockz
@FantaPopRockz Жыл бұрын
I love himm he explains so well
@gowtham12365
@gowtham12365 2 ай бұрын
Anyone in 2024😅
@BaveshChowdary
@BaveshChowdary 2 ай бұрын
Two days before exam
@uttamkarmakarece3534
@uttamkarmakarece3534 3 жыл бұрын
Was confused to draw recursion trees but this video me alot for understanding that
@rutustup396
@rutustup396 4 жыл бұрын
You are awesome explaining complicated things 👏👏
@AmitKumar-cf9zh
@AmitKumar-cf9zh 6 жыл бұрын
really awesome sir, I love that way of your teaching
@poojamundluru4460
@poojamundluru4460 4 жыл бұрын
This vedio helps so much in this pandemic sir
@AmolAghav
@AmolAghav 4 жыл бұрын
Great video. It was very easy to understand because of your explanation. Thank you!
@jhguygih
@jhguygih 2 жыл бұрын
How do I calculate number os possible solutions when I have a constraint. I mean, how equation would give us 4 on the second scenario. Would it be, 2x1x2 where the options are boy or a girl?
@chiranjeevisaride
@chiranjeevisaride 4 жыл бұрын
Amazing totally loved it!
@MK185054
@MK185054 4 жыл бұрын
simplicity beats complexity!
@SourovDattacse
@SourovDattacse 5 жыл бұрын
You are a lecture understanding approach is very good. and you have a powerful voice!
@mohammedadel8948
@mohammedadel8948 2 жыл бұрын
Thank you for your hard work.
@antbyron
@antbyron 5 жыл бұрын
Very good instructor!
@rajat1548
@rajat1548 6 жыл бұрын
Thank you, sir, for such a beautiful video
@shivadityameduri9973
@shivadityameduri9973 2 жыл бұрын
Very nice example!
@EmnaGHARBI21
@EmnaGHARBI21 5 жыл бұрын
Thank you the explanation is so clear
@chenghongyu626
@chenghongyu626 3 жыл бұрын
excellent work!!!
@rakeshsonti
@rakeshsonti 6 жыл бұрын
Well explained sir...,.. Thankyou soo much
@raffayhussain6717
@raffayhussain6717 2 жыл бұрын
just to be clear, backtracking isn't exactly brute force in the sense that we understand it. Backtracking use some conditions in the loop/recursion to not go through the entire process if we know that it won't lead to a solution. In the case of brute force, we will first find all the possible combinations and then use some kind of a function to weed out the results that don't match a certain condition.
@abyszero8620
@abyszero8620 2 жыл бұрын
True, but backtracking is asymptotically equal to brute force even if slightly faster in wall clock time.
@shrangisoni8758
@shrangisoni8758 6 жыл бұрын
Sir i heard that branch n bound technique can use dfs, bfs and Least count..
@ramankumar41
@ramankumar41 Жыл бұрын
Nice explanation !
@pradeepmondal4943
@pradeepmondal4943 4 жыл бұрын
U explain so amazingly
@namangupta9582
@namangupta9582 4 жыл бұрын
Only one thing to say- thanks ❤️❤️
@awalktoinfinity665
@awalktoinfinity665 6 жыл бұрын
Sir..yha jo B1 , B2 ,G1 (those 3 students) hai wo unko edges represent kr rhi h ya nodes when you were generating tree ??
@awalktoinfinity665
@awalktoinfinity665 6 жыл бұрын
@@abdul_bari oh.. thank you so much sir.. Instant reply .. i really appreciate that . Toh sir nodes yha kya represent krr rhi hai ???
@gawarivivek
@gawarivivek 4 жыл бұрын
Thanks Sir!! Explanation in simplicity!! :)
@james3742
@james3742 4 жыл бұрын
Fantastic job! Thank you.
@muhammadrashadyusuf543
@muhammadrashadyusuf543 Жыл бұрын
Simple and Elegant
@rcopeland999
@rcopeland999 4 жыл бұрын
clear explanation, thanks!
@roccosen3331
@roccosen3331 6 жыл бұрын
Amazing teacher!
@silmendor
@silmendor 4 жыл бұрын
Great explained, thank you
@vivekach1
@vivekach1 6 жыл бұрын
Awesome explanation. Thank you :)
@madhumithagannavaram7608
@madhumithagannavaram7608 3 жыл бұрын
def powerSet(string , index , curr): # string : Stores input string # curr : Stores current subset # index : Index in current subset, curr if index == len(string): print(curr) return powerSet(string, index + 1, curr + string[index]) powerSet(string, index + 1, curr) Sir, above is the code for power set of all strings possible will u please explain this example
@azeeztaiwo2802
@azeeztaiwo2802 4 жыл бұрын
great video, would have loved you to work through coding this .
@ShubhamSingh-lu1gy
@ShubhamSingh-lu1gy 4 жыл бұрын
careful, he's a hero!
@jasonsong1299
@jasonsong1299 6 ай бұрын
Can someone explain to me why must I do bounding function when the girl is at the second node?
@koffithegreat
@koffithegreat 6 жыл бұрын
this man just save me on my final tonight right now thank you please make more videos
@mandilal94
@mandilal94 6 жыл бұрын
Awesome explanation sir.Thank you
@dakshitalal2898
@dakshitalal2898 4 жыл бұрын
love the content but would appreciate if it would have 4x speed option thx big fan
@keerathpreetsingh3506
@keerathpreetsingh3506 4 жыл бұрын
Dakshita Lal Same
@quantagupta1494
@quantagupta1494 4 жыл бұрын
Please please pleaseee
@varunmishra8389
@varunmishra8389 5 жыл бұрын
Sir, What are Explicit and Implicit Constraints in Backtracking...???
@airel429
@airel429 5 жыл бұрын
Sir i have a question where to find the code to solve the question below? Solve TSP using brute force approaches (produce state space tree). Develop complete code and calculate time complexity.
@girl-qr9oh
@girl-qr9oh 6 ай бұрын
❤thank you soooooooooo muchhhhhhhhhhhh.... idk how to thank you enough
@engineermind1651
@engineermind1651 6 ай бұрын
just give money to sir.
@john.dough.
@john.dough. Жыл бұрын
great lesson!
6.1 N Queens Problem using Backtracking
13:41
Abdul Bari
Рет қаралды 2,2 МЛН
Mastering Dynamic Programming - How to solve any interview problem (Part 1)
19:41
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
6.2 Sum Of Subsets Problem - Backtracking
12:19
Abdul Bari
Рет қаралды 1,5 МЛН
Brute Force algorithms with real life examples | Study Algorithms
6:54
7.3 Traveling Salesman Problem - Branch and Bound
24:42
Abdul Bari
Рет қаралды 1,9 МЛН
9.1 Knuth-Morris-Pratt KMP String Matching Algorithm
18:56
Abdul Bari
Рет қаралды 1,7 МЛН
ML Was Hard Until I Learned These 5 Secrets!
13:11
Boris Meinardus
Рет қаралды 347 М.
Introduction to Backtracking || Backtracking  Algorithm || DAA
9:35
6.3 Graph Coloring Problem - Backtracking
15:52
Abdul Bari
Рет қаралды 1,2 МЛН
Backtracking (Think Like a Programmer)
13:02
V. Anton Spraul
Рет қаралды 345 М.
N-Queens Problem | using Backtracking | Leetcode Hard
24:26
Apna College
Рет қаралды 23 М.
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН