heap

package
v0.0.0-...-37fe8ea Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Empty

func Empty[Elem cmp.Ordered](tree *PairingTree[Elem]) bool

Types

type PairingHeap

type PairingHeap[Elem cmp.Ordered] struct {
	// contains filtered or unexported fields
}

func New

func New[Elem cmp.Ordered]() *PairingHeap[Elem]

func (*PairingHeap[Elem]) Empty

func (heap *PairingHeap[Elem]) Empty() bool

func (*PairingHeap[Elem]) Peek

func (heap *PairingHeap[Elem]) Peek() Elem

func (*PairingHeap[Elem]) Pop

func (heap *PairingHeap[Elem]) Pop() Elem

func (*PairingHeap[Elem]) Push

func (heap *PairingHeap[Elem]) Push(e Elem)

type PairingTree

type PairingTree[Elem cmp.Ordered] struct {
	// contains filtered or unexported fields
}

func Meld

func Meld[Elem cmp.Ordered](tree1 *PairingTree[Elem], tree2 *PairingTree[Elem]) *PairingTree[Elem]

Jump to

Keyboard shortcuts

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