Click or drag to resize
Accord.NET (logo)

SortInsertionTKey, TValue Method (TKey, TValue, Int32, Int32, Boolean)

Insertion sort.

Namespace:  Accord
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public static int Insertion<TKey, TValue>(
	TKey[] keys,
	TValue[] items,
	int first,
	int last,
	bool asc = true
)
where TKey : Object, IComparable<TKey>
Request Example View Source

Parameters

keys
Type: TKey
items
Type: TValue
first
Type: SystemInt32
last
Type: SystemInt32
asc (Optional)
Type: SystemBoolean

Type Parameters

TKey
TValue

Return Value

Type: Int32
See Also