Questions tagged [Combinatics] (62)

3
answers

How often do programmers have to make a truth table?

Actually, the question in the subject. Do you make a truth table? If Yes, give, please, examples of such tasks where you have to do it.
Nedra asked April 8th 20 at 17:21
3
answers

How to perform a convolution combinations?

I have many unique combinations of 3 digits from different numbers from 1 to 100. Is there any algorithm for finding such sets of rows of numbers in the decomposition to the combination will give the original set? Example : This : 1 2 3 1 2 4 1 3 4 2 3 4 Answer: 1 2 3 4 You need to find a new set of rows which minimizes the...
Angelo_Swaniawski asked April 8th 20 at 03:02
1
answer

How to write a dynamic route, the vue-router / nuxt?

Hi all. there are options Vue of ranting. options must look for the type /param=value/param=value/ etc. some may be and some may not be. Here such variant works:const routes = [ '/product/country=country/', '/product/country=:country/page=:page/', '/product/country=:country/status=:status/', '/product/country=:country/color...
Nathan.Batz10 asked April 3rd 20 at 18:37
1
answer

How to solve the problem?

How many nine-digit numbers whose sum of digits which even?
Meghan_Bos asked April 1st 20 at 17:11
2
answers

Please explain why the answer to the problem how to solve?

How many words containing five letters each, can be composed of 33 letters, if - they go to repeat, but no two adjacent letters should not overlap, i.e. words like “press” or “quarrel” is not allowed? Answer: 33*32^5
keyon12 asked April 1st 20 at 17:09
4
answers

How to make a generator of possible combinations in php?

The issue is. We've got 15 rows, each row with 3 options. We can of 15 lines fix a few options. Then enter the number of options (for example 3) and the script should generate a result view 1-(1);2-(2);3-(1);4-(3);5-(1);6-(1);7-(1);8-(1);9-(1);10-(1);11-(1);12-(1);13-(1);14-(1);15-(1), 1-(1);2-(2);3-(1);4-(3);5-(2);6-(1);...
Rosina asked March 31st 20 at 22:06
3
answers

How to put array elements in different variations?

For example there is an array of$array = [1, 2, 3, 4, 5] And you need to add up these numbers in different variations 1+2 1+3 1+4 1+2+4 3+2+5 etc. The point is that there is a large list of prices and I need to know the amount of public goods gives a certain value. I.e. if the sum of these elements, for example equal to 20,...
josiah.Johns asked March 31st 20 at 21:58
1
answer

Combinatorics for programmers?

The book should be read easily, or at least medium. Level for reading this book is a school program in mathematics and Computer Science. She also needs to be expanded on the topics related to CS and also to povestvuetsya in the form of light. It must be some kind of introductory tutorial before the middle of combinatorics. ...
Rebeka28 asked March 31st 20 at 20:34
1
answer

C++ is to make all possible combinations of a string of numbers with a specific length?

Need to do the algorithm in C++ for the compilation of all combinations of numbers in the range from 1 to N, of finite length, K. Example input: N = 2 K = 2 An example of the output: 11 12 21 22
Thomas7 asked March 31st 20 at 20:08
1
answer

How to iterate over arithmetic formulas of arbitrary length?

Hi! I want to loop through all the formulas of arbitrary length P. The formula uses constants 0, 1, 2, variable X, and the operations -, +, * and parentheses. "formula length" is the number of operations i.e., if the size n of the formula would be: 1.) 0 + 1; x * 2 4.) x * x + 2 * x + 1; (1 + x) * 1 * 2 + 0 This is how t...
Gwendolyn.Nolan asked March 31st 20 at 16:01