Class RandomDerangement
java.lang.Object
dk.jonaslindstrom.ruffini.permutations.algorithms.RandomDerangement
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RandomDerangement
-
-
Method Details
-
D
public static double D(int n) Compute the number of derangements of n symbols recursively -
apply
Algorithm from "Generating random derangements" by MartÃnez et.al (https://epubs.siam.org/doi/pdf/10.1137/1.9781611972986.7).
-