permutation
Getting all permutations of a word where letters may have variants
i am looking for the pseudocode algorithm to the following problem. i want to get all permutations of a word.[详细]
2023-04-12 21:26 分类:问答Identifying swap sequences that produce the same result
I have an associative array where I store key-value pairs, on which I can perform swap operations: swap(a, b)// a <-> b[详细]
2023-04-11 18:44 分类:问答php string permutation
Let\'s say I have an array consisting of characters from these ranges \"a-zA-Z0-9\". What I want to do is get all possible combinations possible in a 4-letter range. Characters can be repeated in the[详细]
2023-04-10 17:38 分类:问答Ruby hash permutation
Is there any quick way to get a (random) permutation of a given hash? For example with arrays I can use the sample method as in[详细]
2023-04-10 09:16 分类:问答permutation computing in c++
I want to write 开发者_运维知识库a program that gets an integer n and prints all the permutations of 1,2,...,n.[详细]
2023-04-09 01:10 分类:问答Using math.factorial in a lambda function with reduce()
I\'m attempting to write a function that calculates the number of unique permutations of a string. For example aaa would return 1 and abc would return 6.[详细]
2023-04-08 00:23 分类:问答C# - Finding all permutations of the letters in a string with some letters repeated
I am having problems calculating permutations for strings containing multiple instances of a letter (e.g. \"HRWSOROE\" where \'O\' and \'R\' are in the string twice.The algorithm I am using[详细]
2023-04-06 20:26 分类:问答Generating permutations corresponding to periodic lattice translations in c++
Suppose I have a sequence of characters (ABCDEF....), in an array or a string or any suitable data structure, and these characters are distributed over the sites if a 3D lattice, such 开发者_开发百科t[详细]
2023-04-06 16:17 分类:问答Finding the least-used permutation
I need to distribute a set of data evenly over time based on historical data such that each digit appears an equal (or close to equal) number of times in each position over time. The problem is, given[详细]
2023-04-06 13:58 分类:问答Create array with all the permutations of another array of natural numbers with PHP
I\'ve created a开发者_C百科n array with $my_array = range(1,3) and I\'d like to have an array created containing all the permutations of this one (1,2,3 1,3,2 2,1,3 ..).[详细]
2023-04-06 07:31 分类:问答