Depth First Search

  Рет қаралды 91,049

John Levine

John Levine

6 жыл бұрын

The simplest version of depth first search, how it gets stuck in loops and how to fix this using simple loop checking on the path.

Пікірлер: 51
@Jajdjejwi28
@Jajdjejwi28 3 жыл бұрын
lmao 2 hours lecture at my uni is summed up perfectly here in 7 minutes. Amazing!
@sofuno863
@sofuno863 3 жыл бұрын
somehow this english accent makes me feel smart when I listen to it lol amazing!
@TheMcallist1
@TheMcallist1 3 жыл бұрын
hahaha
@iq_pi7211
@iq_pi7211 3 жыл бұрын
Finally I found a Dr. That deserve the title The AI Dr. In my college is all over the place She makes the easiest thing hard to understand
@wrightkuku8811
@wrightkuku8811 Жыл бұрын
this guy is underrated. he deserves a million subscribers and billion views
@TrangPham-kc7ft
@TrangPham-kc7ft 3 жыл бұрын
Thank you so much for your explanation about DFS search tree, I've always get stuck at it but now it's more clearly
@robinkarlsson1460
@robinkarlsson1460 2 жыл бұрын
Trying to explain this to a friend and your description of the algorithm in terms of a decision tree was brilliant. Makes things super clear (why we keep track of visited becomes self evident)! Great video 👍
@jordan4890
@jordan4890 4 жыл бұрын
Really nice videos man. I'm using search to derive equations in physics as a newcomer to CS. Your videos have helped immensely as a noob to CS research
@pedrolopes9721
@pedrolopes9721 5 жыл бұрын
Thank for your videos, my theory classes are really bad, and your youtube videos are saving, literally my life!
@ahmedibrahim-ro3sj
@ahmedibrahim-ro3sj 11 ай бұрын
sir you are great ,hope you going to continue uploading more videos , have never seen someone illustrate in that simple and precise way
@telmagiovana6006
@telmagiovana6006 Ай бұрын
Thank you, best explanation! Wish I had watched your videos before
@manikantamaddipati4861
@manikantamaddipati4861 5 жыл бұрын
great explanation John Levine
@sigqibotshapha9950
@sigqibotshapha9950 2 жыл бұрын
would've been neat to know the order of traversing the child nodes beforehand. also in an actual programming stack, we would have to add the child nodes(i.e expand) in reverse order such that our topmost node after each expansion is the next first node (i.e when expanding S start by adding D to the stack, then B then A such that A is at the top of the stack), so we should draw the tree down towards the right not left, same thing just on opposite sides. I'm terrible at explanations but I picked this up from your video which means it's great
@RajVerma-lg3kp
@RajVerma-lg3kp 5 жыл бұрын
My teacher should be fired 😂... Thank you so much
@manuelacquistapace8030
@manuelacquistapace8030 2 жыл бұрын
Amaizingly explained, thanks a lot
@rafifelfazri3284
@rafifelfazri3284 3 жыл бұрын
Thank you, it really helps me with my homework
@hazemabuaqolah9206
@hazemabuaqolah9206 2 жыл бұрын
SUPER!! thank you for awesome presentation.
@omarsheekhoo9205
@omarsheekhoo9205 5 жыл бұрын
Thank u so much, I finally understood the DFS and also for saving me from all of these Indians.
@zenitsuzang9506
@zenitsuzang9506 5 жыл бұрын
I feel very understandable - exactly what I am looking for
@saraharar3114
@saraharar3114 4 жыл бұрын
thank you so much ! incredible
@tzaswit
@tzaswit 3 жыл бұрын
Thank you, really helpful
@f_1289
@f_1289 6 ай бұрын
youre a life saver ❤️❤️
@chandanagubbiparamesha904
@chandanagubbiparamesha904 5 жыл бұрын
Awesome!!..please make more videos
@azarku
@azarku 4 жыл бұрын
THANK you !
@nadaali5
@nadaali5 5 жыл бұрын
i love your way thank u
@pantepember
@pantepember 3 жыл бұрын
1- In what order do we choose the items at each level? (You choose them in alphabetical order. Why?) 2- You say we treat the items list like a stack then you choose A at the first level. But how did we order them as A, B, and D in the first place? By the way, I really like the way you teach. Thank you.
@guidodinello1369
@guidodinello1369 2 жыл бұрын
You can use whatever order you want to fill the stack, you will still traverse the entire component but following a different path
@maksymkoval9816
@maksymkoval9816 5 жыл бұрын
More like A+ for those tutorials
@geoffreyvanwyk4588
@geoffreyvanwyk4588 2 жыл бұрын
After expanding A, should you not have stopped at G1?
@samsricatjaidee405
@samsricatjaidee405 3 жыл бұрын
Thank you.
@dilantaskn928
@dilantaskn928 Жыл бұрын
Probably with these tutorials I learned AI algorithms way more than what I learned in class, but since this algorithm is LIFO, shouldn't it start to generate nodes from the D since it is the last one entered into the stack and should be the first one to get out, instead of A?
@sqlyoutuber8230
@sqlyoutuber8230 12 күн бұрын
Thank you
@maryameslam3782
@maryameslam3782 Жыл бұрын
thank you
@halkey4086
@halkey4086 3 жыл бұрын
Helal hocam, teşekkürler.
@annasahebpatil2654
@annasahebpatil2654 2 ай бұрын
Is there goal state for bfs nd dfs
@prasundas6531
@prasundas6531 5 ай бұрын
Why not go to goal G1 when we are checking if B or G1 has been traversed first?
@beone888
@beone888 3 ай бұрын
I'm not able to understand in which order he is exploring the node, if there is no order then after exploring A we can explore G1,B then the algo stop at G1 itself, that is the path will be S -> A -> G1
@lancelofjohn6995
@lancelofjohn6995 2 жыл бұрын
why is G1 not removed?
@ggme7857
@ggme7857 5 жыл бұрын
how do you decide the order of the nodes e.g. A B D. Because it really changes things
@vyomdirt
@vyomdirt 5 жыл бұрын
Alphabetical order.
@vincent-uh5uo
@vincent-uh5uo 5 жыл бұрын
yes it is also my question, if he decided the order is G2, F, S in the forth floor, the algorithm will stop.
@ravikumarrn8501
@ravikumarrn8501 5 жыл бұрын
Check out the arrow direction of C. From S u can't go to C.
@tomcolgan
@tomcolgan 4 жыл бұрын
get a bigger board LOL, ah no all joking aside that was a very good explanation! really enjoyed it
@abdolvakilfazli2488
@abdolvakilfazli2488 4 жыл бұрын
After first A, why did you choose B over G1. If you have chosen G1 over B that would be a better depth-first search
@mohammedshalan9161
@mohammedshalan9161 Жыл бұрын
That's also my question! I couldn't figure it out?!
@stevenpersoon
@stevenpersoon 6 ай бұрын
This choice is not really specified for depth search. How the algorithm chooses the next is node up for you to decide, as long as it's consistent.
@isurukottahachchi6156
@isurukottahachchi6156 2 жыл бұрын
Good video but sound is not enough
@pixelsvuce1572
@pixelsvuce1572 6 жыл бұрын
Node d is mentioned again..Check the presentation again...Plz....
@omarzalama
@omarzalama 6 жыл бұрын
no it's not, it just appeared, we never expand it (branch it to it's nodes).
@abrahamjonathan3260
@abrahamjonathan3260 6 ай бұрын
S,A,B,C,F,G3🤔
@ahmedwael4293
@ahmedwael4293 2 жыл бұрын
عايز اموت
Breadth First Search - Part 1
8:17
John Levine
Рет қаралды 77 М.
Uniform Cost Search
10:23
John Levine
Рет қаралды 382 М.
ОДИН ДОМА #shorts
00:34
Паша Осадчий
Рет қаралды 6 МЛН
Зомби Апокалипсис  часть 1 🤯#shorts
00:29
INNA SERG
Рет қаралды 6 МЛН
Breadth First Search Algorithm | Shortest Path | Graph Theory
7:23
WilliamFiset
Рет қаралды 650 М.
A* Search
12:32
John Levine
Рет қаралды 388 М.
Depth-first search in 4 minutes
4:01
Michael Sambol
Рет қаралды 203 М.
Iterative Deepening
3:40
John Levine
Рет қаралды 116 М.
Depth First Search Algorithm | Graph Theory
10:20
WilliamFiset
Рет қаралды 432 М.
Monte Carlo Tree Search
15:50
John Levine
Рет қаралды 134 М.
Breadth-first search in 4 minutes
3:59
Michael Sambol
Рет қаралды 225 М.
ОДИН ДОМА #shorts
00:34
Паша Осадчий
Рет қаралды 6 МЛН