SortUtility
This module contains routines for sorting the matrix and vectors. Currently, this module provides following methods.
- HeapSort
- ArgHeapSort
- QuickSort
- ArgQuickSort
- InsertionSort
- ArgInsertionSort
- IntroSort
- ArgIntroSort
- Sort
- ArgSort
Methodsβ
ποΈ ArgHeapSort
This routine performs an indirect heap sort on an array.
ποΈ ArgInsertionSort
This routine performs an indirect insertion sort on an array.
ποΈ ArgIntroSort
This routine performs an indirect sort on an array.
ποΈ ArgQuickSort
ποΈ ArgSort
ArgSort function performs an indirect heap sort on an array.
ποΈ HeapSort
This subroutine implements heap sort algorithm to sort the array inplace.
ποΈ InsertionSort
Insertion sort (in-place) algorithm.
ποΈ IntroSort
Intro sort (in-place) algorithm.
ποΈ QuickSort
QuickSort algorithm for sorting.
ποΈ Sort
Sort is a function for sorting a vector, which also takes the name of sorting algorithm as an input.