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

2. Non-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

1. Restoring Division Algorithm For Unsigned Integer
(Previous method)
2. 7 divided by 6, Example-2
(Next example)

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





Non-Restoring Division Algorithm For Unsigned Integer


Algorithm
Non-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: If sign bit of register A is 1
then shift left content of AQ and A=A+M,
otherwise shift left content of AQ and A=A-M (means add 2's complement of M to A and store it to A)
Step-3: If sign bit of register A is 1
then Q[0]=0
otherwise Q[0]=1 (Q[0] means LSB (least significant bit) of Q)
Step-4: The value of counter n is decremented by 1
Step-5: If value of n becomes 0 then goto next step otherwise repeat from step-2
Step-6: If sign bit of register A is 1
then A=A+M
Step-7: Now register Q contains Quotient value and A contains Remainder value

Example-1
1. Find 11 divided by 3 using Non-Restoring Division Algorithm For Unsigned Integer

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
11110011_A=A-M
111100110Q[0]=0
30001111100110_shift left AQ
11111110_A=A+M
111111100Q[0]=0
20001111111100_shift left AQ
00010100_A=A+M
000101001Q[0]=1
10001100101001_shift left AQ
00010001_A=A-M
000100011Q[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



1. Restoring Division Algorithm For Unsigned Integer
(Previous method)
2. 7 divided by 6, Example-2
(Next example)





Share this solution or page with your friends.


 
Copyright © 2024. All rights reserved. Terms, Privacy
 
 

.