#include "sort.h"
#include <lib/htime.h>
#include <stdio.h>
Include dependency graph for test-sort.cc:
Go to the source code of this file.
Classes | |
struct | MYOP |
Functions | |
int * | GenRandomPerm (size_t size, size_t red) |
template<typename T, typename _OP> void | X_DumbQuickSort (T *a, size_t nelem, const _OP &op=TLDefaultOperators_PDT< T >()) |
template<typename T, typename _OP> void | X_CleverQuickSort (T *a, size_t nelem, const _OP &op=TLDefaultOperators_PDT< T >()) |
int | _DoSortAndTest (int *perm, size_t permsize, size_t red, void(*sort)(int *, size_t, const MYOP< int > &), const char *name) |
int | main () |
Variables | |
char * | prg_name = "test-sort" |
|
Definition at line 119 of file test-sort.cc. References MYOP< T >::ass_calls, MYOP< T >::clr_calls, MYOP< T >::cmp_calls, FREE(), MYOP< T >::ini_calls, and HTime::MsecElapsed(). Referenced by main(). |
|
Definition at line 92 of file test-sort.cc. Referenced by main(). |
|
|
Definition at line 113 of file test-sort.cc. References CleverQuickSort(). Referenced by main(). |
|
Definition at line 108 of file test-sort.cc. References DumbQuickSort(). Referenced by main(). |
|
Definition at line 24 of file test-sort.cc. |