Depth First Search (DFS) Algorithm in Hindi with Example
Depth First Search (DFS) algorithm traverses a graph in a depthward motion.
DFS algorithm uses Stack data structure.
DFS Algorithm:
Step 1 − Put the starting vertex into the stack.
Mark it as visited.
Display it.
Step 2 − if( STACK[top] has adjacent unvisited vertex )
{
Visit the adjacent unvisited vertex and Mark it as visited.
push it into the STACK.
Display it.
}
else
{
pop top element of stack.
}
(repeat rule 2 until stack is empty)
Видео Depth First Search (DFS) Algorithm in Hindi with Example канала Exam Aasaan Hai !!!
DFS algorithm uses Stack data structure.
DFS Algorithm:
Step 1 − Put the starting vertex into the stack.
Mark it as visited.
Display it.
Step 2 − if( STACK[top] has adjacent unvisited vertex )
{
Visit the adjacent unvisited vertex and Mark it as visited.
push it into the STACK.
Display it.
}
else
{
pop top element of stack.
}
(repeat rule 2 until stack is empty)
Видео Depth First Search (DFS) Algorithm in Hindi with Example канала Exam Aasaan Hai !!!
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![Breadth First Search (BFS) Algorithm in Hindi with Example](https://i.ytimg.com/vi/TD6jcJ9iIZ4/default.jpg)
![DFS Implementation in C | C Code For Depth First Search](https://i.ytimg.com/vi/jQmlXAwUvZ4/default.jpg)
![Preorder, Inorder and Postorder in 5 minute | Tree Traversal | Easiest and Shortest Trick](https://i.ytimg.com/vi/XRcC7bAtL3c/default.jpg)
![](https://i.ytimg.com/vi/1lpg0RXqFJk/default.jpg)
![Dijkstra's Algorithm for Shortest Path Problem with Example in HINDI/URDU](https://i.ytimg.com/vi/r4U342MdMj0/default.jpg)
![Depth First Search | Also & Example | Graph traversal | Data Structures | Lec-50 | Bhanu Priya](https://i.ytimg.com/vi/UxXasZyx0Z0/default.jpg)
![Depth First Search [DFS] Traversal](https://i.ytimg.com/vi/Z4kEjEUrpNg/default.jpg)
![Depth First Search(DFS) in Artificial Intelligence with Solved Examples](https://i.ytimg.com/vi/dWpvK-8uAqM/default.jpg)
![5.1 Graph Traversals - BFS & DFS -Breadth First Search and Depth First Search](https://i.ytimg.com/vi/pcKY4hjDrxk/default.jpg)
![Depth First Search (DFS) with example | Uninformed Search | Artificial Intelligence](https://i.ytimg.com/vi/f8luGFRtshY/default.jpg)
![Forward and Backward Chanining in Artificial Intelligence(Hindi) || MCSE-003](https://i.ytimg.com/vi/pxn4le_cH9U/default.jpg)
![Kruskal algorithm for Minimum Spanning Tree in (Hindi, Urdu) with Example](https://i.ytimg.com/vi/_p105bi11pw/default.jpg)
![Prim's algorithm for Minimum Spanning Tree in (Hindi, Urdu) with Example](https://i.ytimg.com/vi/UUHB0OBP0z8/default.jpg)
![Depth First Search (DFS) Graph Traversal in Data Structures](https://i.ytimg.com/vi/4M1u4-eGlxU/default.jpg)
![Expert system in Artificial intelligence in hindi | Expert System shell | #26](https://i.ytimg.com/vi/x6qqNCrMFE8/default.jpg)
![6.2 BFS and DFS Graph Traversals| Breadth First Search and Depth First Search | Data structures](https://i.ytimg.com/vi/vf-cxgUXcMk/default.jpg)
![IGNOU MCS-053: COMPUTER GRAPHICS AND MULTIMEDIA | Unit-9 and 10 | Imp. Q Solved](https://i.ytimg.com/vi/notK0fqVgO0/default.jpg)
![Breadth First Search (BFS) Graph Traversal in Data Structures](https://i.ytimg.com/vi/6dWUABpUky4/default.jpg)
![A* algorithm in AI (artificial intelligence) in HINDI | A* algorithm with example](https://i.ytimg.com/vi/tvAh0JZF2YE/default.jpg)
![Chapter 14 Introduction to Tree in Data Structure Hindi](https://i.ytimg.com/vi/ifEQe4j1hOI/default.jpg)