#include <mathematics/chaos.h>
#include <system_helper.h>
Go to the source code of this file.
|
template<class type > |
basis::astring | algorithms::dump_list (type v[], int size) |
| dumps the contents of the list out, assuming that the type can be turned into an int. More...
|
|
template<class type > |
void | algorithms::shell_sort (type v[], int n, bool reverse=false) |
| shell sort algorithm. More...
|
|
template<class type > |
basis::array< type > | algorithms::merge (basis::array< type > &first, basis::array< type > &second, bool reverse) |
|
template<class type > |
basis::array< type > | algorithms::merge_sort (const basis::array< type > &v, bool reverse=false) |
|
template<class type > |
void | algorithms::heap_sort (type v[], int n, bool reverse=false) |
|
template<class type > |
void | algorithms::swap_values (type array[], int a, int b) |
| swaps the values in the array stored at positions a and b. More...
|
|
template<class type > |
int | algorithms::partition (type a[], int start, int end, bool reverse) |
|
template<class type > |
void | algorithms::inner_quick_sort (type v[], int start, int end, bool reverse) |
| the recursive version of quick sort that does the work for our convenience method. More...
|
|
template<class type > |
void | algorithms::quick_sort (type v[], int n, bool reverse=false) |
|
template<class type > |
void | algorithms::randomize_list (type v[], int n) |
| handy method for randomizing the order of a list. not strictly a sorting function... More...
|
|