Documentation ¶
Overview ¶
Package binomial contains binomial tree and heap data structures.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Heap ¶
type Heap struct {
// contains filtered or unexported fields
}
Heap is a binomial heap.
func NewHeap ¶
NewHeap creates a new Heap with the given function to determine the lesser of two items on the heap. The Less function must handle each item added with Add.
type Less ¶
type Less func(a, b interface{}) bool
Less is a function that returns true if a is less than b.
Click to show internal directories.
Click to hide internal directories.