Click or drag to resize
MaxPQKey Constructor (Int32, ComparerKey)
Initializes an empty priority queue with the given initial capacity, using the given comparator.

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public MaxPQ(
	int initCapacity,
	Comparer<Key> comparator
)

Parameters

initCapacity
Type: SystemInt32
initCapacity the initial capacity of this priority queue
comparator
Type: System.Collections.GenericComparerKey
comparator the order to use when comparing keys
See Also