#include <Permutation.h>
Static Public Member Functions | |
| bool | perm (int data[], const int &length) |
| Calculates the next permutation to a given one. | |
Static Private Member Functions | |
| void | sort (int data[], const int &start, const int &end) |
| Sort the part of the array between the positions start and end (inclusive) via a quicksort algorithm. | |
Definition at line 15 of file Permutation.h.
|
||||||||||||
|
Calculates the next permutation to a given one. To get all permutations the data-array in the first call should be sorted ascending.
Definition at line 10 of file Permutation.cpp. |
Here is the call graph for this function:

|
||||||||||||||||
|
Sort the part of the array between the positions start and end (inclusive) via a quicksort algorithm.
Definition at line 40 of file Permutation.cpp. Referenced by perm(). |
1.3.6