Algs4Net Class Library Documentation
Algs4Net Class Library Documentation
Algs4Net
IndexMinPQ(Key) Class
IndexMinPQ(Key) Methods
Change Method
ChangeKey Method
Contains Method
DecreaseKey Method
Delete Method
DelMin Method
GetEnumerator Method
IncreaseKey Method
Insert Method
KeyOf Method
MainTest Method
ToString Method
IndexMinPQ
Key
ChangeKey Method
Change 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#
Copy
public
void
ChangeKey
(
int
i
, Key
key
)
Parameters
i
Type:
System
Int32
i the index of the key to change
key
Type:
Key
key change the key associated with index
i
to this key
Exceptions
Exception
Condition
IndexOutOfRangeException
unless 0 <=
i
<
maxN
InvalidOperationException
no key is associated with index
i
See Also
Reference
IndexMinPQ
Key
Class
Algs4Net Namespace