permutation
Static sized combinations
Hour upon hour and I cannot come up with a solution. Let\'s say I have ABC, I need all it\'s 3 letter combinations, a开发者_如何学编程bc, bbc, cbc etc. Not a ab abc etc. Can it be done with just loop[详细]
2023-04-01 06:43 分类:问答"K-transformed" permutations
I have been banging my head against this problem for days, and searched exhaustively online for any hints on how to solve it. If you enjoy mathematically oriented programming problems, please take a l[详细]
2023-03-31 01:03 分类:问答Java array splitting and reconnecting. Lost elements
I\'m trying to implement the TSP double bridge move which works as follows: Given a permutation(tour) of cities it splits the permutation in 4 parts and reconnects these parts in different order.[详细]
2023-03-29 11:26 分类:问答Bitwise permutation of multiple 64bit values in parallel / combined
This question is NOT about \"How do i bitwise permutation\" We now how to do that, what we are looking for is a faster way with less cpu instructions, inspired by the bitslice implementation of sboxes[详细]
2023-03-29 04:28 分类:问答Combinations of x, y and z coordinates (stored in three different files)
I am writing a bash script for automatising blind docking (finding binding sites within a protein). For so doing, I have divided a big 3D grid in smaller overlapping grids.[详细]
2023-03-29 03:29 分类:问答Generating Random Permutation Uniformly in Java
Anyone know of a fast/the fastest way to generate a random permutation of a list of integers in Java. For example if I want a random permutation of length five an answer would be 1 5 4 2 3, where each[详细]
2023-03-26 12:16 分类:问答Why does the following code NOT generate permutations randomly? [duplicate]
This question already has answers here: Closed 11 years ago. Possible Duplicate: What distribution do you get from this broken random shuffle?[详细]
2023-03-25 10:04 分类:问答Permutation of String letters: How to remove repeated permutations?
Here is a standard function to print the permutations of characters of a string: void permute(char *a, int i, int n)[详细]
2023-03-24 12:59 分类:问答R: Generating all permutations of N weights in multiples of P
I need to create a function (in R) which: - given N possible variables to attribute weights to; - creates all possible permuati开发者_Python百科ons of weights (summing to 100%);[详细]
2023-03-24 07:41 分类:问答Ranking and unranking of permutations with duplicates
I\'m reading about permutations and I\'m interested in ranking/unranking methods. From the abstract of a paper:[详细]
2023-03-23 20:11 分类:问答