Class D_aryMaxHeap<T>
Inherited Members
Namespace: Advanced.Algorithms.DataStructures
Assembly: Advanced.Algorithms.dll
Syntax
public class D_aryMaxHeap<T>
where T : IComparable
Type Parameters
| Name | Description |
|---|---|
| T |
Constructors
D_aryMaxHeap(Int32, IEnumerable<T>)
Declaration
public D_aryMaxHeap(int k, IEnumerable<T> initial = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | k | |
| IEnumerable<T> | initial |
Fields
Count
Declaration
public int Count
Field Value
| Type | Description |
|---|---|
| Int32 |
Methods
ExtractMax()
Declaration
public T ExtractMax()
Returns
| Type | Description |
|---|---|
| T |
Insert(T)
Declaration
public void Insert(T newItem)
Parameters
| Type | Name | Description |
|---|---|---|
| T | newItem |
PeekMax()
Declaration
public T PeekMax()
Returns
| Type | Description |
|---|---|
| T |