Backtracking made easy | Algorithmic Paradigms | Real life example | Study Algorithms

Sdílet
Vložit
  • čas přidán 23. 07. 2024
  • To see more videos like this, you can buy me a coffee: www.buymeacoffee.com/studyalg...
    The dictionary meaning of backtracking is to retrace your own steps. But how is this useful in computer programming. There are certain problems where only only way could lead you to the correct answer, and to reach that solution you need to revert back to your previous state. Hence backtracking. Watch this video to understand what kind of problems require a backtracking algorithmic approach along with an example of your favorite game.
    Chapters:
    00:00 - Intro
    01:38 - Problem statement and description
    02:39 - Method 1: Using randomization
    05:10 - Method 2: Be smart and backtrack
    09:32 - Sample problem
    13:46 - Final Thoughts
    📚 Links to topics I talk about in the video:
    Brute Force Method: • Brute Force algorithms...
    Recursion Algorithmic Paradigm: • Recursion paradigms wi...
    Trees: • Binary Trees Introduct...
    Playlist on Algorithmic Paradigms: • Algorithmic Paradigms
    📘 A text based explanation is available at: studyalgorithms.com
    📖 Reference Books:
    Starting Learn to Code: amzn.to/36pU0JO
    Favorite book to understand algorithms: amzn.to/39w3YLS
    Favorite book for data structures: amzn.to/3oAVBTk
    Get started for interview preparation: amzn.to/39ysbkJ
    🎥 My Recording Gear:
    Recording Light: amzn.to/3pAqh8O
    Microphone: amzn.to/2MCX7qU
    Recording Camera: amzn.to/3alg9Ky
    Tablet to sketch and draw: amzn.to/3pM6Bi4
    Surface Pen: amzn.to/3pv6tTs
    Laptop to edit videos: amzn.to/2LYpMqn
    💻 Get Social 💻
    Follow on Facebook at: / studyalgos
    Follow on Twitter at: / studyalgorithms
    Follow on Tumblr at: / studyalgos
    Subscribe to RSS feeds: studyalgorithms.com/feed/
    Join fan mail: eepurl.com/g9Dadv
    #backtracking #programming #algorithms

