|
| void | bubblesort (Type *v, int n) |
| | Sorts an array of integers in ascending order using the bubble sort algorithm.
|
| void | insertionsort (Type *v, int n) |
| | Sorts an array of integers in ascending order using the insertion sort algorithm.
|
| void | mergesort (Type *v, int n) |
| | Sorts an array of integers in ascending order using the merge sort algorithm.
|
| void | quicksort (Type *v, int n) |
| | Sorts an array of integers in ascending order using the quicksort algorithm.
|
| void | heapsort (Type *v, int n) |
| | Sorts an array of integers in ascending order using the heapsort algorithm.
|
| void | radixsort (Type *v, int n) |
| | Sorts an array of integers in ascending order using the radix sort algorithm.
|
| void | selectionsort (Type *v, int n) |
| | Sorts an array of integers in ascending order using the selection sort algorithm.
|
| void | print_vector (Type *v, int n) |
| | Prints the elements of an array to the console.
|
| void | swap (Type *e1, Type *e2) |
| | Swaps the values of two integers.
|
| int | check_sorted (Type *v, int n) |
| | Checks if an array is sorted in ascending order.
|
| Type * | random_vector (int n) |
| | Creates an array of random integers.
|
| void | debug_print_vector (Type *v, int n) |
| | Prints the elements of an array to the console if the DEBUG symbol is defined.
|
| void | debug (const char *format,...) |
| | Prints a debug message to the console if the DEBUG symbol is defined.
|