Home > College Algebra calculators > Restoring Division Algorithm For Unsigned Integer example

1. Restoring Division Algorithm For Unsigned Integer example ( Enter your problem )
  1. Algorithm & 11 divided by 3, Example-1
  2. 7 divided by 6, Example-2
  3. 13 divided by 4, Example-3
Other related methods
  1. Restoring Division Algorithm For Unsigned Integer
  2. Non-Restoring Division Algorithm For Unsigned Integer

2. 7 divided by 6, Example-2
(Next example)

1. Algorithm & 11 divided by 3, Example-1





Restoring Division Algorithm For Unsigned Integer


Algorithm
Restoring Division Algorithm For Unsigned Integer Steps
Step-1: Initialize registers
Q = Dividend, M = Divisor, A = 0, n = number of bits in dividend
Step-2: Content of register A and Q is shifted left as by considering them as a single unit AQ
Step-3: Content of register M is subtracted from A and result is stored in A (i.e. A = A - M)
Step-4: The MSB (most significant bit) of the A is checked if it is 0 then LSB (least significant bit) of Q is set to 1 otherwise if it is 1 then LSB of Q is set to 0 and value of register A is restored.
Step-5: The value of counter n is decremented by 1
Step-6: If value of n becomes 0 then goto next step otherwise repeat from step-2
Step-7: Now register Q contains Quotient value and A contains Remainder value

Example-1
1. Find 11 divided by 3 using restoring division Algorithm method

Solution:
Dividend = 11
Divisor = 3
First the registers are initialized with corresponding values (Q = Dividend, M = Divisor, A = 0, n = number of bits in dividend)
nMAQOperation
400011000001011initialize
40001100001011_shift left AQ
0001111110011_A=A-M
00011000010110Q[0]=0 And restore A
30001100010110_shift left AQ
0001111111110_A=A-M
00011000101100Q[0]=0 And restore A
20001100101100_shift left AQ
0001100010100_A=A-M
00011000101001Q[0]=1
10001100101001_shift left AQ
0001100010001_A=A-M
00011000100011Q[0]=1

register Q contain the quotient 3 and register A contain remainder 2


This material is intended as a summary. Use your textbook for detail explanation.
Any bug, improvement, feedback then Submit Here



2. 7 divided by 6, Example-2
(Next example)





Share this solution or page with your friends.


 
Copyright © 2024. All rights reserved. Terms, Privacy
 
 

.