AI 24/25 Project Software
Documentation for the AI 24/25 course programming project software
|
#include "probfd/heuristics/dead_end_pruning.h"
Uses a classical heuristic on the all-outcomes-determinization to prune dead-ends.
Public Member Functions | |
DeadEndPruningHeuristic (std::shared_ptr<::Evaluator > pruning_function, value_t dead_end_value) | |
Construct with the given classical heuristic. | |
void | print_statistics () const override |
Prints statistics, e.g. the number of queries made to the interface. | |
virtual value_t | evaluate (param_type< State > state) const=0 |
Evaluates the heuristic on a given state and returns the heuristic value. | |
probfd::heuristics::DeadEndPruningHeuristic::DeadEndPruningHeuristic | ( | std::shared_ptr<::Evaluator > | pruning_function, |
value_t | dead_end_value ) |
Construct with the given classical heuristic.
pruning_function | - The classical heuristic. |
dead_end_value | - State estimate returned for states that are dead-ends according to the classical heuristic. |
|
overridevirtual |
Prints statistics, e.g. the number of queries made to the interface.
Reimplemented from probfd::Evaluator< State >.
|
pure virtualinherited |
Evaluates the heuristic on a given state and returns the heuristic value.
Implemented in probfd::heuristics::ConstantEvaluator< State >.