Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Interface ¶
type Interface interface {
// Adjacent returns a map of the adjacent points with their associated
// cost.
//
Adjacent(int) map[int]float64
// Estimate returns the estimated cost of moving from the given point to the
// goal. Known as the heuristic function (h) in the literature.
//
Estimate(int, int) float64
}
Interface defines the problem space for the A* algorithm. Whatever the implemention, every point in the problem space must have a unique integer label.
Click to show internal directories.
Click to hide internal directories.
