1 1 0 1
+ 1 0 1
1 0 0 1 0
For the first step, 1+1=2 (1 0) carries 1 to the left. Then (0+0+1=1). The following third and forth step are the same as the first step we took. Finally, we will get the final answer 10010.
The multiplication is the same as addition:
1 1 0 1
X 1 0 1
1 1 0 1
0 0 0 0
1 1 0 1
1 0 0 0 0 0 1
Tomorrow will be our second term test, I will focus on reviewing the recursion and binary notation.
No comments:
Post a Comment