PSYCHOCODES

C program to Implement Booth's Algorithm-Booth's Algorithm in C

Booth's Algorithm is a multiplication algorithm that multiplies two signed binary numbers in two's complement notation. The algorithm was invented by Andrew Donald Booth in 1950 while doing research on crystallography at Birkbeck College in Bloomsbury, London.

Read more

C program to Sort Array Elements in Ascending or Descending Order-Bubble Sort

An array sometimes need to be sorted in our preferred manner so as to get get better accessible data or just for convenience. Here you will learn how to sort an array in two ways - Ascending Order and Descending Order. 

Read more

C program to Calculate Hamming Distance of two Binary Strings

In the field of Information theory, Hamming distance of two equal length strings is the number of position at which the corresponding symbols are different or we can say that it is the minimum number of substitution required to change one string into other.

Read more

Python Program for LZW (Lempel Ziv Welch) Compression Algorithm

In this tutorial we will give you a basic overview of LZW compression algorithm and then we will write a python  code for it  and if you want us to make a full tutorial on explaining LZW algorithm then comment down in the comments section of this article.

Read more

Twos Complement of a Binary Number in C

We know how to represent 2 in binary it's simple haa! but do you know how to represent -2 in binary? There are basically three methods to  represent a negative number in binary.

Read more

C program for adding two Binary Numbers

We all know how to add two decimal numbers (2+2 = 4) "m a genius" , but do you know how to add two binary numbers (100010 + 010010 = ?) if you don't then do not worry in this article we will see how to add two binary numbers and then we will write a C program to calculate the sum of two binary numbers.

Read more

C program to Print Pascals Triangle

One of the most interesting Number Patterns is Pascal's Triangle. To build the triangle, start with "1" at the top, then continue placing numbers below it in a triangular pattern. Each number is the numbers directly above it added together.

Read more