Category Archives: Computer Science

How Recursion Works in 7 Gifs

Recursion is one of those topics that many students struggle with. When you’re first learning how to code, recursion is often difficult to grasp. Gif #1 (Visual Animation of Recursion) Gif #2: How Many in the line?     Gif #3 : Fibonacci Sequence Gif #4 : Pascals Triangle Code Gif #5: Pascals Triangle Animation   Gif … Continue reading How Recursion Works in 7 Gifs →

Fibonacci Sequence Code and Animation Explained

The Fibonacci Sequence is one of the classic recursive algorithms that you learn in computer science. Mathematically, the fibonacci sequence looks like this f(x) = f(x-1) + f(x-2)  and base values of either f0 =0 and f1=1 The Java Code Download the Java Code [crayon-5a67062db3d4a310056321/] The Python Code Download the Python Code [crayon-5a67062db3d56079602780/] Fibonnacci Recursion … Continue reading Fibonacci Sequence Code and Animation Explained →

Binary numbers – floating point conversion

A binary number with 8 bits (1 byte) can represent a decimal value in the range from 0 – 255. However, this only includes whole numbers and no real numbers (e.g. fractions) like 0.5 or 20.456 etc. To represent all real numbers in binary form, many more bits and a well defined format is needed. … Continue reading Binary numbers – floating point conversion →