Click or drag to resize
MergeIndexSort Method
Returns a permutation that gives the elements in the array in ascending order.

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

Parameters

a
Type: SystemIComparable
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