6 Introduction to Backtracking - Brute Force Approach

Поделиться
HTML-код
  • Опубликовано: 28 окт 2024

Комментарии • 286

  • @AnitShrestha
    @AnitShrestha 5 лет назад +1404

    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 лет назад +4

      Thanks anit shrestha manandhar
      For this useful information....🙏

    • @villagevibes6472
      @villagevibes6472 4 года назад +1

      Hi

    • @munafdivan3882
      @munafdivan3882 3 года назад +1

      @@villagevibes6472 are you from ddu?

    • @willoyd
      @willoyd 3 года назад +12

      Backtracking is a brute-force subset. Kind of a brute-force early optimization. Dynamic Programming is NOT brute-force because memoization.

  • @12Saqlain
    @12Saqlain 3 года назад +141

    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

  • @YasserSinjab
    @YasserSinjab 4 года назад +19

    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 года назад +49

    Wow, I am impressed by his teaching skills. Even a layman could understand the core idea of backtracking

  • @SenthilKumar-ji5wu
    @SenthilKumar-ji5wu 4 года назад +18

    I spend hours and hours in watching recursion and backtracking.. but you made it soo simple..

  • @oscaranillo7131
    @oscaranillo7131 4 года назад +86

    Im watching you from Colombia in 2020! You are the best!

  • @phillipuchen
    @phillipuchen 3 года назад +16

    You deserve to be awarded the best professor award, sir!

  • @Maheshkumarsc
    @Maheshkumarsc 5 лет назад +38

    One of best lecture of Algorithm on RUclips..thank you sir with bottom of my heart..

    • @ytg6663
      @ytg6663 3 года назад

      Heaven my O!

  • @RohitKumar-dz8dh
    @RohitKumar-dz8dh 2 года назад +8

    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 😅😅

  • @edensexile582
    @edensexile582 Год назад +2

    I maybe 5 years late for commenting but this was the best backtracking exaplaination I found. Thank you so much sir.

  • @KrishnaKumar-lb6yw
    @KrishnaKumar-lb6yw 5 лет назад +22

    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 4 года назад +2

      That gonna make us more and more dumb.

    • @vinoddiwan5792
      @vinoddiwan5792 4 года назад +1

      @@nikhilbadyal have You written evert code by yourself? No

    • @satyamgaba
      @satyamgaba 4 года назад +4

      @@vinoddiwan5792 how do you know he has not written?

  • @x.0726
    @x.0726 4 года назад +12

    Wow! This is beyond my expectations... this is simple and elegant .. Thank you so much for providing such great content.

  • @srinathakarur9798
    @srinathakarur9798 3 года назад +5

    Simply I am saying Thank U very much sir and very deserve personality. May GOD bless him and his family.

  • @yizhang7027
    @yizhang7027 3 года назад +5

    Thank you very much!
    Your visualization of backtracking is so good.

  • @12Saqlain
    @12Saqlain 3 года назад +2

    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...

  • @abdulrahmanmustapha7486
    @abdulrahmanmustapha7486 3 года назад +1

    You are one of the best online Tutors i have ever come across

  • @harshitsharma1905
    @harshitsharma1905 11 месяцев назад +2

    One of the best teachers available for us college students over youtube. Thank you so much sir for all these videos.🥰🥰

    • @souraverdodia2812
      @souraverdodia2812 11 месяцев назад

      bro do you know why did sir left teaching and what he is doing nowadays ? do you have any idea ??

    • @harshitsharma1905
      @harshitsharma1905 11 месяцев назад

      @@souraverdodia2812 He is actually teaching on udemy, you can check his community section about his courses over udemy.

  • @rafaelnegron5662
    @rafaelnegron5662 3 года назад +4

    This is the video that truly helped me understand this concept.

  • @aqsa7141
    @aqsa7141 5 лет назад +19

    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...😞

  • @jaidevgatla9685
    @jaidevgatla9685 8 месяцев назад +1

    sir, you teach so well, and to the point, i like the way to flow the topic , thanks

  • @sheeprambeta3217
    @sheeprambeta3217 3 года назад +421

    Dislikes are from college professors who are salty that they cannot explain as well as him

  • @mahammadkhalilov1700
    @mahammadkhalilov1700 4 года назад +25

    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 :)

  • @minhphong5418
    @minhphong5418 2 года назад +1

    you are one of the best teachers I've known. Thank you so much teacher!

  • @ShriTech-mp7pv
    @ShriTech-mp7pv 4 года назад +2

    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.

  • @austincarrowraces9080
    @austincarrowraces9080 3 года назад +5

    Thank you Abdul, your videos have helped me through Data Struct. & Algorithms. Without you I would have failed.

  • @csspms7970
    @csspms7970 3 года назад +3

    Best lecture ...May Allah bless you sir, Adul Bar

  • @sachinshilwal71
    @sachinshilwal71 3 года назад +8

    Just realized our teacher watches your videos before teaching us. What a legend

  • @jewwantcady
    @jewwantcady 3 года назад +1

    In a few minutes you did it for me. Excellent! Thank you!

  • @umarrehankhan6350
    @umarrehankhan6350 3 месяца назад

    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.

  • @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

  • @neerajmahapatra5239
    @neerajmahapatra5239 2 года назад +3

    How you are so simple and clear 😁😁

  • @aashishgoyal1436
    @aashishgoyal1436 6 лет назад +5

    best algo tutorials on youtube.thank you sir

  • @DineshKumar-lq2ck
    @DineshKumar-lq2ck 3 года назад +1

    You are an angel, wish every school and institute has a teacher like you.

  • @gurjotsinghpandher3908
    @gurjotsinghpandher3908 Месяц назад

    Wow, totally amazed by the explanation!

  • @ABHISHEKYADAV-mj8yi
    @ABHISHEKYADAV-mj8yi 6 лет назад +224

    Faith in Humanity Restored

  • @vrindatiwari3925
    @vrindatiwari3925 4 года назад +1

    thanks a lot sir for this wonderful vdo ...i m using ur vdos to revise all of my concepts...thanks again

  • @PINKIKUMARI-zh8yj
    @PINKIKUMARI-zh8yj 6 лет назад +5

    i love your teaching @Abdul Bari

  • @grasstoucher856
    @grasstoucher856 2 года назад +1

    Very clear explanation sir, thank you and keep up the good work! You made my day!

  • @Stella-se1lg
    @Stella-se1lg 6 лет назад +1

    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.

  • @chinmaydas4053
    @chinmaydas4053 6 лет назад +13

    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..

  • @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.

  • @Joangiemarquez
    @Joangiemarquez 3 года назад +1

    I really enjoy your explanations, sir!

  • @raffayhussain6717
    @raffayhussain6717 2 года назад +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.

  • @shruthirekha6097
    @shruthirekha6097 3 года назад +1

    Tq sir your teaching was nice and pretty easy to understand.

  • @syedchand995
    @syedchand995 6 лет назад +2

    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

  • @uttamkarmakarece3534
    @uttamkarmakarece3534 3 года назад

    Was confused to draw recursion trees but this video me alot for understanding that

  • @FantaPopRockz
    @FantaPopRockz Год назад

    I love himm he explains so well

  • @ArjunSingh-ew6ob
    @ArjunSingh-ew6ob 10 месяцев назад

    best video on Backtracking

  • @inversemetric
    @inversemetric 4 года назад +1

    You are an incredible teacher, thank you

  • @brunospring1130
    @brunospring1130 Год назад +1

    abdul bari é uma lenda!

  • @hotaru6765
    @hotaru6765 6 лет назад +1

    Best teacher for Analysis nd design of Algo period!!

  • @abhiireddy6
    @abhiireddy6 4 года назад

    such a simple and elegant explanation

  • @MK185054
    @MK185054 3 года назад +1

    simplicity beats complexity!

  • @shammya9446
    @shammya9446 6 лет назад +1

    Appreciation from Bangladesh, Thanks a lot sir

  • @SourovDattacse
    @SourovDattacse 5 лет назад

    You are a lecture understanding approach is very good. and you have a powerful voice!

  • @poojamundluru4460
    @poojamundluru4460 4 года назад

    This vedio helps so much in this pandemic sir

  • @OverLordOfDa3rdWorld
    @OverLordOfDa3rdWorld 2 года назад

    You are AMAZING!! Thank you so much for everything that you do!!!!!

  • @amerdelic8710
    @amerdelic8710 2 года назад +5

    Moral of the story, never let a girl get between you and your boy.

  • @AmolAghav
    @AmolAghav 4 года назад

    Great video. It was very easy to understand because of your explanation. Thank you!

  • @dakshitalal2898
    @dakshitalal2898 4 года назад +5

    love the content but would appreciate if it would have 4x speed option
    thx big fan

  • @rutustup396
    @rutustup396 3 года назад

    You are awesome explaining complicated things 👏👏

  • @muhammadrashadyusuf543
    @muhammadrashadyusuf543 Год назад

    Simple and Elegant

  • @ramankumar41
    @ramankumar41 Год назад

    Nice explanation !

  • @sozibrayhan1622
    @sozibrayhan1622 9 месяцев назад +1

    Thank You sir

  • @AmitKumar-cf9zh
    @AmitKumar-cf9zh 6 лет назад +2

    really awesome sir, I love that way of your teaching

  • @shivadityameduri9973
    @shivadityameduri9973 Год назад

    Very nice example!

  • @antbyron
    @antbyron 5 лет назад

    Very good instructor!

  • @mohammedadel8948
    @mohammedadel8948 2 года назад

    Thank you for your hard work.

  • @azeeztaiwo2802
    @azeeztaiwo2802 4 года назад +1

    great video, would have loved you to work through coding this .

  • @davidallam4671
    @davidallam4671 2 года назад

    great teaching sir

  • @Tommy-dd5pz
    @Tommy-dd5pz 4 года назад +2

    Such a great explanation!

  • @chenghongyu626
    @chenghongyu626 3 года назад +1

    excellent work!!!

  • @EmnaGHARBI21
    @EmnaGHARBI21 5 лет назад +1

    Thank you the explanation is so clear

  • @pradeepmondal4943
    @pradeepmondal4943 4 года назад

    U explain so amazingly

  • @TOI-700
    @TOI-700 3 года назад

    Why sir is not uploading videos nowadays ?,where can I see latest videos,you were my the only teacher, please upload 🙏

  • @rajat1548
    @rajat1548 5 лет назад +2

    Thank you, sir, for such a beautiful video

  • @sowjanyachinnu1763
    @sowjanyachinnu1763 3 года назад

    Woww wonderful teaching sir

  • @ShubhamSingh-lu1gy
    @ShubhamSingh-lu1gy 4 года назад +1

    careful, he's a hero!

  • @rakeshsonti
    @rakeshsonti 6 лет назад +2

    Well explained sir...,..
    Thankyou soo much

  • @namangupta9582
    @namangupta9582 4 года назад

    Only one thing to say- thanks ❤️❤️

  • @elisadistante3511
    @elisadistante3511 7 месяцев назад +2

    Grazie.

  • @silmendor
    @silmendor 3 года назад

    Great explained, thank you

  • @chiranjeevisaride
    @chiranjeevisaride 4 года назад +1

    Amazing totally loved it!

  • @arvindynr
    @arvindynr 3 года назад

    nicely explained. there is one common problem of printing all possible combinations of a string containing alphabets. Can we use backtracking in it?

  • @mandilal94
    @mandilal94 6 лет назад

    Awesome explanation sir.Thank you

  • @SonuSonu-tk5pk
    @SonuSonu-tk5pk 6 лет назад +4

    sir ji , make videos on segment tree , dp with bitmasking , centroid decomposition , heavy light decomposition ,
    matrix exponentiation and geometrical algorithms like convex hull , line sweep , plane sweep etc.
    make more videos on advance graphs and trees algorithms.
    Thanks !

  • @jayanthychakrapani3553
    @jayanthychakrapani3553 2 года назад

    Sir thank you so much for your explanation. I am so impressed and it is very helpful for my studies. can you please teach us how to do forward checking to find the solutions?

  • @gawarivivek
    @gawarivivek 4 года назад

    Thanks Sir!! Explanation in simplicity!! :)

  • @PretheshP
    @PretheshP 3 года назад +1

    Sir thank you so much

  • @christiankapsales673
    @christiankapsales673 5 лет назад

    This guy is good.

  • @john.dough.
    @john.dough. Год назад

    great lesson!

  • @elias043011
    @elias043011 2 года назад

    so easily explained

  • @koffithegreat
    @koffithegreat 5 лет назад +1

    this man just save me on my final tonight right now thank you please make more videos

  • @rcopeland999
    @rcopeland999 4 года назад

    clear explanation, thanks!

  • @sheetaltewatia8797
    @sheetaltewatia8797 4 года назад

    Thank u soo much sir for ur nice explanation

  • @roccosen3331
    @roccosen3331 5 лет назад +1

    Amazing teacher!

  • @devendrasingh9891
    @devendrasingh9891 5 лет назад

    Thanku sir backtracking ka video apka milgya

  • @vivekach1
    @vivekach1 6 лет назад +1

    Awesome explanation. Thank you :)

  • @sidharth1452
    @sidharth1452 3 года назад +2

    Long live legend 👑