pqueue

package module
v0.0.0-...-4fbdee8 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

README

pqueue

PQueue written in Go, based on *ru algorithms.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keytype

type Keytype interface{}

type PQueue

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

func NewPQueue

func NewPQueue() *PQueue

func (*PQueue) DelMin

func (pq *PQueue) DelMin() Valuetype

func (*PQueue) Get

func (pq *PQueue) Get(key Keytype) *list.Element

func (*PQueue) GetMin

func (pq *PQueue) GetMin() Valuetype

func (*PQueue) Set

func (pq *PQueue) Set(key Keytype, value Valuetype) bool

func (*PQueue) SetMP

func (pq *PQueue) SetMP(key Keytype, value Valuetype) bool

func (*PQueue) Size

func (pq *PQueue) Size() int64

type Valuetype

type Valuetype interface {
	KeyEqual(interface{}) bool
}

Jump to

Keyboard shortcuts

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