Package edu.uky.ai.planning.ss
Class BackwardHeuristic
java.lang.Object
edu.uky.ai.planning.ss.BackwardHeuristic
- All Implemented Interfaces:
Heuristic<BackwardNode>
A wrapper around a
StateSpaceHeuristic
which uses the given
heuristic to estimate the distance from the problem's initial state to the
current goal of a backward search
.- Author:
- Stephen G. Ware
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBackwardHeuristic
(StateSpaceHeuristic heuristic) Constructs a new backward heuristic. -
Method Summary
Modifier and TypeMethodDescriptiondouble
evaluate
(BackwardNode node) Returns an estimate of how much work remains to be done to convert the partial solution into a complete solution.
-
Field Details
-
heuristic
The heuristic to use
-
-
Constructor Details
-
BackwardHeuristic
Constructs a new backward heuristic.- Parameters:
heuristic
- the state space heuristic to use
-
-
Method Details
-
evaluate
Description copied from interface:Heuristic
Returns an estimate of how much work remains to be done to convert the partial solution into a complete solution.- Specified by:
evaluate
in interfaceHeuristic<BackwardNode>
- Parameters:
node
- the partial solution- Returns:
- an estimate of remaining work
-