-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathexchange.h
More file actions
38 lines (23 loc) · 993 Bytes
/
exchange.h
File metadata and controls
38 lines (23 loc) · 993 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef _EXCHANGE_H_
#define _EXCHANGE_H_
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
void bubbleSort(long int *array, int length);
void circleSort(long int *array, int length);
// Auxiliar function that sort the array
bool circleSortAux(long int *start, long int *end);
void cocktailShakerSort(long int *array, int length);
void combSort(long int *array, int length);
void dualPivotQuickSort(long int *array, int start, int end);
void gnomeSort(long int *array, int length);
void oddEvenSort(long int *array, int length);
void bubbleSortOptmized(long int *array, int length);
void optimizedCocktailShakerSort(long int *array, int length);
void optimizedGnomeSort(long int *array, int length);
void quickSort3Way(long int *array, int start, int end);
void quickSort(long int *array, int start, int end);
void stableQuickSort(long int *array, int start, int end);
// Auxiliar function that sort the array
long int sort(long int *array, int start, int end);
#endif