DistDir
|
Functions | |
void | mergeSort (int *arr, int l, int r) |
Sort array. More... | |
void | mergeSort_with_idx (int *arr, int *arr_idx, int l, int r) |
Sort array and an associated index list. More... | |
void | mergeSort_with_idx2 (int *arr, int *arr_idx1, int *arr_idx2, int l, int r) |
Sort array and two associated index lists. More... | |
void | quickSort (int *arr, int l, int h) |
Sort array. More... | |
void | quickSort_with_idx (int *arr, int *arr_idx, int l, int h) |
Sort array and its array of indices. More... | |
void | quickSort_with_idx2 (int *arr, int *arr_idx1, int *arr_idx2, int l, int h) |
Sort array and two associated index lists. More... | |
void | timSort (int *arr, int l, int r) |
Sort array. More... | |
void | timSort_with_idx (int *arr, int *arr_idx, int l, int r) |
Sort array and an associated index list. More... | |
void | timSort_with_idx2 (int *arr, int *arr_idx1, int *arr_idx2, int l, int r) |
Sort array and two associated index lists. More... | |
Sorting algorithms used internally by DistDir library
void mergeSort | ( | int * | arr, |
int | l, | ||
int | r | ||
) |
Sort array.
Sort array using mergesort algorithm
[in] | arr | Array to be sorted |
[in] | l | First index of the array to be sorted |
[in] | r | Last index of the array to be sorted |
void mergeSort_with_idx | ( | int * | arr, |
int * | arr_idx, | ||
int | l, | ||
int | r | ||
) |
Sort array and an associated index list.
Sort array and an associated index list using mergesort algorithm
[in] | arr | Array to be sorted |
[in] | arr_idx | Index list array to be sorted |
[in] | l | First index of the array to be sorted |
[in] | r | Last index of the array to be sorted |
void mergeSort_with_idx2 | ( | int * | arr, |
int * | arr_idx1, | ||
int * | arr_idx2, | ||
int | l, | ||
int | r | ||
) |
Sort array and two associated index lists.
Sort array and two associated index lists using mergesort algorithm
[in] | arr | Array to be sorted |
[in] | arr_idx1 | First Index list array to be sorted |
[in] | arr_idx2 | Second Index list array to be sorted |
[in] | l | First index of the array to be sorted |
[in] | r | Last index of the array to be sorted |
void quickSort | ( | int * | arr, |
int | l, | ||
int | h | ||
) |
Sort array.
Sort array using quicksort algorithm
[in] | arr | Array to be sorted |
[in] | l | First index of the array to be sorted |
[in] | r | Last index of the array to be sorted |
void quickSort_with_idx | ( | int * | arr, |
int * | arr_idx, | ||
int | l, | ||
int | h | ||
) |
Sort array and its array of indices.
Sort array and an associated index list using quicksort algorithm
[in,out] | arr | Array to be sorted |
[in,out] | arr_idx | Array of indices following the sorting of arr |
[in] | l | First index of the array to be sorted |
[in] | r | Last index of the array to be sorted |
void quickSort_with_idx2 | ( | int * | arr, |
int * | arr_idx1, | ||
int * | arr_idx2, | ||
int | l, | ||
int | h | ||
) |
Sort array and two associated index lists.
Sort array and two associated index lists using quicksort algorithm
[in,out] | arr | Array to be sorted |
[in,out] | arr_idx1 | First Index list array to be sorted |
[in,out] | arr_idx2 | Second Index list array to be sorted |
[in] | l | First index of the array to be sorted |
[in] | r | Last index of the array to be sorted |
void timSort | ( | int * | arr, |
int | l, | ||
int | r | ||
) |
Sort array.
Sort array using timsort algorithm using subarrays of size 32
[in,out] | arr | Array to be sorted |
[in] | l | First index of the array to be sorted |
[in] | r | Last index of the array to be sorted |
void timSort_with_idx | ( | int * | arr, |
int * | arr_idx, | ||
int | l, | ||
int | r | ||
) |
Sort array and an associated index list.
Sort array and an associated index list using timsort algorithm with subarrays of size 32
[in,out] | arr | Array to be sorted |
[in,out] | arr_idx | Index list array to be sorted |
[in] | l | First index of the array to be sorted |
[in] | r | Last index of the array to be sorted |
void timSort_with_idx2 | ( | int * | arr, |
int * | arr_idx1, | ||
int * | arr_idx2, | ||
int | l, | ||
int | r | ||
) |
Sort array and two associated index lists.
Sort array and two associated index lists using timsort algorithm with subarrays of size 32
[in,out] | arr | Array to be sorted |
[in,out] | arr_idx1 | First index list array to be sorted |
[in,out] | arr_idx2 | Second index list array to be sorted |
[in] | l | First index of the array to be sorted |
[in] | r | Last index of the array to be sorted |