Interface HeuristicFunction
- All Known Implementing Classes:
ExponentialDeviationHeuristicFunction,ExponentialDeviationWithNoneHeuristicFunction,ExponentialHeuristicFunction,LeastInformedHeuristicFunction,LinearHeuristicFunction,RandomHeuristicFunction,SimpleHeuristicFunction
public interface HeuristicFunction
A
HeuristicAlgorithm generates a heuristic value for a provided
AnalyzedCluster.- Author:
- AO Industries, Inc.
-
Method Summary
Modifier and TypeMethodDescriptiondoublegetHeuristic(ClusterConfiguration clusterConfiguration, int g) Estimates the number of moves to an optimal state.
-
Method Details
-
getHeuristic
Estimates the number of moves to an optimal state. If it uses the providedgg(n) it will result in Algorithm A. If it also always uses h(n) <= h*(n) it will result in Algorithm A*.- Parameters:
clusterConfiguration- TheClusterConfigurationrepresenting the current state.g- The number of moves already made.- Returns:
- The estimated number of moves to an optimal state
-
