Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Elem ¶
type Elem interface {
// SetIndex stores the int index.
SetIndex(int)
// Index returns the last given by SetIndex(int).
Index() int
}
Elem describes elements that can be added to the PQ. Clients must implement this interface.
type ElemComparator ¶
type ElemComparator func(a, b Elem) bool
ElemComparator returns true if pri(a) > pri(b)
Click to show internal directories.
Click to hide internal directories.