So previously you've learnt about Addition and Subtraction from my fellow mate's post Addition & Subtraction.
Now you will learn more about Multiplication and Division.
Compared with addition and subtraction, multiplication is much more complex operation in both hardware and software.
A wide variety of algorithms have been used in various computers. We start off with the binary multiplication.
Rules of Multiplication
|
0 x 0 = 0
|
0 x 1 = 0
|
1 x 0 = 0
|
1 x 1 = 1
|
Flowchart for Unsigned Binary Multiplication |
Division is somewhat more complex than multiplication but is based on the same general principles. As before , the operation involves repetitive shifting and addition or subtraction.
Flowchart for Unsigned Binary Division |
Its very helpful
ReplyDelete