# All Questions

59 questions
Filter by
Sorted by
Tagged with
3answers
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, ...
1answer
31 views

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

Command GroupElements[SymmetricGroup] 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 ...
2answers
69 views

### Fixed points free permutations [duplicate]

How to generate a list of fixpoint free permutations of n elements in mathematica?
1answer
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, ...
2answers
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 ...
1answer
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 ...
4answers
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 ...
0answers
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: ...
2answers
228 views

2answers
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 ...
1answer
332 views

1answer
86 views

### Optimise CPU-intensive list combining function

I have a list of numbers list1 from which I want to create another list (list2) consisting of only those numbers that are equal ...
1answer
300 views

### Finding the optimal teams ranking based on the table of match results

My original question was this: So my task is to score all the possible rankings of the 14 SEC football teams and find the best one, using who won in head-to-head games as the sole criterion (so ...