combinatorics
Python combinatorials w/o repetition - Pyncomb?
I\'m trying to do some combinatorial stuff with data in Python. I looked the question How to generate all permutations of a list in Python, but think that doesn\'t fit my needs..[详细]
2023-03-10 07:54 分类:问答Finding all possible value combinations between two arrays
I have two arrays of strings, not necessarily of the same length, I want to find all the possible \"sets\" of combinations between two values from the arrays, without repeats from either array.[详细]
2023-03-06 20:30 分类:问答Is it possible to get k-th element of m-character-length combination in O(1)?
Do you know any way to get k-th element of m-element combination in O(1)? Expected solution should work for any size of input data and any m value.[详细]
2023-03-06 14:17 分类:问答complexity of combinatorial function
How the complexity of an algorithm involved with combinatorial operations is classified. Let\'s say the input is m, n, and the complexity is determined by C(m,n). (C is the combination function of c[详细]
2023-03-06 14:15 分类:问答Combinatoric question
I\'ve got what I think is a \"enumerative combinatoric\" question. I need to choose 7 elements out of 15 with repetition and I\'d like to know if there\'s an easy way to store all combination in an a[详细]
2023-03-06 00:55 分类:问答Find the index of a given permutation in the list of permutations in lexicographic order [duplicate]
This question already has answers here: Closed 11 years ago. Possible Duplicate: Given a string and permutation of the string. Find the index of this permuted string in the sorted list of th[详细]
2023-03-04 13:45 分类:问答Calculate Combination based on position
I 开发者_高级运维have combinations like this: 1,2,3,4//index 0 1,2,3,5//index 1 1,2,3,6//index 2 and so on until7,8,9,10[详细]
2023-03-04 02:56 分类:问答Generating natural schedule for a sports league
I\'m looking for an algorithm to generate a schedule for a set of teams. For example, imagine a sports season in which each team plays[详细]
2023-03-03 23:49 分类:问答Algorithm to determine coin combinations
I was recently faced with a prompt for a programming algorithm that I had no idea what to do for. I\'ve never really written an algorithm before, so I\'m kind of a newb at this.[详细]
2023-03-03 06:18 分类:问答Algorithm Problem: Converting non-integer maximum flow to integer maximum flow
Consider, we have a non-integer maximum flow in a directed network with integer arc capacity. Is there an algorithm that can convert this开发者_JS百科 flow into an integer maximum flow?[详细]
2023-02-26 02:35 分类:问答