Click or drag to resize
InsertionIndexSort Method
Returns a permutation that gives the elements in the array in ascending order, while not changing the original array a[]

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static int[] IndexSort(
	int[] a
)

Parameters

a
Type: SystemInt32
a the array

Return Value

Type: Int32
a permutation p[] such that a[p[0]], a[p[1]], ..., a[p[N-1]] are in ascending order
See Also