About 399 results
Open links in new tab
  1. Breadth First Search or BFS for a Graph - GeeksforGeeks

    Oct 25, 2025 · Given a graph, traverse the graph using Breadth First Search and find the order in which nodes are visited. Breadth First Search (BFS) is a graph traversal algorithm that starts …

  2. Difference between BFS and DFS - GeeksforGeeks

    Nov 1, 2025 · Breadth-First Search (BFS) and Depth-First Search (DFS) are two fundamental algorithms used for traversing or searching graphs and trees. This article covers the basic …

  3. Breadth First Search (BFS) for Artificial Intelligence

    Jul 23, 2025 · This article explains core concepts of BFS, its algorithms, and practical applications in AI. What is Breadth-First Search? The Breadth-First Search is a traversing algorithm used …

  4. Level Order Traversal (Breadth First Search) of Binary Tree

    Oct 7, 2025 · Level Order Traversal (Breadth First Search) of Binary Tree Last Updated : 07 Oct, 2025

  5. C Program for Breadth First Search or BFS for a Graph

    Jul 23, 2025 · The Breadth First Search (BFS) algorithm is used to search a graph data structure for a node that meets a set of criteria. It starts at the root of the graph and visits all nodes at …

  6. Applications, Advantages and Disadvantages of Breadth First …

    Jul 23, 2025 · In Garbage Collection: Breadth First Search is used in copying garbage collection using Cheney's algorithm. Breadth First Search is preferred over Depth First Search because …

  7. BFS vs DFS for Binary Tree - GeeksforGeeks

    Aug 21, 2025 · Breadth-First Search (BFS) and Depth-First Search (DFS) for Binary Trees are ways to traverse nodes of the Binary Tree. This article aims to provide the basic difference …

  8. When to use DFS or BFS to solve a Graph problem?

    Jul 23, 2025 · We will prefer to use BFS when we know that our solution might lie closer to the starting point or if the graph has greater depths. We will prefer to use DFS when we know our …

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

    Oct 25, 2025 · Auxiliary Space: O (V + E), since an extra visited array of size V is required, and stack size for recursive calls of dfs function. Related Articles: Depth First Search or DFS on …

  10. Time and Space Complexity of Breadth First Search (BFS)

    Jul 23, 2025 · The Breadth First Search (BFS) algorithm is used to traverse a graph. It starts at a node of the graph and visits all nodes at the current depth level before moving on to the nodes …