Click or drag to resize
IndexMinPQKeyInsert Method
Associates key with index i.

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public void Insert(
	int i,
	Key key
)

Parameters

i
Type: SystemInt32
i an index
key
Type: Key
key the key to associate with index i
Exceptions
ExceptionCondition
IndexOutOfRangeExceptionunless 0 <= i < maxN
ArgumentExceptionif there already is an item associated with index i
See Also