priority_queue

package
v0.0.0-...-49a881d Latest Latest
Warning

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

Go to latest
Published: May 20, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Less(other interface{}) bool
}

type PriorityQueue

type PriorityQueue struct {
	// contains filtered or unexported fields
}

Define priority queue struct

func New

func New() *PriorityQueue

func (*PriorityQueue) Fix

func (q *PriorityQueue) Fix(x Interface, i int)

func (*PriorityQueue) Len

func (q *PriorityQueue) Len() int

func (*PriorityQueue) Pop

func (q *PriorityQueue) Pop() Interface

func (*PriorityQueue) Push

func (q *PriorityQueue) Push(x Interface)

func (*PriorityQueue) Remove

func (q *PriorityQueue) Remove(i int) Interface

func (*PriorityQueue) Top

func (q *PriorityQueue) Top() Interface

Jump to

Keyboard shortcuts

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