Class PriorityQueueWithOrderedArray<T>
- Namespace
- AlgorithmsSW.PriorityQueue
- Assembly
- AlgorithmsSW.dll
[ExerciseReference(2, 4, 3)]
public sealed class PriorityQueueWithOrderedArray<T> : IPriorityQueue<T>, IEnumerable<T>, IEnumerable
Type Parameters
T
- Inheritance
-
PriorityQueueWithOrderedArray<T>
- Implements
-
IEnumerable<T>
- Inherited Members
- Extension Methods
Constructors
PriorityQueueWithOrderedArray(int, IComparer<T>)
public PriorityQueueWithOrderedArray(int capacity, IComparer<T> comparer)
Parameters
Properties
Count
public int Count { get; }
Property Value
PeekMin
public T PeekMin { get; }
Property Value
- T
Methods
GetEnumerator()
Returns an enumerator that iterates through the collection.
public IEnumerator<T> GetEnumerator()
Returns
- IEnumerator<T>
An enumerator that can be used to iterate through the collection.
PopMin()
public T PopMin()
Returns
- T
Push(T)
public void Push(T item)
Parameters
item
T