Questions tagged [discrete-mathematics]

NOTE: Only questions about software development related to discrete mathematics are on topic. Discrete mathematics is the branch of mathematics concerned with discrete phenomena – as opposed to continuous phenomena like geometry, real analysis, physics, etc. Typical discrete math topics are discrete probability, combinatorics, graph theory, algorithms and complexity, but also matrices, difference equations, recurrences.

Discrete mathematics is the branch of mathematics concerned with discrete phenomena – as opposed to continuous phenomena such as geometry, real analysis, and physics. Typical discrete math topics are discrete probability, combinatorics, graph theory, algorithms, and complexity, but also matrices, difference equations, and recurrences. Applications abound in computer science, as many computer models are built upon discrete elements.

Questions relating to discrete mathematics must still be programming-related. Questions that are not programming-related may be asked on mathematics.stackexchange.com.

1083 questions
-7
votes
6 answers

I can't figure out this sequence - 11110000111000110010

NOTE: This is for a homework assignment, but the portion I have a question on is ok to ask help for. I have to script out a sequence 11110000111000110010 (i am using python) without using switches or if statements and only a maximum of 5 for and…
-8
votes
2 answers

How do I return an integer array the sum of which equals to a given number in php?

Input: any number in 1-15 or 64-79 range which is a sum of either (1, 2, 4, 8, 64) in any combination Output: an array of integers from this list: (1, 2, 4, 8, 64) the sum of which equals the input number. e.g. input 72, output array(8, 64)…
Stack
  • 348
  • 3
  • 17
-9
votes
1 answer

Java Algorithm for Batch Numbering

I have little unusual problem to solve. I need some hint or links to get started with. I have queue with 10 data slots. Once the queue is full I need to send it to a server. However, along with that data, I also send start and end sequence number.…
Arjun Patel
  • 345
  • 6
  • 22
1 2 3
72
73