# All Questions

59 questions
Filter by
Sorted by
Tagged with
65 views

### More general permutation of lists

For some arbitrary $N$, I would like to construct all permutations of lists of length $n \leq N$ such that the sum of each permutation list adds to a value less than or equal to $N$. Specifically, ...
31 views

### $2+2+\dots+2$ cycle conjugation classes of the symmetric group $S_n$

Command GroupElements[SymmetricGroup[4]] gives me all cycles of all conjugation classes. But I'm only interested in the 2+2 class ($2+2$ being one of the integer ...
69 views

### Fixed points free permutations [duplicate]

How to generate a list of fixpoint free permutations of n elements in mathematica?
406 views

### ls Ordering[Ordering[list]] optimal?

Given a list list with unique elements, the task is to replace each element by its position in Sort[list]. For example, ...
327 views

### Terse Method to Swap Lowest for Highest?

I have built a solution to swap the lowest values with the highest values in a list. With ...
47 views

### Generating a new list according to the values of the elements of a list

I want to use the command Permute to arrange the rows of a matrix. What I am looking to do is given a list I want to generate a new list which gives me the positions of the elements of the first list ...
404 views

### How to generate all involutive permutations?

Take a finite set $S$ (i.e., a list). An involutive permutation is one that squares to the identity. How can we generate all such permutations efficiently, that is, without generating all permutations ...
45 views

### Generating list of binomial outcomes [closed]

As an example, imagine if I have a set of 3 coins and I want to generate a list of possible coin states. I know I can brutishly execute: ...
228 views

493 views

### Conditional permutation of combining multiple lists

Let's say I have two lists: l1={1,2} l2={a,b} I want to find legal permutations of combining these two list in a way that the ordering of the members of each ...
332 views