A* (A Star) Search and Heuristics Intuition in 2 minutes

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

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

  • @phlooph3971
    @phlooph3971 Год назад +132

    bro dropped one of the greatest algorithm explanation videos and then left

  • @abu-bakrmohamed1707
    @abu-bakrmohamed1707 2 года назад +161

    This deserves much more views , best explanation i have ever seen , maybe even the only one that explained the meaning of Heuristic data

  • @aryoseno11
    @aryoseno11 2 года назад +32

    Hands down the best explanation about A* algorithm on RUclips so far.

  • @RealMadrid2136
    @RealMadrid2136 4 года назад +77

    This was the best explanation I've seen on RUclips! So intuitive!

  • @rayankamdem6738
    @rayankamdem6738 7 месяцев назад +3

    I am amazed at how simply such a seemingly complex topic was explained. Best explanation on A* so far!

  • @AnishKrishnanPlus
    @AnishKrishnanPlus  4 года назад +57

    Q: What’s a good heurisitic function?
    A: A good heurisitc function does not overestimate the distance to the goal. This is known as admissibility. Running A* with an admissible heuristic function will always return the shortest path to the goal state.
    Q: How I get the values for a heuristic function?
    A: A heuristic value represents the estimated distance from the current node to the cheese. Imagine you’re in a room and you can smell food in the other room. You can just guess how far you are from the food in meters or some other unit of measurement. As long as your estimate is equal to or below the actual distance to the food, the A* search algorithm will work. In more complicated settings, like Pacman, you can estimate the distance between objects using something like the Manhattan distance.

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

      i know it has been many years since your upload, but still, i would like to add that a heuristic can be applied but A* will not always find the min path. This can happen IF the graph does NOT contain Euclidian distances. In that case, the heuristic must comply to an even more strict constraint named consistency. Stated as : abs( H(x,G) - H(y,G))

  • @willCrazy76881
    @willCrazy76881 Год назад +11

    I really love that you explained the heuristic as the smell of cheese. I was struggling at understanding that concept

  • @chiki1010
    @chiki1010 2 месяца назад +1

    this explained heuristics very well. Thank you. I was so confused on heuristics but after watching this video, it made me feel like I was stuck on nothing😭

  • @vlad_ussr8390
    @vlad_ussr8390 8 месяцев назад

    The best explanation ever for A* algorithm. I have been confused how it works on a graph and not a node grid and finally I see.

  • @li-pingho1441
    @li-pingho1441 3 года назад +7

    This is absolutely the best tutorial of a* algorithm I've seen in youtube. This video deserve more views !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

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

    I love this explanation, is easy to understand and fast, love it, thank you

  • @zhengfu-ym3eg
    @zhengfu-ym3eg 4 месяца назад +1

    That's an amazing example and the clearest illustration😁.Make me understand it so quickly

  • @drewandfriendsproject
    @drewandfriendsproject Год назад +3

    It's 5 am and I have a midterm on this at 1pm with a shift from 9am-12pm. Thank you

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

    literally the only indian cs video I've ever seen to be actually be good, short and informative. cheers mate

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

    The best explenation of the A* algorithm I've ever found! +1

  • @duncancamilleri8614
    @duncancamilleri8614 2 года назад +2

    Gold. You just made it so easy for everyone in such a short time. Thank you very much. You've earned a subscriber.

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

    Wow, have tried hard to understand it for like an hour and finally found this video. get me understood just in 2 mins, thanks a bunch!

  • @aie007
    @aie007 3 месяца назад +1

    Absolute gold! Great explanation!

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

    A lot better explanation than our 40 min lecture on A*

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

    that was such a nice way to introduce this concepts.

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

    I'm glad that finally I can find this video

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

    never thought a mouse looking for cheese in a maze would make me understand such an algorithm so well, thank you!

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

    Thank you, really good. Had a 3 minute or so video for Dijkstra and was looking for something quick as well for A*.

  • @zaynabb.5140
    @zaynabb.5140 10 месяцев назад

    this explained it better than my professor, tysm

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

    Bro, this is level A kind of explanation. Congrats

  • @dabocousin
    @dabocousin 6 месяцев назад +1

    Great video

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

    Simply incredible

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

    Bro you literally saved my life!

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

    Cheers to you sir! I finally understand heuristics intuition.🙂

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

    Great explanation. So it's just a priority queue that prioritizes nodes that are closer to the goal.

  • @FlyNadir
    @FlyNadir 10 месяцев назад

    Oops. It was that easy but no one explained as you men. Thanks ❤❤❤

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

    Man we need a whole explained in 2 min playlist XD

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

    super nice! what an explanation.

  • @enronenron2411
    @enronenron2411 10 месяцев назад

    bro just explained 50 mins lecture in 2 mins that I watched at 2X i.e a minute.

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

    you are my god, thank you so much my brother

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

    you explained it very clearly 👏👏👏

  • @sujith_TwiceOnce
    @sujith_TwiceOnce 10 месяцев назад

    Great Explanation. Good one.

  • @anathema5621
    @anathema5621 4 месяца назад

    icb a mouse and a piece of cheese helped me understand an algorithm so much

  • @Shaan11s
    @Shaan11s 10 месяцев назад +3

    LMAO bro 45 minutes literally in 2 minutes. This is nuts. Thanks for this

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

    Brilliant Explanation, shame it doesnt have more views

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

    Great video with very simple explanation!

  • @afrahhassan7241
    @afrahhassan7241 2 месяца назад

    You are the BEST

  • @froot_loops1274
    @froot_loops1274 2 месяца назад

    perf, best explanation

  • @modetechno7728
    @modetechno7728 11 месяцев назад +1

    I get the concept, but HOW do you estimate a distance when we don't know?

  • @kimkhuneang4663
    @kimkhuneang4663 5 месяцев назад

    YOU ARE THE GOAT

  • @ogradus
    @ogradus 9 месяцев назад

    20min concept in 2min! ❤

  • @As-iy2ki
    @As-iy2ki Год назад +2

    But how did you assign values for the distances between nodes?

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

    Great❤

  • @andreranulfo-dev8607
    @andreranulfo-dev8607 2 года назад

    A very interesting analogy.

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

    very nicely explained!

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

    amazing explanation...

  • @ComputerGuru-tk2hg
    @ComputerGuru-tk2hg Месяц назад

    So brother the a* is basically a subset of djikstras shortest path algorithm

  • @rin9330
    @rin9330 26 дней назад

    i love you please come back

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

    good one

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

    Thank you!

  • @yutao1982
    @yutao1982 10 месяцев назад

    Does Q* mean Queue (Heap) + A*? Amazing!!!

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

    Woah, super

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

    nice explanation

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

    dude you are a goat

  • @akash.t6793
    @akash.t6793 21 день назад

    How to find heuristic value ?? Is that just random numbers??

  • @Ðogecoin
    @Ðogecoin Год назад

    Dude thank you so much.

  • @LoretoGonzalez-Hernandez
    @LoretoGonzalez-Hernandez Год назад

    Who was the original creator of this video to whom credit is due, from the accent I know that it is not you who explains the video. I am interested in the content of this creator, could you please give the link or the name of the author?

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

      This video was created by Kamyar Ghiam and me. You can find our details in the description of this video.

    • @LoretoGonzalez-Hernandez
      @LoretoGonzalez-Hernandez Год назад

      Thank you for the information, I do really appreciate it

  • @the-gr8-eye
    @the-gr8-eye Год назад

    holy cow

  • @nrnayem3995
    @nrnayem3995 19 дней назад

    damn.

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

    That's so wrong, A* is more than that, heuristic is just an estimation of the total distance from that point and not the actual distance in so many cases. Also it doesn't account for the obstacles in the way and ignores that it involves backtrack from end point to determine the best/ideal way

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

    The most important part of this was not mentioned at all. How are the heuristic and distance values initially seeded?

    • @kamyarghiam9676
      @kamyarghiam9676 4 года назад +11

      Right. I think in a 2 minute video, you have to pick and choose what’s the most important thing to learn. The goal of this video was to try to give intuition behind why we use heuristics and what they actually represent, and it never claimed to cover heuristics extensively. Plus, I think your question was actually clarified in OP‘s comment above.

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

      Kam Because adding eight seconds to the video to explain how the numbers are generated would have been too much. Yeah, okay. You also missed the part of my question asking about the distance. Thanks for your passive-aggressive response, though.

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

      Hi Anthony. Sorry, I did not mean to come off as passive aggressive. You’re correct. It didn’t mention the part about distances.

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

      It depends, but one way to determine heuristic value is to calculate the distance between the point where you are standing and the end goal and add it to the total travelled node. Another way to calculate heuristic value is using Manhattan distance.

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

    and my Dumb as teacher couldnt explain it in 30 mins

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

    Thank you!