About 57,600 results
Open links in new tab
  1. Depth-first search - Wikipedia

    Depth-first search (DFS) is an algorithm for traversing or searching tree or graph data structures. The algorithm starts at the root node (selecting some arbitrary node as the root node in the case of a …

  2. Depth First Search or DFS for a Graph - GeeksforGeeks

    Oct 25, 2025 · Depth First Search (DFS) is a graph traversal method that starts from a source vertex and explores each path completely before backtracking and exploring other paths. To avoid revisiting …

  3. 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++.

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

    Learn Depth-First Search (DFS) algorithm with step-by-step explanations, pseudocode, and Python examples in this complete, beginner-friendly guide.

  5. Depth First Search (DFS) Algorithm - Online Tutorials Library

    Depth First Search (DFS) algorithm is a recursive algorithm for searching all the vertices of a graph or tree data structure. This algorithm traverses a graph in a depthward motion and uses a stack to …

  6. Learn Depth-First Search (DFS) Algorithm From Scratch

    Jan 25, 2025 · Learn what is DFS (Depth-First Search) algorithm and its examples. Explore its complexity, pseudocode, applications and code implementation of DFS. Start learning now!

  7. Depth First Search - Algorithms for Competitive Programming

    Aug 27, 2025 · Depth First Search is one of the main graph algorithms. Depth First Search finds the lexicographical first path in the graph from a source vertex u to each vertex.

  8. Depth-First Search (DFS) | Brilliant Math & Science Wiki

    Depth-first search (DFS) is an algorithm for searching a graph or tree data structure. The algorithm starts at the root (top) node of a tree and goes as far as it can down a given branch (path), then …

  9. 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 …

  10. Depth First Search ( DFS ) Algorithm - Algotree

    DFS is an algorithm for traversing a Graph or a Tree. DFS starts with the root node and explores all the nodes along the depth of the selected path before backtracking to explore the next path.

  11. Depth-First Search (DFS) Algorithm | by Eli Berman | Medium

    Sep 15, 2024 · In the world of algorithms and data structures, Depth-First Search (DFS) stands out as a fundamental and versatile algorithm. It is commonly used to find paths and cycles in graphs. In this...

  12. Depth First Search - DFS Algorithm with Practical Examples

    Artificial Intelligence: DFS is used in AI algorithms, such as depth-limited search and iterative deepening depth-first search, for solving problems in areas like planning, scheduling, and game playing.

  13. Depth First Search (DFS): A Comprehensive Guide for Programmers

    Depth First Search (DFS) is a graph traversal algorithm that explores as far as possible along each branch before backtracking. It’s a systematic way to visit all the vertices of a graph or all the nodes of …

  14. Learn DFS ( Depth First Search Algorithm ) - Interview Kickstart

    Sep 24, 2025 · Depth-first search (DFS) is a recursive algorithm for traversing a graph. It uses the idea of exhaustive search — it will keep moving deeper into the graph until that particular path is entirely …

  15. Depth First Search (DFS) for Artificial Intelligence

    Jul 23, 2025 · Depth-first search is a traversing algorithm used in tree and graph-like data structures. It generally starts by exploring the deepest node in the frontier. Starting at the root node, the algorithm …

  16. Introduction to Depth First Search Algorithm (DFS) - Baeldung

    Mar 24, 2023 · In graph theory, one of the main traversal algorithms is DFS (Depth First Search). In this tutorial, we’ll introduce this algorithm and focus on implementing it in both the recursive and non …

  17. What Data Structure Should I Use for DFS? Master Depth-First Search

    3 days ago · Depth-First Search (DFS) stands as a fundamental algorithm in computer science, serving as the backbone for graph traversal, topological sorting, and solving complex maze puzzles. …

  18. Search Algorithms in AI (Lab) - BFS, DFS, UCS, and More

    Explore key search algorithms in AI, including BFS, DFS, and UCS, with detailed explanations and comparisons of their efficiencies and applications.

  19. DFS (Depth-First Search) Algorithm: Explained With Examples

    Oct 3, 2024 · The DFS algorithm, or Depth First Search algorithm, is a fundamental graph traversal technique used in computer science. It works like an essential tool for solving problems like finding …

  20. Graph Algorithms in Practice (2026): Modeling, Traversal, Paths, and ...

    2 days ago · That’s the mental shift graphs give you: a way to model “things” (vertices) and “relationships” (edges) without forcing them into a hierarchy. Once you model the problem as a …

  21. AI | Search Algorithms | Depth-First Search | Codecademy

    Aug 16, 2023 · The DFS algorithm starts with the initial node of graph G and goes deeper until it finds the goal node or a node with no children. Because of the recursive nature of the traversal process, a …

  22. Graph Theory - Depth-First Search - Online Tutorials Library

    Depth-First Search (DFS) is a graph traversal algorithm that explores as far as possible along each branch before backtracking. It starts at a selected node (often called the 'root') and explores each …

  23. 1. Find the topological sorting order using DFS and Source Removal ...

    1 day ago · 1. Find the topological sorting order using DFS and Source Removal Algorithm from the following graph. 2. Compute the product of two positive integers, 41 * 55 using the Russian Peasant …

  24. Algorithms | Coursera

    Algorithms are the heart of computer science, and the subject has countless practical applications as well as intellectual depth. This specialization is an introduction to algorithms for learners with at least …

  25. Depth First Search or DFS for a Graph - Python - GeeksforGeeks

    Jul 23, 2025 · Python Depth First Search Algorithm is used for traversing or searching tree or graph data structures. The algorithm starts at the root node (selecting some arbitrary node as the root node in …

  26. Learn Data Structures and Algorithms - Programiz

    Data Structures and Algorithms (DSA) is an essential skill for any programmer looking to solve problems efficiently. Understanding and utilizing DSA is especially important when optimization is crucial, like …

  27. Topological Sorting - GeeksforGeeks

    Dec 20, 2025 · Topological Sorting Using DFS: The main idea is to perform a Depth First Search (DFS) on the Directed Acyclic Graph (DAG) and, for each vertex, push it onto a stack only after visiting all …

  28. Data Structure Interview Questions

    Jan 26, 2026 · Prepare from this list of the latest Data Structure Interview Questions along with coding problems and crack your dream company interview. These data structure questions cater to freshers …

  29. Dijkstra's algorithm - Wikipedia

    Dijkstra's algorithm (/ ˈdaɪkstrəz / DYKE-strəz) is an algorithm for finding the shortest paths between nodes in a weighted graph, which may represent, for example, a road network. It was conceived by …

    Missing:
    • dfs
    Must include: