Questions tagged [permutation]
For questions about the functionality related to permutations in Mathematica.
14
questions with no upvoted or accepted answers
6
votes
0
answers
137
views
Counting automorphisms that preserve a group action
Note: the math, I believe, is not the problem here. The issue is not that I get the wrong answer, just that my code does not terminate. So, if you do not feel comfortable with the problem below, I do ...
2
votes
0
answers
60
views
How to iterate over Orbit of PermutationGroup?
Another day, another permutation group question.
I'm given a g=PermutationGroup[...], and a list l={1, 3, 3, 2, ...}. I know I ...
2
votes
0
answers
744
views
Sum over multiindex
I would like to calculate a sum over some multi-indices, that follow a specific pattern.
$$\sum\limits_{1\le i_1<i_2<...<i_k\le N} A(k,i_1, i_2, ..., i_k).$$
$A$ is a fix expression of the ...
2
votes
0
answers
53
views
Differences in AbsoluteTiming for similar codes
Consider the two following codes with the same SeedRandom (which ensures the same set of random numbers) but different use of the ...
2
votes
0
answers
125
views
Any command for group products?
Is there any Mathematica command or well known technique to take the direct product between two symmetric/permutation groups?
1
vote
0
answers
88
views
Find Max Instance Over Permutations
I would like to find the maximum of some objective function over all possible permutations
...
1
vote
0
answers
75
views
Custom Table, for iterating over permutations
It is common that I iterate over all permutations of 1,2...,n, either by making a table or performing a sum.
Instead of creating the set of all permutations, it would be better to iterate over them.
...
1
vote
0
answers
96
views
Fast way to apply permutations in large list?
I have one Polynomial in the form of FF[x1,x2,x3,x4,x5,x6,x7,x8], where xi pick numbers from ...
1
vote
0
answers
430
views
Sum over cyclic permutation of indices
To define the Schouten bracket I need to be able to sum over a cyclic permutation of the indices:
$$ [\Phi,\Xi]_S=\mathfrak S_{i,j,k} \left(\Phi^{is}\partial_s\Xi^{jk}+ \Xi^{is}\partial_s\Phi^{jk}\...
1
vote
0
answers
42
views
Permute using symmetric vs alternating groups
Why does this happen?
Permute[{0, 0, 0}, SymmetricGroup[3]]
(* {{0, 0, 0}} *)
Permute[{0, 0, 0}, AlternatingGroup[3]]
(* {{0, 0, 0}, {0, 0, 0}, {0, 0, 0}} *)
1
vote
0
answers
575
views
Efficient submatrix swaps for large sparse matrix
I am implementing the 'swap' algorithm for a binary matrix to generate matrix permutations that maintain row and column totals. My problem is that my matrices are large and sparse (e.g., 19774 x 942, ...
0
votes
0
answers
40
views
Put together all possible combinations of a set of functions, variables, and operators
Using a set of functions, variables, and operators, I'm trying to assemble all of the possible combinations starting with the shortest combination and ending with the longest combination. For example, ...
0
votes
0
answers
80
views
How can I shuffle the indices of certain variables?
I am recursively defining rational expressions in two sets of variables $x_i$ and $y_i$. Specifically, for $m<n$, I am interested in replacing all degree-$m$ monomials of the following form: $$\...
0
votes
0
answers
62
views
How to rename the output in operations?
The problem is the following, i have 23 Cycles, every cycle have a name:
...