Sage Modeling and Simulation Library

Heap<(Of <(<'T>)>)> Class

A binary heap can be efficiently implemented as an array, where a node at index i has children at indexes 2i and 2i+1 and a parent at index i/2, with one-based indexing.

Namespace:  Highpoint.Sage.Utility
Assembly:  Sage4 (in Sage4.dll)

Syntax


public class Heap<T>

Type Parameters

T
The type of things held in the heap.

Inheritance Hierarchy


Object
  Highpoint.Sage.Utility..::..Heap<(Of <(<'T>)>)>