Class BreadthFirstSearchAlgorithm
java.lang.Object
|
+----SearchAlgorithm
|
+----BreadthFirstSearchAlgorithm
- public class BreadthFirstSearchAlgorithm
- extends SearchAlgorithm
Extends SearchAlgorithm class to use Breadth-First method, searching
through all nodes on a particular level of the tree before going deeper.
-
BreadthFirstSearchAlgorithm()
-
-
enqueue(WNode)
- This method will be called to enqueue a new node.
BreadthFirstSearchAlgorithm
public BreadthFirstSearchAlgorithm()
enqueue
protected void enqueue(WNode newNode)
- This method will be called to enqueue a new node.
BreadthFirstSearch: enqueue new nodes at the end.
- Overrides:
- enqueue in class SearchAlgorithm