Skip to main content

All Questions

Tagged with
3 votes
2 answers
178 views

Select a subset in the bit-strings with even 1s overlapped - thank you

Model 1 Consider the permutation list of 4-bit-strings: list = Permutations[{0, 0, 1, 1}, {4}] which outputs: {{0, 0, 1, 1}, {0, 1, 0, 1}, {0, 1, 1, 0}, {1, 0, 0, ...
wonderich's user avatar
  • 923
2 votes
2 answers
136 views

Generating a list of tuples that meet certain criteria without running out of memory

I would like to generate tuples of length 21 with possible elements 1, 2, and 3. I would also like there to be an equal number of 1's, 2's, and 3's, and I want to control for how many times one ...
kangaroo's user avatar
6 votes
2 answers
303 views

Find permutation with highest organization number (OEIS A047838)

EDIT: It turns out I misunderstood the definition of "organization number", so the below is incorrect. However, for every permutation I create with my definition of "organization number", I can show ...
user avatar
0 votes
2 answers
177 views

Select ordered sublists of Permutations[{p1, p2, p3, p4}, {2}]

Given: ...
Lorenz H Menke's user avatar
2 votes
1 answer
182 views

Sorting of permutations

I would like to output the list of possible permutations of 4 indices but sorted in a certain way. I know that I can the list of possible permutations with ...
Mark Pace's user avatar
  • 316
3 votes
2 answers
293 views

How can I filter a permutation list depending of a pattern? [closed]

I've created a permutation list Grid[Permutations[{a, e, q, r, t, u}], Frame -> All] and only want to see rows where the 5th element is a "t". I tried to do ...
Jorgos's user avatar
  • 319
3 votes
0 answers
255 views

How to sequentially select, from a large set of tuples (of matrices), those with a certain property [closed]

I'm interested in finding a computationally efficient way for selecting all tuples of matrices which have a certain property. The property I'm interested in is that I want the column sum, of f[the ...
user16153's user avatar