1234567891011121314 |
- #ifndef PERMUTATION_H
- #define PERMUTATION_H
- class permutation {
- public:
- permutation(int size); // initialize to identity
- void transpose(int i, int j);
- void random();
- int operator[](int i); // return the image of i (i and its image 0-based)
- protected:
- int *sigma, size; // data[i] is the image of i
- };
- #endif // PERMUTATION_H
|