Table of Contents

Class MedianDoubleHeap<T>

Namespace
AlgorithmsSW.PriorityQueue
Assembly
AlgorithmsSW.dll

Container that supports efficient insertions and retrieval and removal of the median element in the container.

[ExerciseReference(2, 4, 30)]
public sealed class MedianDoubleHeap<T>

Type Parameters

T
Inheritance
MedianDoubleHeap<T>
Inherited Members
Extension Methods

Constructors

MedianDoubleHeap(int, IComparer<T>)

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

Parameters

capacity int
comparer IComparer<T>

Properties

PeekMedian

public T PeekMedian { get; }

Property Value

T

Methods

AssertHeapSizeInvariant()

public void AssertHeapSizeInvariant()

PopMedian()

public T PopMedian()

Returns

T

Push(T)

public void Push(T item)

Parameters

item T