Documentation
¶
Index ¶
- Constants
- Variables
- func CreateEmptyMatrix(dim int) [][]int
- func NextStep(pos, target, lastPos Point) (string, error)
- func PrintMatrix(matrix [][]int)
- func PrintResults(matrix [][]int, start Point, goal Point)
- func TestAlgos()
- func TestLogic() bool
- func Void()
- type Location
- type Node
- type Point
- type PriorityQueue
Constants ¶
View Source
const ( X_min float64 = 10 X_max float64 = 70 Y_min float64 = -30 Y_max float64 = 30 )
Int mapping
Variables ¶
View Source
var AirportMap [][]int
Functions ¶
func CreateEmptyMatrix ¶
func PrintMatrix ¶
func PrintMatrix(matrix [][]int)
func PrintResults ¶
Types ¶
type PriorityQueue ¶
type PriorityQueue []*Node
func (PriorityQueue) Len ¶
func (pq PriorityQueue) Len() int
func (PriorityQueue) Less ¶
func (pq PriorityQueue) Less(i, j int) bool
func (*PriorityQueue) Pop ¶
func (pq *PriorityQueue) Pop() interface{}
func (*PriorityQueue) Push ¶
func (pq *PriorityQueue) Push(x interface{})
func (PriorityQueue) Swap ¶
func (pq PriorityQueue) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.