Breadth First Search - Part 1

  Рет қаралды 77,795

John Levine

John Levine

6 жыл бұрын

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.

Пікірлер: 28
@Jajdjejwi28
@Jajdjejwi28 3 жыл бұрын
I wasted hours at my uni with professors that overcomplicated these search algorithms. You sir saved me big time!
@Amirak254
@Amirak254 Жыл бұрын
I relate
@mariagabrielagarciaarroyo4733
@mariagabrielagarciaarroyo4733 6 жыл бұрын
Loving this channel, super well explained. Thank you!
@abhilamsal7185
@abhilamsal7185 3 жыл бұрын
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 3 жыл бұрын
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
@raphaellmsousa
@raphaellmsousa 6 жыл бұрын
Congratulations for your explanation! It was the best one for this topic for me!
@benaya6
@benaya6 4 жыл бұрын
the best explanation I found so far...thank you sir
@yourdoom9868
@yourdoom9868 6 жыл бұрын
Thanks for the explanation sir!
@syntaxerror2144
@syntaxerror2144 4 ай бұрын
Amazing work brother!
@gabethebabe3840
@gabethebabe3840 5 жыл бұрын
WOW great video!
@fidelhernandez2322
@fidelhernandez2322 5 жыл бұрын
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!
@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.
@abhirustagi6969
@abhirustagi6969 5 жыл бұрын
thankyou sir!!! very well explained
@mustafaalshaqaq2303
@mustafaalshaqaq2303 2 жыл бұрын
Thanks. This is very helpful.
@limitless1692
@limitless1692 4 жыл бұрын
Wow simple and clear Thank you Sir Much appreciated :)
@johnlevine2909
@johnlevine2909 4 жыл бұрын
You're very welcome!
@kelvinmonari5512
@kelvinmonari5512 Ай бұрын
You are the best profesor ever
@yourfellowmuslimyagi2065
@yourfellowmuslimyagi2065 2 жыл бұрын
Excellent explanation
@user-ov1rt6pi7d
@user-ov1rt6pi7d 3 жыл бұрын
thank you it was great ❤🌹
@tzaswit
@tzaswit 3 жыл бұрын
Thank you
@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
@jerushanmoodley2641
@jerushanmoodley2641 4 жыл бұрын
Well explained
@nadaali5
@nadaali5 5 жыл бұрын
thank u
@hashithakularatne3646
@hashithakularatne3646 Жыл бұрын
don't we need to add all the visited letters for that path?
@amirhoxha6231
@amirhoxha6231 Жыл бұрын
smart fella
@sknganga3633
@sknganga3633 2 жыл бұрын
This guy saving my degree
@kjohari_
@kjohari_ 4 жыл бұрын
Missing your videos sir
@mr.olorinthemaia
@mr.olorinthemaia 11 ай бұрын
radu cretulescu trece-ma la examen
Breadth First Search - Part 2
3:05
John Levine
Рет қаралды 42 М.
A* Search
12:32
John Levine
Рет қаралды 392 М.
Cute Barbie gadgets 🩷💛
01:00
TheSoul Music Family
Рет қаралды 72 МЛН
Breadth First Search - Finding Shortest Paths in Unweighted Graphs
14:23
Mary Elaine Califf
Рет қаралды 41 М.
Depth First Search Algorithm | Graph Theory
10:20
WilliamFiset
Рет қаралды 436 М.
Breadth First Search (BFS): Visualized and Explained
10:41
Reducible
Рет қаралды 186 М.
Depth First Search
7:16
John Levine
Рет қаралды 92 М.
Breadth First Search Algorithm | Shortest Path | Graph Theory
7:23
WilliamFiset
Рет қаралды 656 М.
Lecture 13: Breadth-First Search (BFS)
50:48
MIT OpenCourseWare
Рет қаралды 696 М.
Algorithms Explained - minimax and alpha-beta pruning
11:01
Sebastian Lague
Рет қаралды 1 МЛН
Breadth First Search
15:34
Lalitha Natraj
Рет қаралды 22 М.