Table of Contents

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
Inherited Members
Extension Methods

Constructors

PriorityQueueWithOrderedArray(int, IComparer<T>)

public PriorityQueueWithOrderedArray(int capacity, IComparer<T> comparer)

Parameters

capacity int
comparer IComparer<T>

Properties

Count

public int Count { get; }

Property Value

int

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