Komentáře • 48

  • @MrKB_SSJ2
    @MrKB_SSJ2 Před rokem +15

    One of the best explanations of backtracking on youtube. Thank you !

  • @KarlSchoch
    @KarlSchoch Před 3 měsíci +2

    This was an incredible description of a really tricky concept. I like that he went with very simple and clear examples (sudoku solver), since a lot of videos on this concept choose overly abstract and complex examples that don't allow you to fully "get" the underlying concept.

  • @adududuke3995
    @adududuke3995 Před rokem +4

    Simple and precise explanation. Thank you

  • @shreyabisen4729
    @shreyabisen4729 Před 6 měsíci +2

    Great explanation. Thank you for helping out!

  • @cesarlara3974
    @cesarlara3974 Před měsícem

    first time understanding this concept after watching several videos. Thanks for using a simple real life example for this!

  • @fancyAlex1993
    @fancyAlex1993 Před 4 měsíci +1

    This is the best explanation for backtracking.

  • @udayrajvadeghar8555
    @udayrajvadeghar8555 Před 6 měsíci +3

    thank you so much for this amazing explanation!!

  • @thellaidhinesh8646
    @thellaidhinesh8646 Před rokem +2

    i understood the term back tracking, choosing mario was a good option for explaining. Thanks bro

  • @user-gg2vm3lr1x
    @user-gg2vm3lr1x Před 4 měsíci +1

    Thank you for providing the best explanation.

  • @kiranpesarlanka1752
    @kiranpesarlanka1752 Před 4 měsíci +1

    Great Explanation Nikhil. Thank you!!

  • @barakathumar3129
    @barakathumar3129 Před 4 dny

    Keep uploading more videos your teaching technique is awesome

  • @lucascamposmartinsferreira4358
    @lucascamposmartinsferreira4358 Před 2 měsíci +1

    Thank to share the knowledge man.

  • @mjeevan2408
    @mjeevan2408 Před rokem +3

    hi, I started to learn backtracking Algorithm I saw many videos, but this video helps me lot thankyou :)

  • @sazeebulbashar5686
    @sazeebulbashar5686 Před 5 měsíci +1

    Love this explanation.....

  • @pranaypampana4190
    @pranaypampana4190 Před 4 měsíci +1

    i am watching this recurssion videos in recurssion manner.. i started watching subsets question from there you are adding linked video in description

  • @EgorChebotarev
    @EgorChebotarev Před 2 měsíci +1

    nice explanation

  • @albdim1
    @albdim1 Před rokem +6

    Studies work like Backtracking. Although you may fail at a Bachelor's you have your high school Diploma saved. So, you can start another Bachelor's. And so on ...

  • @snehalatha7
    @snehalatha7 Před rokem +2

    Tqs brother it's really good & i got a basic knowledge of Backtracking.Thank you 😊

  • @rasdhdg
    @rasdhdg Před rokem +2

    Beautiful ❤️

  • @ismailelabbassi7150
    @ismailelabbassi7150 Před 9 měsíci +1

    great keep going

  • @fantasy9960
    @fantasy9960 Před 2 lety +4

    this is really good, thank you sir!

  • @thomanani6826
    @thomanani6826 Před rokem +1

    AWESOME BRO

  • @ontogeekchic
    @ontogeekchic Před 8 měsíci +1

    Good explanation

  • @unbking4190
    @unbking4190 Před 2 lety +2

    Nice

  • @mahalakshmin2394
    @mahalakshmin2394 Před 2 lety +3

    Thanks for the explanation in the most simplest way..

  • @Tom-tn9cf
    @Tom-tn9cf Před 29 dny

    Great explanation, Whilst I understand the concept. Whenever I come across a backtracking problem I seem to get stuck. Any tips or suggestions on this?

  • @Pwn-ki8zb
    @Pwn-ki8zb Před 10 měsíci

    Thanks bro

  • @kadirali7284
    @kadirali7284 Před rokem +1

    👍Nice explanation !

    • @nikoo28
      @nikoo28  Před 11 měsíci

      Glad you liked it!

  • @instagramlol9853
    @instagramlol9853 Před 9 měsíci +1

    Subscribed

  • @user-dx4un7gg2z
    @user-dx4un7gg2z Před 2 dny

    you are awesome

  • @muhammadmaawaz1221
    @muhammadmaawaz1221 Před 6 měsíci +1

    Love from earth

  • @shivraj940
    @shivraj940 Před 9 měsíci +1

    Please do n-queen problem

  • @mjeevan2408
    @mjeevan2408 Před rokem +3

    sir can you explain using problems on backtracking let code problem's.

    • @nikoo28
      @nikoo28  Před rokem

      check out other videos, I am covering problems one by one. Thank you for being so patient :)

  • @abirpaul9027
    @abirpaul9027 Před 2 lety +3

    Top explanation

  • @Dilipkumar-nr6fh
    @Dilipkumar-nr6fh Před 11 měsíci +1

    ❤😂 Excellent

  • @mikerockmusic2779
    @mikerockmusic2779 Před 11 měsíci +1

    This is a fantastic explanation. But I still can't wrap my head around the implementation sadly.

    • @nikoo28
      @nikoo28  Před 11 měsíci

      what part are you facing a problem with?

  • @looklook6075
    @looklook6075 Před 5 měsíci +2

    life itself is a backtracking algorithm 😢

  • @DeScout
    @DeScout Před 7 měsíci +1

    So backtracking is simply tree brute forcing. I got it now.

    • @nikoo28
      @nikoo28  Před 7 měsíci +1

      Brute forcing but with optimizations…fail fast when required

  • @ScorpusMugnes
    @ScorpusMugnes Před měsícem

    Nice