|
@@ -18,7 +18,6 @@ void permutation::transpose(int i, int j) {
|
|
|
std::swap(sigma[i], sigma[j]);
|
|
|
}
|
|
|
|
|
|
-// TODO rapport : dire qu'on garde l'invariant pi[0] = 0
|
|
|
void permutation::random() {
|
|
|
// Knuth Fisher Yates shuffle
|
|
|
// there is a bias due to the use of rand()%_
|