pairing

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LinkedList

type LinkedList[T comparable] struct {
	// contains filtered or unexported fields
}

type Node

type Node[Key comparable, Priority cmp.Ordered] struct {
	// contains filtered or unexported fields
}

type PriorityQueue

type PriorityQueue[Key comparable, Priority cmp.Ordered] struct {
	// contains filtered or unexported fields
}

func New

func New[Key comparable, Priority cmp.Ordered]() *PriorityQueue[Key, Priority]

func (*PriorityQueue[Key, Priority]) Empty

func (t *PriorityQueue[Key, Priority]) Empty() bool

func (*PriorityQueue[Key, Priority]) Peek

func (t *PriorityQueue[Key, Priority]) Peek() Key

func (*PriorityQueue[Key, Priority]) Pop

func (t *PriorityQueue[Key, Priority]) Pop() Key

func (*PriorityQueue[Key, Priority]) Pretty

func (t *PriorityQueue[Key, Priority]) Pretty() string

func (*PriorityQueue[Key, Priority]) Push

func (t *PriorityQueue[Key, Priority]) Push(key Key, priority Priority)

func (*PriorityQueue[Key, Priority]) Update

func (t *PriorityQueue[Key, Priority]) Update(key Key, priority Priority)

Jump to

Keyboard shortcuts

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