A Star algorithm | Example | Informed search | Artificial intelligence | Lec-21 | Bhanu Priya

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ส.ค. 2019
  • a star algorithm: Informed search in artificial intelligence with example

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

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

    i know im not the only computer science major preparing for a test last minute

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

      yes xD

    • @CSSANJAYR
      @CSSANJAYR ปีที่แล้ว +33

      dood i literally have 1hr for my exam and im starting the 1st topic here

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

      me too

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

      @@CSSANJAYR Bro , I'm same condition now.Just giving my first offline exam in btech. Please say how you was your exam

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

      @@arjanhazra7255 yep ,just understand the concepts don't memorize. relative the concepts with an example sum work it out

  • @alexkim-soo2845
    @alexkim-soo2845 ปีที่แล้ว +156

    If you were like me and did not know what is "heuristic value".
    code wise: its a function that take in the node and the goal, and base on a chosen formula(Euclidean, Mathattan etc) will provide an approximate distance of this node to the goal.
    If assuming euclidean then its the distance taking a straight line from A node to G node, ignoring all the path that should be taken.(like an airplane/helicopter ignoring roads)

  • @mateolopez5585
    @mateolopez5585 หลายเดือนก่อน +6

    I don't know what I'd do without Indian youtubers explaining these topics so well

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

    Best explanation of the A * algorithm I have seen. Very good. 👍

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

    This was a very lovely and clear explanation. Thank you ma'am!

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

    I did my assignment using your explanation! Thanks

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

    I searched many videos and I can surely say this is the best explanation about the a* alg.

  • @alaaelbarasi8619
    @alaaelbarasi8619 3 ปีที่แล้ว +38

    simple and straightforward. Many thanks

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

    This was very helpful, thanks so much!

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

    Your explanation is smooth like butter, madam! 💜
    Very clean and clear explanation

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

    tq aka , very useful for exams , got my exam tomorrow, thanks again!

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

    Thanks a lot. I was watching a lot of resources only to get confused. This video is clear.

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

    This was very helpful 👍🏿.. thanks so much ♥️

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

    Understood well. Thank you ma'am 😊

  • @MATTesticle
    @MATTesticle 7 หลายเดือนก่อน +1

    You have explained this very efficiently, thank you!

  • @user-sd7mj7oe7g
    @user-sd7mj7oe7g 2 หลายเดือนก่อน +16

    5hours before exam😂

  • @ezasokotela7523
    @ezasokotela7523 ปีที่แล้ว +26

    This is a remarkably clear explanation!

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

      IK right! very solid explanation!

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

    Very useful for Exams.Thanks a Lot!!

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

    It was simple and understanding easily thank you for your explanation it was helpful for my tomorrow exam

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

    Can you please explain remaining concepts of Artificial intelligence
    Which will be very helpful for our exams

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

    Thanks alot for this great efforts … very beneficial video

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

    What was the mechanism to take heuristic values ?????
    How did you come to S - 5, A- 3 so on...
    What exactly is the heuristic value ???
    In real time - Do we get this heuristic value to solve problems for finding paths. I gues No !!
    Answer is = Heuristic value is the distance from node to the Goal.

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

    right to the point; very good

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

    One question, what if S -> A -> B -> D ->G has a less cost than S -> A ->C ->G. How would the search end up with this assumption?

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

      the same process

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

      This is impossible because just SAB on its own has a cost of 7. So if we add the whole path SABDG it will be surely more than just SACG, which has a cost of 6.

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

    Thanks , explained v well. Thanks for creating video and sharing with us.

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

    I'm blown away by the quality here. I recently enjoyed a similar book, and it was top-notch. "Game Theory and the Pursuit of Algorithmic Fairness" by Jack Frostwell

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

    awesome mam , understood clearly :)

  • @user-tn1hb5zi5g
    @user-tn1hb5zi5g 4 หลายเดือนก่อน +1

    U made it very simple to understand thanks❤

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

    Am I getting this right that the HValue came from the particular node to the Target node? For example, I am at node B, and the HValue of it is 4. Meaning that from B to G (G is the target node) the approximate distance of it is 4. While approximate distance is the HValue which maybe calculated using Euclidean or Mathattan etc. Please suggest

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

    Thanks a lot for good presentation🙌

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

    Thanks for keeping it so simple!

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

    So the hold values are used to make sure we get the least costly path to the goal? That means we check at the end and see if we have the least costly path. Right? Is there any other time I need to review the hold values? Thank you.

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

    The explanation was very clear!

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

    Thank u so much...... nicely explained mam...........

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

    Really simple explanation, thanks!

  • @user-jy7ob1jg2m
    @user-jy7ob1jg2m 3 หลายเดือนก่อน

    I think i can't forget this for the hole life ..😊😊🎉thanks mam its very good explanation..👍

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

    I can only tq very much pls continue ur nature of teaching mam

  • @s_kazi8202
    @s_kazi8202 3 ปีที่แล้ว +7

    First sentence m hi mistake ...tree never contains cycles ... DEFINITION OF TREE says tree is a directed acyclic graph

  • @quantumspark343
    @quantumspark343 9 วันที่ผ่านมา

    Best explanation ever

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

    You are the best. Thank you ma'am

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

    Clearly explained! Thank you!

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

    thanks its help full a loot , easy to understand

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

    Thank you, Mam. for the wonderful explanation

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

    Very well explained ma'am thank you😀

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

    how did she make the heuristics and state table 2:00 ? like did she give random values ?

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

      I am wondering the same, like how to get heuristics values. Is that based on calculation or just random values

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

      ​@@SathishKumarrzu found the answer?

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

    what a good presentation mam easy way

  • @JayPatel-ou2ud
    @JayPatel-ou2ud 9 หลายเดือนก่อน

    Best and easy explanation 🤩

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

    Very Good Video,
    easy to understand

  • @IrtizaMushtaq-
    @IrtizaMushtaq- 2 ปีที่แล้ว

    Thank you so mch. You explained this nicely

  • @TP-mv6en
    @TP-mv6en 11 หลายเดือนก่อน

    Really good explanation and method 👍

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

    simplest example, thank you madam.

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

    Very helpful , thanks 🙏

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

    Thank u teacher.it helped me a lot.

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

    Thanks for this I understood this at one shot

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

    Very short and to the point👍

  • @user-lb1fl7sh8m
    @user-lb1fl7sh8m 3 ปีที่แล้ว +2

    Top Explanation !!

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

    Very easy to understand!

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

    What you would do if one of the values you put in "hold" would be less then the value 6 (s->a->c->g) ?

    • @norbertmargit6282
      @norbertmargit6282 3 ปีที่แล้ว +20

      Then you would keep searching on that path to see if you can find a better solution. Let's say s->a->c->g is actually 9. In this case s->a->b is 7 which is less than 9, so you need to keep looking on that path to see if you can find a shorter path than 9. The F(n) of s->a->b->d is is 14 (8+6) which is more than 9, so you can stop searching this path, beacuse you can already reach your goal in 9. However if it would be 8, then you would still need to keep looking beacuse at that moment you could still technically find a better result than 9. Hope this helps :)

  • @muhammadahmed4976
    @muhammadahmed4976 13 วันที่ผ่านมา

    mam why did you not check sabdg ? in some other case it might have been shorter, so should we take that part?

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

    you're the best! thank you so much

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

    Mass mam thanks for teaching clearly

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

    Thank you so much saved me for my exam!

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

    excellent explanation thanks ma'am from ethopia

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

    Mam, for suppose if we have holded value is less than the 6 then what we have to do mam?

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

    It is a good video, thank you

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

    Informative 👍💝

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

    Great tutorial 👍

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

    Wonderful!

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

    Thank for the lesson. Will one of you help me understand

  • @eliasendale-zr1gp
    @eliasendale-zr1gp 2 หลายเดือนก่อน

    thank you it was helpful!

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

    How are h(n) values determined? h' is an estimate so is it arbitrarily chosen or is there method for estimation?

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

      The method used is called “manhatten distance” I think, it is
      H = (x1 - x2) + (y1 - y2)
      X being x coordinate, y being y coordinate, and 1/2 beibg start and end node respectively (they dont have a value, the numbers are just there to signify the difference between the first and second node positions) ex: first node is 1 x 1 y, second node is 6 x 6 y
      H = (1-6) + (1-6)
      H = -5 + -5
      H = -10 (turned into positive)

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

      h(n) is the "estimated distance" to the goal. We don't know the actual distance since that is what we're trying to find so we use some other method available to us to create an estimate to help us speed up our search.
      h(n) can be calculated in many ways depending on the scope of the problem (so it can really be thought of as arbitrary), but in the real world we can create h(n) by getting, for example, the Manhatten distance: the rectangular distance (ie travelling along the x axis then along the y axis and adding these 2 distances up) from one node to another but anything can be used to create h(n) as long is it is *admissible*!

  • @VikramSingh-gq5ww
    @VikramSingh-gq5ww 3 ปีที่แล้ว +1

    S to a =1, a to b = 3, b to d = 5, d to g = 2

  • @hendriyawanachmad2017
    @hendriyawanachmad2017 3 ปีที่แล้ว +12

    why you set the heuristic value of D with 6 when the cost from D to G is 2? Heuristic value must UNDERESTIMATE the cost isn't? CMIIW

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

      I think using this heuristic is valid, however, this makes the heuristic inadmissible. For admissible heuristic, for every n, h(n)

    • @user-vn4jw3ch8w
      @user-vn4jw3ch8w 3 ปีที่แล้ว

      connect s to g is already bullshit , which is shortest path , unless he mean curve one

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

    Mam , How to calculate the h(n) value here?

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

      From what i have read the h(n) value can be calculated in various ways, depending on the situation.
      For example if you need to find the shortest path on a map, you might want to choose the h(n) value to be the euclidean distance between the next node and the target node.
      The quality of the A* algorithm is usually determined by how well h is defined.

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

      @@yairbarak10 thank you

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

      mam don't comment take lec or leav it & no for doubt solving in comment section its on for tp or els it would be off

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

    superb explain mam

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

    In the last step 6 can be compared with the hold values which is smaller so we kept as it is wht if the value is greater than that we should again comparing the values

  • @d..9272
    @d..9272 2 ปีที่แล้ว +2

    S equals to 5 how?? Please explain

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

    Hi,
    when we are passing through any node, don't we have to add the heuristic values of that node aswell?
    S to A to C to G
    so heuristic values of A and C 3 and 2 respectively, wont be added?

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

    Great Work🙏🙏🙏

  • @AliAhmed-fd2rj
    @AliAhmed-fd2rj 5 หลายเดือนก่อน

    عاشت ايدج شرح كلش حلو😊

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

    lovely explanation

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

    If I pass my exam tomorrow
    You are the reason 💪🏻

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

    Hai madam.Can you explain the property of binary tree.
    Property is sum of degree of the vertices in any trees equal to 2v-2. Since a tree with more than one vertex cannot have any isolated vertex,there must be at least to vertices of indegree 1 in the tree

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

    How do we get heuristic value?

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

      Actually the hueristic value is an estimated value that is taken from current node or point to Goal point.Like an assumtion!

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

      most important thing,its already given in question

    • @NavjotKaur-pk4gx
      @NavjotKaur-pk4gx 3 ปีที่แล้ว +2

      h(n) and g(n) are estimated values means we can take any number???

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

      @@NavjotKaur-pk4gx a way you can create estimates is to place your graph nodes on a grid that have distance between them associated with the edge weights. You can then use the pythagorean theorem to calculate distance between nodes on the graph, which you can use for your estimate function h.

    • @NavjotKaur-pk4gx
      @NavjotKaur-pk4gx 3 ปีที่แล้ว

      @@jeffreystevens8042 ok thanks sir

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

    Thank you aka :)

  • @namotech6770
    @namotech6770 10 หลายเดือนก่อน +1

    how to calculate the heuristic value

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

    Just perfect

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

    Mam i reached 8th semester aapka ek baar m samajh m aata h specially algorithm part

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

    When should we use the heuristic value of S?

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

    what to do if the hold value is smaller than the goal state value ?

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

    But what should we do if it is greater than the hold value
    If there is a situation like that

  • @rsjawahar
    @rsjawahar 8 หลายเดือนก่อน +1

    How to calculate h(n) value s is 5, a is 3 how to calculate

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

    How would you assign the heuristic value ...? Can any give me answer

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

    wow what a explanation.The teacher we all want

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

    What if cost of B -> D and D -> G is 1 and 1 respectively?

  • @599_sivaram4
    @599_sivaram4 2 ปีที่แล้ว

    How do u get that hurestic values mam

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

    very well tought thank you

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

    How did you take h(N) values

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

    Thanks a lot ma'am

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

    How you are putting h(n)in state table box