Documentation
¶
Index ¶
- type Heap
- func (obj *Heap) Append(value int)
- func (obj *Heap) At(pos int) int
- func (a *Heap) BuildHeap()
- func (a *Heap) ExtractRoot() (max int, err error)
- func (obj *Heap) GetArrayLength() int
- func (obj *Heap) GetSize() int
- func (a *Heap) Heapify(i int)
- func (a *Heap) IncreaseKey(i int, key int) (err error)
- func (obj *Heap) Left(i int) int
- func (a *Heap) MaxHeapInsert(key int)
- func (obj *Heap) New(isMax bool, array ...int)
- func (obj *Heap) Parent(i int) int
- func (obj *Heap) Right(i int) int
- func (a *Heap) RootNode() int
- func (obj *Heap) Set(value int, pos int) (err error)
- func (obj *Heap) SetSize(value int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Heap ¶
type Heap struct {
// contains filtered or unexported fields
}
func (*Heap) ExtractRoot ¶
func (*Heap) GetArrayLength ¶
func (*Heap) MaxHeapInsert ¶
Click to show internal directories.
Click to hide internal directories.