|
||||||||
PREV NEXT | FRAMES NO FRAMES |
BucketsNode
instance and sets it
to an initial search state.
bucket1
- amount in first bucket
bucket2
- amount in second bucket
childClone
- returns a clone of this node that has
been made a child of this node and has a depth one greater than
this.
clone
- return a deep copy of this node.
clone
- performs a DEEP clone (copy) of this
node.
equals
- whether or not two BucketsNode objects
have the same state.
equals
method is especially useful for
repeated state detection.
expand
- return an ArrayListexpand
- return a (possibly empty) ArrayList of this
node's children
expand
- return a (possibly empty) ArrayList of this
node's children.
getGoalNode
- Returns a goal node if the previous
search was successful, and null otherwise.
getNodeCount
- Returns the number of nodes
examined (goal-checked) in the previous search.
isGoal
- test whether or not the current node is a
goal node.
isGoal
- test whether or not the current node is a
goal node.
isGoal
- test whether or not the current node is a
goal node.
MAX_AMOUNT1
- max amount in first bucket
MAX_AMOUNT2
- max amount in second bucket
main
- apply a search algorithm to a root search
node
PegSolitaireNode
instance and sets it
to an initial search state.
parent
- parent search node; null if and
only if node is the root of the search tree.
printGoalPath
- If the previous search was
successful, print each node along the goal path in sequence
starting with the root node.
SearchNode
instance and sets it to an
initial search state.
search
- given an initial node, perform
breadth-first search.
search
- given an initial node, perform
depth-first search (DFS).
search
- Search for a goal node starting at the
given "root" SearchNode, and return whether or not a goal node
was found.
toString
- string representation of state
toString
- especially useful for debugging,
tracing search execution, reporting results, etc.
|
||||||||
PREV NEXT | FRAMES NO FRAMES |