Click or drag to resize
IndexMinPQKeyDecreaseKey Method
Decrease 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 DecreaseKey(
	int i,
	Key key
)

Parameters

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