mirror of
https://github.com/gonum/gonum.git
synced 2025-10-17 04:31:03 +08:00
Updated comments a tad
This commit is contained in:
2
graph.go
2
graph.go
@@ -120,7 +120,7 @@ func UniformCost(a, b int) float64 {
|
||||
//
|
||||
// A heuristic is admissible if, for any node in the graph, the heuristic estimate of the cost between the node and the goal is less than or equal to the true cost.
|
||||
//
|
||||
// Performance may be improved by providing a consistent heuristic (though one is not needed to find the optimal path), a heuristic is consistent if its value for a given node is less than the
|
||||
// Performance may be improved by providing a consistent heuristic (though one is not needed to find the optimal path), a heuristic is consistent if its value for a given node is less than (or equal to) the
|
||||
// actual cost of reaching its neighbors + the heuristic estimate for the neighbor itself. You can force consistency by making your HeuristicCost function
|
||||
// return max(NonConsistentHeuristicCost(neighbor,goal), NonConsistentHeuristicCost(self,goal) - Cost(self,neighbor)). If there are multiple neighbors, take the max of all of them.
|
||||
//
|
||||
|
Reference in New Issue
Block a user