Breadth First Search - Part 1

Поделиться
HTML-код
  • Опубликовано: 6 ноя 2024
  • The simplest version of breadth-first search. This version doesn't use a visited set but still finds the shortest path from the start state to a goal state. Part 2 will show you how to use a visited set to potentially make the search more efficient.

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

  • @Jajdjejwi28
    @Jajdjejwi28 4 года назад +44

    I wasted hours at my uni with professors that overcomplicated these search algorithms. You sir saved me big time!

  • @abhilamsal7185
    @abhilamsal7185 4 года назад +7

    Breadth First Search applies goal test to each node when it is generated rather than when the node is selected for expansion. Therefore, once the algorithm determines shallowest goal node, it stops the search.
    By following your explaination, the time complexity of BFS comes around in the order of O( b^ (n+1) ).
    However, if the nodes were to be tested for goal nodes when they were generated rather than when selected for expansion, time complexity becomes O(b ^ n) since whole layer of nodes at depth n would be expanded before goal was detected.
    b -- branching factor
    n -- depth of shallowest goal node.

  • @nerioamaral4045
    @nerioamaral4045 4 года назад +6

    I love John's Lecture so helpful when it comes to explaining, I would love to have him as my AI Professor. anyways Thanks Dr John

  • @mariagabrielagarciaarroyo4733
    @mariagabrielagarciaarroyo4733 6 лет назад +16

    Loving this channel, super well explained. Thank you!

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

    Congratulations for your explanation! It was the best one for this topic for me!

  • @limitless1692
    @limitless1692 5 лет назад +4

    Wow simple and clear
    Thank you Sir
    Much appreciated :)

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

    the best explanation I found so far...thank you sir

  • @kelvinmonari5512
    @kelvinmonari5512 7 месяцев назад

    You are the best profesor ever

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

    Amazing work brother!

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

    A couple of drawbacks to bring up. Not guaranteed to find the least costed path from S to a Goal State. Also would use a ton of storage to maintain all the current unexpanded nodes. Back in college we had to solve the canibal missionary problem using DFS, because the storage required would grow exponentially if BFS is used.

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

    Thanks. This is very helpful.

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

    Excellent explanation

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

    Thanks for the explanation sir!

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

    great explanation!!! could you please upload more videos about Neural networks and probability problems? such as Bayes networks,approximate inference and CNN

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

    If let's say there is only one goal state (G1). Could I accept G1 as the goal state as soon as I add it to the frontier? By the way thank you for your clear explanation!

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

    thank you it was great ❤🌹

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

    thankyou sir!!! very well explained

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

    Thanks

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

    WOW great video!

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

    Thank you

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

    Well explained

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

    don't we need to add all the visited letters for that path?

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

    This guy saving my degree

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

    smart fella

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

    thank u

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

    Missing your videos sir

  • @mr.olorinthemaia
    @mr.olorinthemaia Год назад

    radu cretulescu trece-ma la examen