permutationwheres
Permutationwheres is a hypothetical concept used in combinatorics and constraint-based permutation problems. In this framework, a permutationwhere describes a set of allowed positions for each element in a permutation of the set [n] = {1,...,n}. A permutation π satisfies a permutationwhere W = (W1, W2, ..., Wn) if, for every i in [n], the value π(i) lies in the allowed set Wi, with the additional requirement that π is a bijection (a permutation).
Formally, Wi ⊆ [n] for each i, and π satisfies W if π(i) ∈ Wi for all i, and π
Examples help illustrate: if n = 3 with W1 = {1,2}, W2 = {2,3}, W3 = {1,3}, the satisfying permutations
Variants include forbidding specific (i, π(i)) pairs or imposing global constraints. Counting permutationwheres is generally #P-hard,