heap

package
v1.5.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2023 License: GPL-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Heap

type Heap interface {
	Push(compare.Item) ID
	PushWithID(ID, compare.Item)
	Pop() (compare.Item, error)
	Peek() (ID, compare.Item, error)
	Clean() []compare.Item
	Update(ID, compare.Item)
	Remove(ID) compare.Item
	Find(ID) (compare.Item, bool)
	Range(func(item compare.Item) bool)
}

func NewHeapMax

func NewHeapMax(count ...int) Heap

func NewHeapMin

func NewHeapMin(count ...int) Heap

type ID

type ID = uint64

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL