Tag: math
The question is: how many bits are required to change if we want to convert a integer to another? The problem is from . This may seem complicated at …
September 14, 2014
BASH Shell, batch script, beginner, code, code library, implementation, linux, programming languages, Shell Scripts, ubuntu
Bash script can be very powerful. In Linux shells, with BASH script, it is possible to solve maths problems easily. It is a full programming language and arithmetic operations …
September 14, 2014
algorithms, BASH Shell, batch script, beginner, code, code library, console, data structure, implementation, linux, programming languages, Shell Scripts
If you major in Computer Science, you must know the 8-queens problem, which is a classical Artificial Intelligent problem that can be solved using back tracing. Previous posts can …
September 5, 2014
algorithms, beginner, c / c++, code, code library, math, optimization, programming languages, recursive, tricks
We all know the formula to compute value e (mathematical constant that is the base of the natural logarithm) is e = 1 + 1/1!+ 1/2!+ .....+ 1/n! Now, …
Pascal Triangle is a triangle made of numbers. The first row (root) has only 1 number which is 1, the second row has 2 numbers which again are 1 …