Depth First Search (DFS) Algorithm: Explanation, Examples, and Implementation
This video provides a detailed explanation of the Depth First Search (DFS) algorithm, including its concept, step-by-step examples, and sample code for implementation.
🔥 Related Trending Topics
LIVE TRENDSThis video may be related to current global trending topics. Click any trend to explore more videos about what's hot right now!
THIS VIDEO IS TRENDING!
This video is currently trending in Pakistan under the topic 'f'.
About this video
In this video, I explain the fundamental ideas behind the Depth First Search (DFS) graph algorithm. We first introduce the concept of a graph traversal. We then go through several examples of DFS to provide intuition. Afterwards, we then go through both a recursive and iterative implementation with provided code. We discuss the differences between the implementation and also make a distinction between a preorder and post order DFS traversal. We then finish the video off with some practical and fun applications of depth first search in graph theory.
0:00 Intro and Preview
0:50 Graph Traversal
1:20 DFS Walkthrough and Examples
6:26 Recursive Implementation
11:08 Iterative Implementation
15:06 Preorder vs Postorder DFS
17:01 DFS Applications
Support: https://www.patreon.com/reducible
This video wouldn't be possible without the open source manim library created by 3blue1brown: https://github.com/3b1b/manim
Here is link to the repository that contains the code used to generate the animations in this video: https://github.com/nipunramk/Reducible
Video Information
Views
485.9K
Total views since publication
Likes
14.9K
User likes and reactions
Duration
20:52
Video length
Published
Jul 5, 2020
Release date
Quality
hd
Video definition
About the Channel
Tags and Topics
This video is tagged with the following topics. Click any tag to explore more related content and discover similar videos:
#Depth First Search #DFS #DFS algorithm #DFS Examples #DFS code #Depth first search implementation #DFS implementation #depth first search graph #depth first search code #dfs preorder #dfs postorder #dfs applications #depth first search algoirthm #depth first search python #depth first search maze #dfs algorithm tutorial #dfs recurion #dfs iteration #dfs stack #dfs explained #depth first search explained #depth first search examples
Tags help categorize content and make it easier to find related videos. Browse our collection to discover more content in these categories.