Breadth First Search - Part 1

preview_player
Показать описание
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.
Рекомендации по теме
Комментарии
Автор

Thank you so much for your videos, professor. You explain the topics in a very clear and understandable way. They are truly helpful. I’m really grateful for your effort!

MuhammedEKİNCİ-wv
Автор

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

Jajdjejwi
Автор

Loving this channel, super well explained. Thank you!

mariagabrielagarciaarroyo
Автор

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.

abhilamsal
Автор

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

nerioamaral
Автор

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

raphaellmsousa
Автор

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

benaya
Автор

Wow simple and clear
Thank you Sir
Much appreciated :)

limitless
Автор

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.

franchello
Автор

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

hashithakularatne
Автор

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

ruixincheng