A* Search

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ธ.ค. 2024

ความคิดเห็น •

  • @7sparksai
    @7sparksai 6 หลายเดือนก่อน +98

    7 years later, this is still best video available

    • @miladnoori2098
      @miladnoori2098 5 หลายเดือนก่อน

      i agree

    • @pranavdeshmukh311
      @pranavdeshmukh311 4 หลายเดือนก่อน

      I agree

    • @nocredits8066
      @nocredits8066 3 หลายเดือนก่อน

      i gree

    • @johnlevine2909
      @johnlevine2909  3 หลายเดือนก่อน +25

      Thank you!

    • @a.m.4154
      @a.m.4154 3 หลายเดือนก่อน +2

      He's the only one that got it right imo.

  • @NikosXouselas10
    @NikosXouselas10 3 ปีที่แล้ว +113

    Absolute legend. This dude has literally been more helpfull than I could ever imagine! Insane work!

  • @jm.101
    @jm.101 14 วันที่ผ่านมา +1

    Calm repetition of important facts/concepts is what makes this so helpful. It's like my Latin teacher always said: Repetitio est mater studiorum.

  • @tashijawed5472
    @tashijawed5472 2 ปีที่แล้ว +19

    Great Explanation, as always. Just want to add one thing. at 9:43 When we reached node G2 with a cost of 13, we will stop the algorithm and won't go further with "E" node. Why? because it uses Priority Queue, the algorithm will stop once it finds a Goal node with a cost "less than or equal" to costs of other nodes. And it makes sense!! because once you reached G2 with a cost of 13, even if you have another node with the same cost, there's no point in checking it because it will only add to the cost.

    • @peterlawrence3505
      @peterlawrence3505 ปีที่แล้ว +2

      But if the heuristic was not admissible this would not be the case right?

  • @whiningmachine
    @whiningmachine 2 ปีที่แล้ว +10

    Thank you for this explanation. You have no idea how many pages and videos I had to go through before somebody explained that the heuristic indicates the estimated cost to a goal node. I had no idea why we only added the destination node's heuristic to the total (and not the other nodes' heuristics along the path), and now I know. Thanks!

  • @mostafakarimi1733
    @mostafakarimi1733 5 ปีที่แล้ว +65

    One of the best explanation of A* algorithm I've ever seen, Thank you Sir and I hope you create more videos about AI

  • @terrycamerlengo5492
    @terrycamerlengo5492 4 ปีที่แล้ว +7

    This channel with John Levine is awesome. What a great lecturer! Great channel! Thank you!

  • @tollwutpinguin
    @tollwutpinguin 11 หลายเดือนก่อน +2

    Thank you for providing free educational content of such high quality! The world needs more lecturers like yourself

  • @nitinneo7
    @nitinneo7 5 ปีที่แล้ว +2

    The most coherent explanation of A* algorithm with an example. Thank you for saving our time and energy.

  • @dennissaluaar9103
    @dennissaluaar9103 5 ปีที่แล้ว +4

    I am studying an introductory course in Artificial Intelligence here in Gothenburg, this short lecture made the A* very clear to me. Thank you!

  • @nihilrocks
    @nihilrocks ปีที่แล้ว

    Truly a godsend! Saved me 5 marks on my A levels 15mins before the exam. Couldn't have explained it better!

  • @Geek-jx3gw
    @Geek-jx3gw 3 ปีที่แล้ว +7

    throwback 2 years ago, you helped me to pass my exam and understand this algorithm really well

    • @balochx
      @balochx 3 ปีที่แล้ว +1

      How's life?

    • @Geek-jx3gw
      @Geek-jx3gw 3 ปีที่แล้ว +1

      @@balochx Amazing

    • @balochx
      @balochx 3 ปีที่แล้ว +1

      @@Geek-jx3gw stay amazing!

    • @Geek-jx3gw
      @Geek-jx3gw 3 ปีที่แล้ว +3

      @@balochx i didnt know what to answer but, life is not organized or as i wanted but it is better now
      2 years before I was a stressed person, stressed about a lot of things including my future, grades, etc
      now, i am older and i changed into a better version of me i guess, less stressed, i love my struggles, i love to help people as much as i can, I’m trying my best to be good enough for me and my family
      so yeah life is amazing now🙌🏻

    • @balochx
      @balochx 3 ปีที่แล้ว +4

      @@Geek-jx3gw thank you so much for sharing. and yes, ups and downs are a part of life. no one is completely satisfied with his/her life, we just have to embrace it and strive for the good. helping people for no agenda brings out huge happiness.
      and it was nice knowing about your story. I love hearing common people rather than famous people who are faking everything.
      Stay blessed 🙌

  • @koibathekingofgames8522
    @koibathekingofgames8522 ปีที่แล้ว

    The best exemplification that I found until now, It`s worth watching.

  • @coxixx
    @coxixx 7 ปีที่แล้ว +123

    the best teacher on the web

    • @johnlevine2909
      @johnlevine2909  7 ปีที่แล้ว +19

      Thanks. Glad you liked it.

    • @abhishekravichandran6965
      @abhishekravichandran6965 4 ปีที่แล้ว +2

      th-cam.com/channels/M-yUTYGmrNvKOCcAl21g3w.html
      she is the best bruh

    • @runneypo
      @runneypo 4 ปีที่แล้ว +1

      @@abhishekravichandran6965 she has no video on a star though

    • @vakiljay8686
      @vakiljay8686 3 ปีที่แล้ว +5

      @@abhishekravichandran6965 S I M P

    • @heer1359
      @heer1359 3 ปีที่แล้ว +2

      @@abhishekravichandran6965 S I M P

  • @mohammadvasegh1754
    @mohammadvasegh1754 4 ปีที่แล้ว +4

    in our country, today is teacher's day good sir. thank you for all of your clarification and examples that you've solved and happy teacher's day to you

    • @johnlevine2909
      @johnlevine2909  4 ปีที่แล้ว +1

      Thank you Mohamad! I'm really glad you find the videos useful.

  • @bars5762
    @bars5762 3 ปีที่แล้ว +1

    I'm not very good in English but your explaination is very easy to listen and understand. Thank you very much!

  • @husseinsylla4850
    @husseinsylla4850 2 ปีที่แล้ว

    Hello Sir,
    Best tutorial I have covered on A* algorithms. Clear and complete, include all explanations for f(n)=g(n)+h(n) and over-estimations of theoritical heuristics. Brilliant. Thank you so much.

  • @willardmakinishi6980
    @willardmakinishi6980 3 ปีที่แล้ว +2

    Thank you so much Mr. Levin. Trust me these things did not make any sense in the first encounter with my Lecturer with due respect to him. I have just watched the first minute and i Have decided to download the tutorial. Hopefully I will find your explanations on all the search Algorithms. God bless you and I hope to understand these things before June for my exams

  • @NinaHProductions1
    @NinaHProductions1 6 ปีที่แล้ว +132

    You are the best teacher and provide the cleanest of explanations - at 5:53 the A* score for A is 17 (5 + 3 +2 + 7) instead of 20 I think?

    • @que_93
      @que_93 6 ปีที่แล้ว +13

      It should be 17, not 20.

    • @ngusumakofu1
      @ngusumakofu1 6 ปีที่แล้ว +4

      Indeed it should be 17

    • @JackyShaw
      @JackyShaw 6 ปีที่แล้ว +2

      I agree too.

    • @know_how5661
      @know_how5661 6 ปีที่แล้ว +2

      yup... its 17

    • @sussananukem7101
      @sussananukem7101 5 ปีที่แล้ว +2

      Nope... He's correct.
      He readded the path cost from A to B since we are revisiting A.
      That is: 5+3+(3)+2+7 =20

  • @mvvkiran
    @mvvkiran 4 ปีที่แล้ว +1

    So, two points I believe worth mentioning for the General Public's information sake:
    1. The Search considered here is a GRAPH Search - NOT a Tree search. John Levine generally considers all Graph Search for all Search Algorithms - at least in the Uninformed & this A* Algs, so far
    2. The REASON why the Heuristic MIGHT BE LESS THAN the Actual Cost of Reaching of a Goal is Because the Basic Heuristic considered for an A* Search is a Straight Line Distance - SLD. And we a know a PATH is NOT ALWAYS a Straight Line. How much ever Better a Heuristic you introduce, you'll never get the Actual Cost of Reaching a Goal State to be less than it. The Best Heuristic will Predict the EXACT cost of reaching a Goal State (only with ZERO Path Costs of course as A* Cost = Path Cost + Heuristic Cost)
    Hope this helps.

  • @KuliahInformatika
    @KuliahInformatika 2 ปีที่แล้ว +1

    I love the way you explain the algorithm... easy to understand...

  • @breadsteeth2562
    @breadsteeth2562 2 ปีที่แล้ว

    Love from China. Clear explanation and it helps me a lot. Thank you!

  • @Leyan_leyuna
    @Leyan_leyuna 16 วันที่ผ่านมา

    calm,simple and interestig video..........
    i liked it Thanks alot

  • @zaid_marridi
    @zaid_marridi 7 ปีที่แล้ว +6

    Thank you for this simple and great explanation... You're simply the best at this.
    Clean, clear, easy and very informative
    What else could someone ask for?!!!

  • @555to_infinity
    @555to_infinity 5 ปีที่แล้ว +2

    Wow. Perfect lecture on A* search. Highly recommended!

  • @dushanrathnayake5007
    @dushanrathnayake5007 3 ปีที่แล้ว +4

    Just brilliant! Thank you so much! At 5:53 the A* score for A is 17 (5 + 3 +2 + 7) instead of 20 I think.

  • @saiprasad8311
    @saiprasad8311 5 ปีที่แล้ว

    Good example. Makes it so easy to understand admissibility issue.

  • @OsamaAlmas
    @OsamaAlmas 7 ปีที่แล้ว +6

    This is amazing, You deserve more subscribers!!!

  • @AsomyTraiget
    @AsomyTraiget 5 หลายเดือนก่อน

    Thank you very much for these efforts, greetings from Libya

  • @sagartalagatti1594
    @sagartalagatti1594 2 หลายเดือนก่อน

    God level explanation of the concept!!!

  • @HafizAsimNawaz
    @HafizAsimNawaz 7 ปีที่แล้ว +2

    I love this man...... you rocked sir... hats off

    • @johnlevine2909
      @johnlevine2909  7 ปีที่แล้ว +1

      Thank you! Glad you found it useful.

  • @siddarvind6410
    @siddarvind6410 ปีที่แล้ว

    A godsend. This is saving me in my CS Discrete Math class, thank you so much!

  • @iampujan
    @iampujan 6 ปีที่แล้ว +1

    Loved the video. Clear and Understandable. Thanks Professor John. Looking forward for more videos.

  • @MohammadAwad-s8y
    @MohammadAwad-s8y 11 หลายเดือนก่อน +1

    Hello Prof John, I want to thank you for the great and clear explanation!
    I just have one question, shouldn't the total A* score at @5:58 be (5+3+2)+7 = 17 instead of 20?

    • @therealajmelmuadz
      @therealajmelmuadz 8 หลายเดือนก่อน

      I was thinking the exact same thing! Glad I'm not the only one who was wondering if this is an error. Still not sure why he said 20 instead of 17.

  • @AshutoshSingh-do4ts
    @AshutoshSingh-do4ts 3 ปีที่แล้ว

    Thank you sir for the explanation, it helped me a lot to understand the A* algorithm.

  • @mohamedkhater7558
    @mohamedkhater7558 11 หลายเดือนก่อน +1

    this man is a hero

  • @coderlife2706
    @coderlife2706 3 ปีที่แล้ว +1

    This is the Professor we need, but don't deserve.

  • @nilsmartel2295
    @nilsmartel2295 4 ปีที่แล้ว

    you're a most talented teacher. Thank you

  • @ComputerGuru-tk2hg
    @ComputerGuru-tk2hg 3 หลายเดือนก่อน

    This is well explained thank you sir better explained than my prescribed textbook

  • @TheSophiaLight
    @TheSophiaLight 3 ปีที่แล้ว

    Clear, patient, simple. Thank you.

  • @shreengul6488
    @shreengul6488 6 ปีที่แล้ว

    Great job sir!!! You explain things very clearly and unambiguously . No need to watch any other vedio after watching this.

  • @vivekpadman5248
    @vivekpadman5248 10 หลายเดือนก่อน +2

    Where do we get the heuristics from?

  • @simongrome9073
    @simongrome9073 ปีที่แล้ว

    These videos are super helpful in explaining stuff I didn't get from my textbook! Thank you!

  • @SaifUlIslam-di5xv
    @SaifUlIslam-di5xv 4 ปีที่แล้ว

    It's a treat watching this as an introduction to what A* is. :D

  • @zijunliu7765
    @zijunliu7765 6 ปีที่แล้ว

    You explained way better than my professor! Thank you! Now I finally understand it.

  • @cuchuoisalay9263
    @cuchuoisalay9263 7 ปีที่แล้ว

    I would like to say thanks to you. Your tutorial about A* is very exciting!

  • @lianghaoquan
    @lianghaoquan 4 ปีที่แล้ว

    Thank you for this great video! Love your clear explanation and your voice!

  • @nethmagunathilaka
    @nethmagunathilaka 5 ปีที่แล้ว +1

    Best place to learn A*. U save my day!

  • @SiEmG
    @SiEmG 4 ปีที่แล้ว

    Hello Mr. John Levine and the rest of the people IN THE COMMENTS :). Mr. Levin thank you very much for your help. You give totally clear instructions!! :) My only question is this: is G node visited also? I think in A* goal state is also added in the visited list, right?

  • @ecekucukpehlivan9779
    @ecekucukpehlivan9779 5 ปีที่แล้ว

    These videos are very educational and useful. Thank you so much!

  • @Dr.SamirKumarSadhukhan-jw1wk
    @Dr.SamirKumarSadhukhan-jw1wk 21 วันที่ผ่านมา

    Sir, I request you to make another video on the state-of-the-art bidirectional heuristic search BAE*.

  • @sibusisondimande5209
    @sibusisondimande5209 6 ปีที่แล้ว

    Thanxxxx John. You're the best !!!!!

  • @prakashbhattarai947
    @prakashbhattarai947 ปีที่แล้ว

    If both heuristic and cost of paths are guranteed to be positive, is it necessary to store A* score in visited list ? 2:12

  • @jamesthuo8763
    @jamesthuo8763 6 ปีที่แล้ว +8

    Your videos are the best. Please do Greedy and other topics

  • @vqvinh0405
    @vqvinh0405 หลายเดือนก่อน

    this is the best video for A* algorithm

  • @ramiyousif8024
    @ramiyousif8024 ปีที่แล้ว

    Best video for Heuristic algorithm!! Thank you !!

  • @robs939
    @robs939 3 ปีที่แล้ว

    John the Goat! Thanks man!

  • @pantepember
    @pantepember 4 ปีที่แล้ว +4

    5:51 Did you ignore A because it was already visited or it would cost more (20) than in its first appearance (12)?
    10:25 Shouldn't have we finished the search at G2 (13) instead of going on with E (13)?
    11:15 You ended the search by choosing G2 (13) this time while we still had F (21). Was that because F cost more than G2 did?
    Thank you for the video.

    • @anirvangoswami
      @anirvangoswami ปีที่แล้ว +1

      1. Because it was already visited.
      2. We are following the alphabetical order as a tie-breaker.
      3. Yes, we give priority to the lowest-cost node in the fringe.

  • @schrodingerscat3912
    @schrodingerscat3912 6 ปีที่แล้ว

    this guy is good. he's on my team. other videos on A* are full of fluff distractions giddiness and terrible form when it comes to conveying a simple idea. Good work John Levine

  • @Alyson7924
    @Alyson7924 ปีที่แล้ว +1

    A* is beautiful

  • @YUMYUMINMYTUMTUM
    @YUMYUMINMYTUMTUM 6 วันที่ผ่านมา

    Still the best video available on A* search!

  • @Peter-bg1ku
    @Peter-bg1ku 3 ปีที่แล้ว

    Your explanation is amazing. Thank you!

  • @abdolvakilfazli2488
    @abdolvakilfazli2488 5 ปีที่แล้ว

    Insanely clear explanation. Hope you add more details about completeness, optimality and complexity

  • @bamboom9184
    @bamboom9184 3 ปีที่แล้ว

    I am serious like wow loved the lecture was soooooo interesting please keep this up you will be helping alot of ppl since most teachers dont know what they are talking about

  • @Mousta_alpha94
    @Mousta_alpha94 5 ปีที่แล้ว

    thanks Mr john levine your explanation is excellnt

  • @niled.r.1639
    @niled.r.1639 2 ปีที่แล้ว

    What to consider when defining the heuristic values? ...or how to calculate these values? - (Normally?) the "costs" represent distances or times, what other examples have you seen?

  • @abdoudjerdi9193
    @abdoudjerdi9193 ปีที่แล้ว

    thank you so much i was really struggling to understand it but you make really clear and simple

  • @LarryP248
    @LarryP248 ปีที่แล้ว +1

    This is important content. A related book I read was also significant. "Game Theory and the Pursuit of Algorithmic Fairness" by Jack Frostwell

  • @LucasofAppalachia
    @LucasofAppalachia 6 ปีที่แล้ว

    Absolutely phenomenal explanation. Thank you for this.

  • @AnsumanMohanty
    @AnsumanMohanty 6 ปีที่แล้ว

    Clear and concise. But could you share any resource as to why the heuristic should underestimate the cost ?

  • @kuanghuang2773
    @kuanghuang2773 6 ปีที่แล้ว

    very clear, very smooth, I like the teaching! thanks!

  • @rishavlalshrestha9755
    @rishavlalshrestha9755 7 ปีที่แล้ว +1

    Amazing video. Learned very much. Thank you. But on what basis heuristic are measured as it alters the way tree flows ?

    • @johnlevine2909
      @johnlevine2909  7 ปีที่แล้ว +6

      The heuristic function h(Si) is a quick-to-compute estimate of the cost to get from state Si to a goal state. The function you use is dependent on the problem being solved - for example, in robot navigation, you might use the Euclidean distance between the point that the robot is at and the goal state. The heuristic function has to have certain properties in order to work well - for A*, the most important is that it must be admissible - that is it must never over-estimate the cost. Hope this helps!

    • @rishavlalshrestha9755
      @rishavlalshrestha9755 7 ปีที่แล้ว

      Thank You John.😀

  • @Astronomy.532lifenspace
    @Astronomy.532lifenspace 4 หลายเดือนก่อน

    Thank you. I want to know why considering only one path as the goal state. I have a burning assignment.

  • @muinmohammadmozammel281
    @muinmohammadmozammel281 4 ปีที่แล้ว

    Short and to the point explanation. Thanks.

  • @ngusumakofu1
    @ngusumakofu1 6 ปีที่แล้ว +1

    Thank you sir. Made it so much clearer

  • @baldbadger7644
    @baldbadger7644 4 ปีที่แล้ว

    the lecture was dilivered in a logical and clear manner, thank you so much

  • @harpreetset
    @harpreetset 7 ปีที่แล้ว +1

    really insightful. I am learning AI and have been reading about agent searches for a while. This one is quite helpful. Can you also cover big O notations for time and space for these algorithms? it will help in analyzing in what environments it makes sense to apply them.

    • @johnlevine2909
      @johnlevine2909  7 ปีที่แล้ว +10

      Thanks. I'm planning to do a video comparing the algorithms, including the time and space requirements, in due course.

  • @mahwashshahid2499
    @mahwashshahid2499 9 หลายเดือนก่อน

    @johnLevine Kindly share assessment problem as well with accurate heuristics.

  • @nandudara3845
    @nandudara3845 4 ปีที่แล้ว

    This is a perfect video for understanding A* algorithm

  • @ShinnyxAKAvincent
    @ShinnyxAKAvincent 6 ปีที่แล้ว

    very clear speech, awesome explanation. Thanks a lot!

  • @Alex_Yong
    @Alex_Yong ปีที่แล้ว

    A question is why the visited nodes don't need to be visited again, I think it may skip the node of the optimal path...

  • @뚝딱-q8j
    @뚝딱-q8j 3 ปีที่แล้ว

    How is the goal state considered in a situation with ties?
    If using alphabetical order, do goal states count as the alphabet G?

  • @zhenyufan8988
    @zhenyufan8988 6 ปีที่แล้ว

    It's a great illustration!! But can u give us a example of how to decide the estimate value from certain node to a goal node?

  • @muhammadhabib3442
    @muhammadhabib3442 7 ปีที่แล้ว +11

    Great Tutorial, Please also Make another tutorial on the Optimality proof of A∗

    • @johnlevine2909
      @johnlevine2909  7 ปีที่แล้ว +2

      Many thanks, and thanks for the suggestion - I think that's a great idea.

  • @alfianabdulhalin1873
    @alfianabdulhalin1873 7 หลายเดือนก่อน

    Thanks John. This video is a lifesaver.
    BTW, I've a question. Say I want to drive to the nearest city, and he wants to choose between 3 cities on a map (i.e. 3 goals states/nodes). So does this mean I have to calculate the A* score of each goal state, and then choose the smallest one? Thanks!

  • @justafreak15able
    @justafreak15able 6 ปีที่แล้ว

    wawo you explained it very simply and quickly.

  • @samsunny2362
    @samsunny2362 6 ปีที่แล้ว

    Thank you sir for this clear explanation of A* search.

  • @cieslak4004
    @cieslak4004 6 ปีที่แล้ว

    THANK YOU! Greetings from Poland

  • @matteomastandrea5680
    @matteomastandrea5680 2 ปีที่แล้ว

    This guys unbelievably skilled with a whiteboard marker

  • @melihekinci7758
    @melihekinci7758 2 ปีที่แล้ว

    Very good explanation.. thank you

  • @alibrahim4686
    @alibrahim4686 7 ปีที่แล้ว

    You are fantastic. Please make more videos.

  • @faox7565
    @faox7565 7 ปีที่แล้ว

    what a clean teaching you are the best

  • @rashidafoodcornervlog654
    @rashidafoodcornervlog654 3 ปีที่แล้ว

    Brilliant man you should make more videos

  • @drc-ek2zu
    @drc-ek2zu 3 ปีที่แล้ว

    AT 10:00, don't you mean 15? where or why did it go to 21? In the end, we can see that the path was right, but I give pause to arithmetic in error in any of these examinations. And if we have these errors, should we just overlook them? I believe a correction is in order if not just to settle the masses who found the error.

  • @piotrptak5507
    @piotrptak5507 7 ปีที่แล้ว

    Truly the best explanation of this algorithm we can find

  • @OzDavid
    @OzDavid 7 ปีที่แล้ว

    Amazing explanation. thanks sir

  • @MuhammadUsman-ry6tp
    @MuhammadUsman-ry6tp 5 ปีที่แล้ว

    One of the best teacher i ever seen

  • @peisongwang7960
    @peisongwang7960 3 ปีที่แล้ว

    Very Clearly!If you have courses in Coursera or Udemy, I must buy it!

  • @maximilianozavala8943
    @maximilianozavala8943 3 ปีที่แล้ว

    Amazing explanation, thank you so much!

  • @TheWheen
    @TheWheen 6 ปีที่แล้ว

    For the most left line which is ignored, as B3 -> A7 from 5:45 in the video, the cost is not 20 as said, should it be 5+3+2+7=17? How the heuristic is known ?