Skip to content

Commit 632e93c

Browse files
authored
Update BidirectionalBFS.java
1 parent c14ae3c commit 632e93c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/main/java/com/thealgorithms/datastructures/graphs/BidirectionalBFS.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@
88
import java.util.ArrayList;
99

1010
/**
11-
* Implementation of Bidirectional Breadth-First Search (BFS) algorithm.
12-
* Checks if a path exists between a start node and a goal node in an undirected graph.
11+
* Implementation of the Bidirectional Breadth-First Search (BiBFS) algorithm.
12+
* This algorithm performs BFS from both the start and goal nodes simultaneously,
13+
* greatly reducing search space in large unweighted graphs.
14+
*
15+
* Wikipedia reference: https://en.wikipedia.org/wiki/Bidirectional_search
1316
*/
17+
1418
public class BidirectionalBFS
1519
{
1620
/**

0 commit comments

Comments
 (0)