/**
 * DepthFirstSearchAlgorithm.java
 *
 * Expands on the generic SearchAlgorithm to search for a specified
 * string within a tree.
 */

/**
 * Extends SearchAlgorithm class to use Depth-First method, searching
 * the deepest nodes in the tree first.
 */
public class DepthFirstSearchAlgorithm extends SearchAlgorithm {

    /**
     * This method will be called to enqueue a new node.
     * DepthFirstSearch: enqueue new nodes at the front.
     */
    protected void enqueue(WNode newNode) {
    	this.nodeQueue.insertElementAt(newNode, 0);
    }


}
