NOTE: Only questions about software development related to discrete mathematics are on topic.
I use the following function to calculate log base 2 for integers: public static int log2(int n){ if(n <= 0) …
java performance discrete-mathematics logarithmI'm trying to write a piece of code that can automatically factor an expression. For example, if I have two …
python algorithm list set discrete-mathematicsPossible Duplicate: Big Theta Notation - what exactly does big Theta represent? I understand it in theory, I guess, but …
big-o discrete-mathematicsI'm going to be teaching a lower-division course in discrete structures. I have selected the text book Discrete Structures, Logic, …
haskell functional-programming sml discrete-mathematicsAccording to Wikipedia, The height of a tree is the length of the path from the root to the deepest …
tree height binary-tree discrete-mathematicsI don't understand the following definition of a contiguous subsequence: A contiguous subsequence of a list S is a subsequence …
algorithm discrete-mathematicsGiven n nodes, if every node is connected to every other node (except itself) the number of connections will be …
algorithm graph graph-algorithm discrete-mathematicsMultiplying two binary numbers takes n^2 time, yet squaring a number can be done more efficiently somehow. (with n being …
algorithm math bit-manipulation discrete-mathematicsI am looking for a method to compute a derivative using a discrete and fast method. Since now I do …
discrete-mathematics derivativeSay I have an array in NumPy containing evaluations of a continuous differentiable function, and I want to find the …
python numpy discrete-mathematics mathematical-optimization