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.


Constructor Index

 o BreadthFirstSearchAlgorithm()

Method Index

 o enqueue(WNode)
This method will be called to enqueue a new node.

Constructors

 o BreadthFirstSearchAlgorithm
 public BreadthFirstSearchAlgorithm()

Methods

 o 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