20#define TypeFormat "%d"
void bubblesort(Type *v, int n)
Sorts an array of integers in ascending order using the bubble sort algorithm.
void quicksort(Type *v, int n)
Sorts an array of integers in ascending order using the quicksort algorithm.
void insertionsort(Type *v, int n)
Sorts an array of integers in ascending order using the insertion sort algorithm.
void selectionsort(Type *v, int n)
Sorts an array of integers in ascending order using the selection sort algorithm.
void radixsort(Type *v, int n)
Sorts an array of integers in ascending order using the radix sort algorithm.
void heapsort(Type *v, int n)
Sorts an array of integers in ascending order using the heapsort algorithm.
void mergesort(Type *v, int n)
Sorts an array of integers in ascending order using the merge sort algorithm.
void print_vector(Type *v, int n)
Prints the elements of an array to the console.
Type * random_vector(int n)
Creates an array of random integers.
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.
void debug(const char *format,...)
Prints a debug message to the console if the DEBUG symbol is defined.
#define Type
Definition sort.h:17
void debug_print_vector(Type *v, int n)
Prints the elements of an array to the console if the DEBUG symbol is defined.