Breadth First Search - Part 1
ฝัง
- เผยแพร่เมื่อ 2 ก.พ. 2018
- 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.
I wasted hours at my uni with professors that overcomplicated these search algorithms. You sir saved me big time!
I relate
Loving this channel, super well explained. Thank you!
Congratulations for your explanation! It was the best one for this topic for me!
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
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.
the best explanation I found so far...thank you sir
Thanks for the explanation sir!
Amazing work brother!
You are the best profesor ever
WOW great video!
thankyou sir!!! very well explained
Thanks. This is very helpful.
Wow simple and clear
Thank you Sir
Much appreciated :)
You're very welcome!
great explanation!!! could you please upload more videos about Neural networks and probability problems? such as Bayes networks,approximate inference and CNN
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.
thank you it was great ❤🌹
Excellent explanation
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!
Well explained
Thank you
thank u
This guy saving my degree
smart fella
don't we need to add all the visited letters for that path?
Missing your videos sir
radu cretulescu trece-ma la examen