About 653,000 results
Open links in new tab
  1. Depth First Search or DFS for a Graph - GeeksforGeeks

    Oct 25, 2025 · Given a graph, traverse the graph using Depth First Search and find the order in which nodes are visited. Depth First Search (DFS) is a graph traversal method that starts from a source …

  2. Depth First Search (DFS) Algorithm - Programiz

    Depth First Search is a recursive algorithm for searching all the vertices of a graph or tree data structure. In this tutorial, you will learn about the depth-first search with examples in Java, C, Python, and C++.

  3. Spanning Tree - GeeksforGeeks

    Jul 23, 2025 · Add these edges to the minimum spanning tree. Update the forest by merging the trees connected by the added edges. Repeat the above steps until the forest contains only one tree, which …

  4. Connected Components in an Undirected Graph - GeeksforGeeks

    Oct 29, 2025 · [Approach 1]: Using Depth first search (DFS) In this approach, we perform a DFS once for every connected component in the graph. Each DFS call starting from an unvisited node explores …

  5. Depth First Search (DFS) for Artificial Intelligence

    Jul 23, 2025 · Edge classes in a Depth-first search tree based on a spanning tree Edge classes in DFS based on spanning tree The edges of the depth-first search tree can be divided into four classes …

  6. Lecture 10: Depth-First Search Previously Graph definitions (directed/undirected, simple, neighbors, degree) Graph representations (Set mapping vertices to adjacency lists) Paths and simple paths, …

  7. Depth First Search (DFS) – Iterative and Recursive Implementation

    Sep 19, 2025 · Depth–first search (DFS) is an algorithm for traversing or searching tree or graph data structures. One starts at the root (selecting some arbitrary node as the root for a graph) and explore …

  8. Depth-First Search (DFS) Algorithm Explained - Codecademy

    Contents Depth-First Search (DFS) is one of the most fundamental algorithms in computer science, used for traversing or searching data structures such as trees and graphs. It explores as far as …

  9. Depth First Search - DFS Algorithm with Practical Examples

    Learn fundamentals of Depth First Search graph traversal algorithm with implementation in C and applications with real-life examples.

  10. Depth First Search or DFS on Directed Graph - GeeksforGeeks

    Jul 23, 2025 · Depth-First Search (DFS) is a basic algorithm used to explore graph structures. In directed graphs, DFS can start from a specific point and explore all the connected nodes. It can also …