InsertionIndexSort Method |
Returns a permutation that gives the elements in the array in ascending order,
while not changing the original array a[]
Namespace: Algs4NetAssembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static int[] IndexSort(
int[] a
)
Parameters
- a
- Type: SystemInt32
a the array
Return Value
Type:
Int32a permutation
p[] such that
a[p[0]],
a[p[1]],
...,
a[p[N-1]] are in ascending order
See Also