8 posts about BFS by 5 contributors.
Know BFS? Share what you know with developers who are learning it.
Learn how to calculate the minimum project completion time in Java using topological sorting, Kahn's algorithm, and dynamic programming to handle dependencies and detect cycles.
Find the shortest path in a 1-2 weighted graph efficiently using BFS after transforming weight-2 edges.
Solve the Rotten Oranges problem using multi-source BFS! Find the minimum time to rot all fresh oranges in a grid. Learn the BFS approach with Java code and complexity analysis.
Master BFS and DFS graph traversal algorithms! Explore level-by-level (BFS) and depth-first (DFS) approaches with examples, code, and comparisons. Essential for DSA!
Explore graph algorithms like BFS, DFS, and Dijkstra's for efficient problem-solving. Learn how BFS finds shortest paths in unweighted graphs, DFS excels in cycle detection, and Dijkstra's optimizes routes in weighted graphs. Discover real-world applications in navigation, social networks, and AI, mastering essential tools for connectivity, optimization, and exploration in computer science. These algorithms are crucial for developers tackling complex challenges.
Explore algorithms for finding the shortest path in grids with obstacles, crucial for AI, robotics, and game development. Learn about BFS, A*, Dijkstra's, and Greedy Best-First Search, understanding their strengths, weaknesses, and real-world applications like GPS navigation and robotics. Discover which algorithm suits your specific needs for efficient pathfinding.
This code implements breadth-first search (BFS) for disconnected graphs. It uses an adjacency list to represent the graph and provides methods for adding edges and performing BFS traversal. The constructor initializes the graph, the AddEdge method connects vertices, and the Bfs method traverses the graph in breadth-first order. The time complexity is O(V+E). An example demonstrates usage.
Learn how to implement BFS with a C# class, BfsGraph, showcasing its core components. Understand the role of adjacency lists and vertices within the class and the functionalities of the constructor and AddEdge method.
DevSocialUpcoming · 3rd editionAI Agents ConferenceNov 23–27, 2026Live onlineMembers only17days leftRegisterPublish an article in this category and earn +1,000 SHARP when it is approved.
Write an article