Depth First Search Algorithm | Graph Theory
WilliamFiset WilliamFiset
164K subscribers
431,453 views
0

 Published On Apr 1, 2018

Depth First Search (DFS) algorithm explanation

Source code:
https://github.com/williamfiset/algor...

Video Slides:
https://github.com/williamfiset/Algor...

0:00 Depth first search as an algorithm template
1:04 Simple DFS example
3:30 Depth first search pseudocode
5:10 Finding connected components with a DFS
7:32 connected components source code
9:27 What else is a DFS useful for?

===================================

Practicing for interviews? I have used, and recommend `Cracking the Coding Interview` which got me a job at Google. Link on Amazon: https://amzn.to/3cvMof5

A lot of the content on this channel is inspired by the book `Competitive Programming` by Steven Halim which I frequently use as a resource and reference. Link on Amazon: https://amzn.to/3wC2nix

Support me by purchasing the full graph theory course on Udemy which includes additional problems, exercises and quizzes not available on YouTube:
https://www.udemy.com/course/graph-th...

show more

Share/Embed