pqueue

package
v0.0.0-...-a9a9d8c Latest Latest
Warning

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

Go to latest
Published: Apr 9, 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 PQueue

type PQueue []*QItem

func (PQueue) Len

func (pq PQueue) Len() int

func (PQueue) Less

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

func (*PQueue) Pop

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

func (*PQueue) Push

func (pq *PQueue) Push(x interface{})

func (PQueue) Swap

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

type QItem

type QItem struct {
	Value    string
	Index    int
	Priority float64
}

Jump to

Keyboard shortcuts

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