MaxPQKey Constructor (Int32, ComparerKey) |
Initializes an empty priority queue with the given initial capacity,
using the given comparator.
Namespace: Algs4NetAssembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax 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