Most voted "combinations" questions
22 questions
Sort by count of
-
10
votes1
answer3615
viewsGenerate list of possible combinations
We have 4 teams: Time 1 | Time 2 | Time 3 | Time 4 I would like to know how to automatically build a list of possible combinations of games between these teams. Example: Time 1 x Time 2 | Time 1 x…
-
6
votes1
answer876
viewsCombination of 4 numbers in Mysql
SGBD: Mysql Problem: List all possible combinations between the numbers "1,2,3,4", so that they do not recur between them. Example: 1 2 3 4 12 13 14 21 23 24 31 32 34 41 42 43...…
-
6
votes3
answers261
viewsMathematical combinatorics
I have a list of ex numbers: [1, 2, 3, 4] and I need to know all possible combinations of that list reminding me that the list may contain n elements, someone has some code or could help me? For…
-
4
votes1
answer1566
viewsPrint integer combinations in ascending order
"Given two nonnegative integers m and n, generate all combinations of integer size m from 0 to n-1, in ascending order. Example: m=3 and n=5 (0 1 2); (0 1 3); (0 1 4); (0 2 3); (0 2 4); (0 3 4); (1…
-
3
votes1
answer3793
viewsGenerate mathematical combinations with PHP array
GENERATE all possible combinations of 15 elements from an array of 17 items. This is a hypothetical situation. Should serve for any combination n per p. A total of 136 combinations. Using the…
-
3
votes3
answers713
viewsCombination of two lists in Python
I need a code that discovers possible passwords in a universe of LLLDDD (L=letter, d=digit), I found it easier to apply the conditions separately and I arrived at two lists: lpossiveis:['ABD',…
-
2
votes1
answer523
viewsHow to Generate/Calculate the Value of Binomial Poisson and Normal Tables in Java
I am doing a work in Java to calculate the statistical probabilities, I do not know how to generate the tables of Poisson Binomial and Normal to proceed. For example: X~Bi(5,0.05) In this case X…
-
2
votes1
answer82
viewsTools for color combination
People I’m starting to develop projects for Web and one difficulty I have is to associate colors or combine them. Thinking about it I found a tool called "Adobe Kuler" that helps me from time to…
-
2
votes1
answer121
viewsGenerating new objects using existing objects
I’m having a hard time doing this. Supposing I have two objects of the kind Person, which has the attributes name and employment. P1 (name=John, job=Taxi driver) P2 (name=Maria, job=Programmer) Then…
-
2
votes4
answers931
viewsPython columns excel csv
I made this number generator that gets saved in a csv file that I open in excel, the combinations are generated in column A but n want it to appear in A. as I do for her to appear in column B and C?…
-
1
votes1
answer1665
viewsCreate truth table in C#
I have a test function that should receive different input combinations, to define these patterns I will use a truth table. However, I’m having difficulty generating the truth table, I made an…
-
1
votes0
answers70
viewsCombination of several items
I have a set of items and each item has the following elements: E = (índice, espessura, largura, demanda) i = índice; e = espessura; l = largura; d = demanda; I have two more variables: int min,…
-
1
votes1
answer67
viewsCombination of a numerical list with limiter (Python)
I am generating all possible combinations within a list, but I have not found any that would satisfy all my needs, being them: Result in list format; Lists with repeated items are valid; Completely…
-
0
votes1
answer1190
viewsGenerate list/matrix by bringing all combinations of n elements taken p to p in python 3
Example: A B C D 4 elements result: WITH TWO ELEMENTS AB AC AD BC BD CD WITH THREE ELEMENTS ABC ABD RCA BCD
-
0
votes1
answer481
viewsCombination of digits from A to Z (Crosse Join)
I’m running a four-digit algorithm from A to Z. I did it using vectors in Pascal like this: var i:integer; j:integer; k:integer; l:integer; vect1:array[1..26] of string; vect2:array[1..26] of…
-
0
votes2
answers1365
viewsArray permutation
Ladies and gentlemen, I would like to draw up an anagram of the possible combinations. Ex: "123456" would generate: 1234 2341 6531 5431 1243 1342 or 12 43 56 23 14 16, whether or not repeated, and…
-
0
votes0
answers204
viewsNumber combination
I am trying unsuccessfully to modify this script. I wish he’d make combinations this way.: 12345 12678 ... and not like he does now: 12345 12346 12347 12348 ... Follows the code: <?php class…
-
0
votes1
answer50
viewsWord combination identification in R
I have hundreds of sentences like these below. And I would like to identify the phrases that contain the words Phone and delete. But these two words must have only one term between them, in this…
-
-1
votes1
answer47
viewsPYTHON error index out of range
There I was trying to create a script that did permutation, create a combination of the list items in a new list. Follow the python code: itens = [] while True: adition = input('Coloque os itens: ')…
-
-1
votes3
answers98
viewsCreate combinations with a specific quantity in a given set of numbers
So, I’m new to php and I couldn’t, after many attempts and in different ways, create something like. I enter a value for the amount of numbers I will create in each combination in a given set of…
-
-1
votes1
answer80
viewsCombination of different values
Considering a dataframe with 2 columns is intended, for each distinct value of the source column: select the corresponding values present in the destination column form combinations 2 to 2 of…
-
-4
votes1
answer141
viewsPython replace values with others in combination
Opa my beasts, I am with a difficulty, I made a combination list of 0 and 1, where 1 will be replaced by positive values of a list, and 0 will be replaced by negative values of another list and…