Algs4Net Class Library Documentation
Algs4Net Class Library Documentation
Algs4Net
IndexMaxPQ(Key) Class
IndexMaxPQ(Key) Methods
ChangeKey Method
Contains Method
DecreaseKey Method
Delete Method
DelMax Method
GetEnumerator Method
IncreaseKey Method
Insert Method
KeyOf Method
MainTest Method
IndexMaxPQ
Key
Insert Method
Associate key with index i.
Namespace:
Algs4Net
Assembly:
Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
Copy
public
void
Insert
(
int
i
, Key
key
)
Parameters
i
Type:
System
Int32
an index
key
Type:
Key
the key to associate with index
i
Exceptions
Exception
Condition
IndexOutOfRangeException
unless 0 <=
i
<
maxN
ArgumentException
if there already is an item associated with index
i
See Also
Reference
IndexMaxPQ
Key
Class
Algs4Net Namespace