maxheap

package
v0.0.0-...-de70c8a Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package maxheap implements max heap.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MaxHeap

type MaxHeap []vector.Expr

MaxHeap is a max heap type.

func New

func New() *MaxHeap

New returns a new max heap.

func (MaxHeap) Len

func (m MaxHeap) Len() int

Len implements the heap interface.

func (MaxHeap) Less

func (m MaxHeap) Less(i, j int) bool

Less implements the heap interface.

func (*MaxHeap) Pop

func (m *MaxHeap) Pop() interface{}

Pop implements the heap interface.

func (*MaxHeap) Push

func (m *MaxHeap) Push(element interface{})

Push implements the heap interface.

func (MaxHeap) Swap

func (m MaxHeap) Swap(i, j int)

Swap implements the heap interface.

Jump to

Keyboard shortcuts

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