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

    Dec 6, 2025 · Popular graph algorithms like Dijkstra's shortest path, Kahn's Algorithm, and Prim's algorithm are based on BFS. BFS itself can be used to detect cycle in a directed and undirected …

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

    Dec 8, 2025 · Level Order Traversal (Breadth First Search) of Binary Tree Last Updated : 8 Dec, 2025

  3. 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 difference between …

  4. 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 to satisfy a …

  5. 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 between BFS and …

  6. Applications, Advantages and Disadvantages of Breadth First Search …

    Jul 23, 2025 · Here in this article, we will see the applications, advantages, and disadvantages of the Breadth First Search. Applications of Breadth First Search: 1. Shortest Path and Minimum Spanning …

  7. 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 the current …

  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 solution might …

  9. C++ Program for BFS Traversal - GeeksforGeeks

    Jul 23, 2025 · In C++, breadth First Search (BFS) is a method used to navigate through tree or graph data structures. It begins at the starting point or any chosen node, within the structure.

  10. 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 Directed Graph …