mheap

package
v0.0.0-...-02307e5 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Orderable

type Orderable interface {
	OrderKey() int
}

type PQ

type PQ []Orderable

func (PQ) Len

func (pq PQ) Len() int

func (PQ) Less

func (pq PQ) Less(i, j int) bool

func (*PQ) Pop

func (pq *PQ) Pop() interface{}

func (*PQ) Push

func (pq *PQ) Push(v interface{})

func (PQ) Swap

func (pq PQ) Swap(i, j int)

type Tuple2

type Tuple2 struct {
	First  int
	Second int
}

func (Tuple2) OrderKey

func (t Tuple2) OrderKey() int

type Tuple3

type Tuple3 struct {
	First  int
	Second int
	Third  int
}

func (Tuple3) OrderKey

func (t Tuple3) OrderKey() int

Jump to

Keyboard shortcuts

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