net.sourceforge.jsl
Class DepthFirstSearch

java.lang.Object
  |
  +--net.sourceforge.jsl.AbstractOpenClosedListSearch
        |
        +--net.sourceforge.jsl.DepthFirstSearch
All Implemented Interfaces:
Search

public class DepthFirstSearch
extends AbstractOpenClosedListSearch

Search using depth first strategy. Has exponential time - though not space - consumption, but does not guarantee to find the shallowest goal or any goal at all when the search graph is of infinite depth.

See Also:
BreadthFirstSearch

Field Summary
 
Fields inherited from class net.sourceforge.jsl.AbstractOpenClosedListSearch
closedList, closeGoal, expandCnt, expandGoal, maxClosed, maxDepth, maxExpands, maxOpen, openList, seed, useHashSet
 
Constructor Summary
DepthFirstSearch()
           
 
Method Summary
protected  void writeState(SearchNode state)
           
protected  void writeStates(Collection states)
           
 
Methods inherited from class net.sourceforge.jsl.AbstractOpenClosedListSearch
checkForEmergencyStop, cutOff, expand, getClosedList, getCloseGoal, getExpandGoal, getMaxClosed, getMaxDepth, getMaxExpands, getMaxOpen, getOpenList, search, search, setCloseGoal, setExpandGoal, setMaxClosed, setMaxDepth, setMaxExpands, setMaxOpen, setSeed, setUseHashSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DepthFirstSearch

public DepthFirstSearch()
Method Detail

writeState

protected void writeState(SearchNode state)
Specified by:
writeState in class AbstractOpenClosedListSearch

writeStates

protected void writeStates(Collection states)
Specified by:
writeStates in class AbstractOpenClosedListSearch


Copyright 2003-2004 Henrik Heine, Oliver Zeigermann. All Rights Reserved.