week8 format
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
#include <stdbool.h>
|
||||
#include <time.h>
|
||||
|
||||
|
||||
/* Sort array A[left..right] using quick sort */
|
||||
/* Pivot is picked using median-of-3 */
|
||||
/* Sort array A[left..right] using quick sort
|
||||
* Pivot is picked using median-of-3 */
|
||||
void QuickSort(int *A, int left, int right);
|
||||
|
||||
/* Sort the array in order */
|
||||
@@ -13,7 +12,7 @@ int Partition(int *A, int left, int right);
|
||||
int Pivot(int *A, int left, int right);
|
||||
|
||||
/* Swap A[x], A[y] */
|
||||
void Swap(int *A, int x,int y);
|
||||
void Swap(int *A, int x, int y);
|
||||
|
||||
/* create check functions */
|
||||
bool Check(int *A, int size);
|
||||
@@ -23,4 +22,3 @@ void PrintClockInterval(clock_t start, clock_t end);
|
||||
|
||||
/* use this to check small size of data */
|
||||
void _PrintClockInterval(clock_t start, clock_t end);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user