Add (10111)2 and (11010)2 by working through each step of the algorithm for addition given in the text.

Solution In this question we have to add (10111)2 and (11010)2 through each step of algorithm.

Step 1 </p>

Given that n=5 and initially c =0 Also ,

Now by setting d as a floor of So,

that is equal to 1 which gives c=0 .The rightmost digit is of the answer is 1 and 0 is carried into the next column.

Step 2</p>

Here, j=1 Computing d to be floor of

= =

So ,

= 0 And c = 1