Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Element ¶
type Element struct { // The key stored the heap node key. Key int // The value stored with this element. Value interface{} }
Element is an element of a Minheap.
type Minheap ¶
type Minheap struct {
// contains filtered or unexported fields
}
Minheap is priority queue(min heap) struct.
func NewMinheap ¶
NewMinheap new a Minheap struct with specified size.
Click to show internal directories.
Click to hide internal directories.