View source: R/permutation_solver.R
permutation_solver | R Documentation |
Given a row or column pattern and the set of all possible
permutations of the row/column's length, permutation_solver
identifies
the set of permutations that satisfy the pattern
permutation_solver(
pattern,
permutation_patterns,
full_patterns = NULL,
verbose = TRUE
)
pattern |
A numeric vector where each element corresponds to the length of a run. |
permutation_patterns |
A matrix of permutations as generated by |
full_patterns |
A list where each element is a numerical run length encoding corresponding
to the rows in the |
A matrix with the same number of columns as the permutation_patterns
argument, and the same number of rows as there are matches.
full <- make_full_perm_set(10)
permutation_solver(c(2, 4, 1), full)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.