week9 heapsort and quicksort compare
This commit is contained in:
16
week9/T8.h
Normal file
16
week9/T8.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#include <time.h>
|
||||
|
||||
|
||||
void QuickSort(int *A, int left, int right);
|
||||
|
||||
int Partition(int *A, int left, int right);
|
||||
|
||||
void HeapSort(int *A, int n);
|
||||
|
||||
void PercDown(int *A, int i, int n);
|
||||
|
||||
bool Check(int *A, int size);
|
||||
|
||||
void Swap(int *a, int *b);
|
||||
|
||||
void PrintTimeDuration(clock_t start_time, clock_t end_time);
|
||||
Reference in New Issue
Block a user