permutation
computing permutation of specific bits in a number
As part of my master thesis, I get a number (e.g. 5 bits) with 2 significant bits (2nd and 4th). This means for example x1x0x, where $x \\in {0,1}$ (x coul开发者_运维问答d be 0 or 1) and 1,0 are bits[详细]
2023-02-12 22:40 分类:问答How to generate a list from permutations of other lists in Mathematica
I am stuckwith a fairly simple problem: I need to construct a list with all permutations of values from two different lists in Mathematica.[详细]
2023-02-12 21:07 分类:问答Combinations with multiple containers of varying sizes
If you know what this kind of problem is called, let me know (unless you actually know the answer to the question).[详细]
2023-02-12 06:56 分类:问答permute/scramble arraylist elements in java
suppose I have arraylist of integers...is there a way that I can generate a random permutation/arrangement of the e开发者_C百科lements in the arraylist[详细]
2023-02-12 06:17 分类:问答Get all (next) subsets or permutations (or something)
I\'m not quite sure of the word to use here so excuse me if I\'m using the wrong terminology. I\'m trying create a function to get the next permutation of a string giving the current string and a str[详细]
2023-02-10 19:14 分类:问答Algorithms - Combinations and Permutations
A hwk question and apparently also a common interview question I\'m having trouble with: \"Write an algorithm (pseudocode) that prints out all the subsets of three elements of a set of n elements.The[详细]
2023-02-10 06:49 分类:问答The amortized complexity of std::next_permutation?
I just read this other question about the complexity of next_permutation and while I\'m satisfied with the response (O(n)), it seems like开发者_JS百科 the algorithm might have a nice amortized analysi[详细]
2023-02-10 04:45 分类:问答combinations of players for a team in C
I am trying to generate all combinations of players to make up a team of basketball players. Let\'s say there\'s 5 positions(SG, PG, SF, PF, C) and I need to fill a rooster with 9 players, 2 of each p[详细]
2023-02-09 15:44 分类:问答Balancing pebbles problem
I have stumbled upon this problem before, it is a balancing problem. The program takes in an array of integers of size n. The program then determines if thi开发者_运维百科s array of integers can be sp[详细]
2023-02-09 04:51 分类:问答next_permutation problem c++
While using this code: for(int i=0; i<line; i++) { next_permutation(nums, nums+N); if(DEBUG) { for(int j=0; j<N; j++) {[详细]
2023-02-08 17:27 分类:问答