2967 Views

what is restoring division algorithm


Anjali 10th Nov, 2019
Answers (2)
NAVEEN MEENA Student Expert 10th Nov, 2019

Dear Anjali, as you know that division algorithms can be restoring as well as non-restoring. I am mentioning you the restoring algorithm. Restoring division operates on fixed-point fractional numbers and depends on the assumption 0 < D < N.[citation needed]

The quotient digits q are formed from the digit set {0,1}.

The basic algorithm for binary (radix 2) restoring division is:

R := N

D := D << n -- R and D need twice the word width of N and Q

for i := n − 1 .. 0 do -- For example 31..0 for 32 bits

R := 2 * R − D -- Trial subtraction from shifted value (multiplication by 2 is a shift in binary representation)

if R ≥ 0 then

q(i) := 1 -- Result-bit 1

else

q(i) := 0 -- Result-bit 0

R := R + D -- New partial remainder is (restored) shifted value

end

end

-- Where: N = Numerator, D = Denominator, n = #bits, R = Partial remainder, q(i) = bit #i of quotient

The above restoring division algorithm can avoid the restoring step by saving the shifted value 2R before the subtraction in an additional register T (i.e., T = R << 1) and copying register T to R when the result of the subtraction 2R − D is negative.

All the best

Hope this helps


Payal 10th Nov, 2019

Hii aspirants

let me clear your doubt.

In a division algorithm there is a quotient and a remainder when we divide two number.Here, n-bit dividend is loaded in Q and divisor is loaded in M. Value of Register is initially kept 0 and this is the register whose value is restored during iteration due to which it is named Restoring.

I hope my answer will help you out

Good luck

Related Questions

Amity University-Noida B.Tech...
Apply
Among top 100 Universities Globally in the Times Higher Education (THE) Interdisciplinary Science Rankings 2026
BML Munjal University | B.Tec...
Apply
A Hero Group Initiative | Up to 100% Scholarships | Highest CTC 32.99 LPA | Average CTC 8.45 LPA | Accepts JEE Score | Applications Closing Soon!
SRM University A.P UG Admissi...
Apply
UG Admissions Open 2026 | Highest CTC 52 LPA | Average CTC 9.09 LPA | 60+ Collaborations with the world's best Universities
Amity University-Noida MBA Ad...
Apply
Ranked among top 10 B-Schools in India by multiple publications | Top Recruiters-Google, MicKinsey, Amazon, BCG & many more.
Amity University-Noida BBA Ad...
Apply
Among top 100 Universities Globally in the Times Higher Education (THE) Interdisciplinary Science Rankings 2026
Poddar Business School PGDM A...
Apply
Highest CTC 24 LPA | Average CTC 8.5 LPA | 1600+ Recruiters | 165+ Corporates Linkages
View All Application Forms

Download the Careers360 App on your Android phone

Regular exam updates, QnA, Predictors, College Applications & E-books now on your Mobile

150M+ Students
30,000+ Colleges
500+ Exams
1500+ E-books