I have a set N of length len of different items, and I need to find number of possible ways I can permute them.
The problem is, I also have n conditions each of which specifies that item n(i) from set N must appear before every item in the set A(i).
Where A is a subset of the set {N - n(i)}, and n(i) belongs to N.
EDIT:
Thanks to @ChasBrown, I've clarified my question with proper notations.
I have a set N={1,2,...,k} where $k$ = 'len'; and $A⊂N$; and I want to know the number of permutations $p$ of $N$ where, for all $x∈N−A,y∈A$, $p(x)
– 2017-01-06