Gecode::Support Namespace Reference
Detailed Description
Support algorithms and datastructures
Classes | |
class | BlockAllocator |
Manage memory organized into block lists (allocator). More... | |
class | BlockClient |
Client for block allocator of type T. More... | |
class | DynamicArray |
Array with arbitrary number of elements. More... | |
class | DynamicStack |
Stack with arbitrary number of elements. More... | |
class | LinearCongruentialGenerator |
Template for linear congruential generators. More... | |
class | SharedArray |
Shared array with arbitrary number of elements. More... | |
class | QuickSortStack |
Static stack for quicksort. More... | |
class | PQueue |
Simple fixed-size priority queue. More... | |
class | StaticStack |
Stack with fixed number of elements. More... | |
Typedefs | |
typedef LinearCongruentialGenerator< 2147483647, 48271, 44488, 3399 > | RandomGenerator |
Default choice of values for the linear congruential generator. | |
Functions | |
template<class Type, class LessThan> | |
void | exchange (Type &a, Type &b, LessThan <) |
Exchange elements according to order. | |
template<class Type, class LessThan> | |
void | insertion (Type *l, Type *r, LessThan <) |
Standard insertion sort. | |
template<class Type, class LessThan> | |
Type * | partition (Type *l, Type *r, LessThan <) |
Standard partioning. | |
template<class Type, class LessThan> | |
void | quicksort (Type *l, Type *r, LessThan <) |
Standard quick sort. | |
template<class Type, class LessThan> | |
void | insertion (Type *x, int n, LessThan <) |
Insertion sort. | |
template<class Type, class LessThan> | |
void | quicksort (Type *x, int n, LessThan <) |
Quicksort. | |
Variables | |
int const | QuickSortCutoff = 20 |
Perform quicksort only for more elements. |
Function Documentation
|
Exchange elements according to order.
|
|
Standard insertion sort.
|
|
Standard partioning.
|
|
Standard quick sort.
|
Variable Documentation
|
Perform quicksort only for more elements.
|