minheap

package
v0.0.0-...-c183f35 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2017 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MinHeap

type MinHeap []ds.Comparable

MinHeap represents a binary min-heap which implements heap.Interface .

func (*MinHeap) Len

func (bh *MinHeap) Len() int

Len is to implements heap.Interface .

func (*MinHeap) Less

func (bh *MinHeap) Less(i, j int) bool

Less is to implements heap.Interface .

func (*MinHeap) Pop

func (bh *MinHeap) Pop() (v interface{})

Pop is to implements heap.Interface .

func (*MinHeap) Push

func (bh *MinHeap) Push(val interface{})

Push is to implements heap.Interface .

func (*MinHeap) Swap

func (bh *MinHeap) Swap(i, j int)

Swap is to implements heap.Interface .

Jump to

Keyboard shortcuts

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