Article of the week

Bash recursion examples - part 1

Bash recursion examples - part 1

15 Jan 2017 16:58:45


Some recursive Maths functions written in BASH.


Recursion in computer science is a technique based on two cases. One is non-recursive terminating case, the other, recursive. The former finds you the final solution, the latter reduces problem to the termination case. This is I guess the most important bit, one should ...

Read full article »

Recent articles

Finding permutations with Heap algorithm in PHP

26 Oct 2017 16:54:32

Finding permutations with Heap algorithm in PHP

Suppose, you are given a list of two items, say one is called "a" and the other "b" and asked to find all the possible arrangements (also called permutations without repetition) of these items. All your arrangements should consist of exactly the number of ...

Read more »

Arrangements with repetition implementation in PHP

08 Oct 2017 14:29:33

Arrangements with repetition implementation in PHP

This article, and in particular PHP code it contains, is an outcome of my lack of patience with regards to making arrangements with repetition of finite set items. Recently, while solving a Probability problem, which eventually led to an infinite series, I reached a step which ...

Read more »

Matrix transpose operator implementation in PHP

05 Oct 2017 21:49:26

Matrix transpose operator implementation in PHP

If you look for a computer programming challenge, you'll certainly find a few decent ones implementing concepts Linear Algebra deals with. One of simpler operations, at least on the paper, one carries out on the matrix is switching rows and columns indices along the main ...

Read more »

 Compound interest in PHP part 2

21 Sep 2017 12:43:34

Compound interest in PHP part 2

First article ( a link to it can be found at the end of this article ) in this series was all about developing libraries for compound interest calculation in PHP programming language. Now, it is time to employ those pieces of code to do what they have been built for. In this ...

Read more »