Click or drag to resize
IndexMinPQKeyIncreaseKey Method
Increase the key associated with index i to the specified value.

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

Parameters

i
Type: SystemInt32
i the index of the key to increase
key
Type: Key
key increase the key associated with index i to this key
Exceptions
ExceptionCondition
IndexOutOfRangeExceptionunless 0 <= i < maxN
ArgumentExceptionif key <= key associated with index i
ArgumentExceptionno key is associated with index i
See Also