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 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

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

Constructing a Binary Tree from Traversal Results

We can construct a binary tree if we are given at least two traversal results. The first traversal must be the in-order traversal and the second can be either pre-order or post-order traversal.

Read more

C program to Convert Decimal number into Binary using Stack

A stack is a linear data structure and follows the last in first out rule, in this tutorial, we will learn how to convert a decimal number into binary using stack.

Read more

Understanding the Concepts of Linked List-The Easy Way

When we want to store multiple values without using multiple variables we make use of arrays, but while using arrays we have the knowledge of the size of data that we are going to store, what if we do not know, the answer is dynamic data structures.

Read more