Class DepthFirstSearchAlgorithm

java.lang.Object
   |
   +----SearchAlgorithm
           |
           +----DepthFirstSearchAlgorithm

public class DepthFirstSearchAlgorithm
extends SearchAlgorithm
Extends SearchAlgorithm class to use Depth-First method, searching the deepest nodes in the tree first.


Constructor Index

 o DepthFirstSearchAlgorithm()

Method Index

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

Constructors

 o DepthFirstSearchAlgorithm
 public DepthFirstSearchAlgorithm()

Methods

 o enqueue
 protected void enqueue(WNode newNode)
This method will be called to enqueue a new node. DepthFirstSearch: enqueue new nodes at the front.

Overrides:
enqueue in class SearchAlgorithm