SlideShare a Scribd company logo
UNSIGNED DIVISION - RESTORING
ALGORITHM (CO-2, BL-3)
-Anisha Mahato (Assistant Professor, CSE-SPL)
FLOWCHART
Start
M<- Divisor
n <- no. Of bits
Q <- Dividend
A <- 0
Shift Left AQ
A= A - M
Sign bit
of A?
Q[0] =0
Restore A
Q[0] = 1
n = n-1
Is n =
0?
Quotient in Q
And Remainder in A
Stop
=1
=0
 Example:
 11(Dividend) / 3 (Divisor) = 3 (Quotient) and 2
(Remainder)
 M (Divisor) = 3 = 00011
 -M= 11101
 Q (Dividend) =11 = 1011
 A=0 =00000
TRACING
n M A Q Action
4 00011 00000 1011 Initialization
00001 011_ SL AQ
11110 011_ A= A-M
3 00001 0110 Q[0]<-0, Restore A
00010 110_ SL AQ
11111 110_ A=A-M
2 00010 1100 Q[0]<- 0, Restore A
00101 100_ SL AQ
00010 100_ A= A-M
1 00010 1001 Q[0]<- 1
00101 001_ SL AQ
00010 001_ A= A-M
0 00010 0011 Q[0]<- 1

More Related Content

PPT
ip addressing _
PPT
stop and wait _
PPT
PPT
subnetting _
PPT
PipelineHazards _
PPT
Pipelining _
PPTX
Mobile Customer Experience Management.pptx
PPTX
Social Web multimedia analytics goals _
ip addressing _
stop and wait _
subnetting _
PipelineHazards _
Pipelining _
Mobile Customer Experience Management.pptx
Social Web multimedia analytics goals _

More from SwatiHans10 (20)

PPTX
Hardwires and Microprogrammed Control ,
PPTX
Non -Restoring Algorithm _
PPTX
loops _
PPT
functions _
PDF
Instruction execution cycle _
PPT
RTL,Instruction set _
PPT
Data representation _
PPTX
CAO PPT-Lect 1 _
PPTX
CIRCULAR LINKED LIST _
PPT
Transmission control protocol _
PPTX
Numpy _
PPTX
Lecture 1 .
PPTX
ip addressing _
PPT
intranet _
PPTX
routing algo n
PPT
ethernet nn
PPT
Transmission control protocol ...............................
PPT
search_sort.ppt
PPTX
analytics platform
PPTX
Hardwires and Microprogrammed Control ,
Non -Restoring Algorithm _
loops _
functions _
Instruction execution cycle _
RTL,Instruction set _
Data representation _
CAO PPT-Lect 1 _
CIRCULAR LINKED LIST _
Transmission control protocol _
Numpy _
Lecture 1 .
ip addressing _
intranet _
routing algo n
ethernet nn
Transmission control protocol ...............................
search_sort.ppt
analytics platform
Ad

Recently uploaded (20)

DOCX
573137875-Attendance-Management-System-original
PPTX
Lecture Notes Electrical Wiring System Components
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPT
Mechanical Engineering MATERIALS Selection
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
web development for engineering and engineering
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
OOP with Java - Java Introduction (Basics)
PPT
Project quality management in manufacturing
573137875-Attendance-Management-System-original
Lecture Notes Electrical Wiring System Components
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Embodied AI: Ushering in the Next Era of Intelligent Systems
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Foundation to blockchain - A guide to Blockchain Tech
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
UNIT-1 - COAL BASED THERMAL POWER PLANTS
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
R24 SURVEYING LAB MANUAL for civil enggi
Mechanical Engineering MATERIALS Selection
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
web development for engineering and engineering
CYBER-CRIMES AND SECURITY A guide to understanding
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
OOP with Java - Java Introduction (Basics)
Project quality management in manufacturing
Ad

Restoring Algorithm _

  • 1. UNSIGNED DIVISION - RESTORING ALGORITHM (CO-2, BL-3) -Anisha Mahato (Assistant Professor, CSE-SPL)
  • 2. FLOWCHART Start M<- Divisor n <- no. Of bits Q <- Dividend A <- 0 Shift Left AQ A= A - M Sign bit of A? Q[0] =0 Restore A Q[0] = 1 n = n-1 Is n = 0? Quotient in Q And Remainder in A Stop =1 =0
  • 3.  Example:  11(Dividend) / 3 (Divisor) = 3 (Quotient) and 2 (Remainder)  M (Divisor) = 3 = 00011  -M= 11101  Q (Dividend) =11 = 1011  A=0 =00000
  • 4. TRACING n M A Q Action 4 00011 00000 1011 Initialization 00001 011_ SL AQ 11110 011_ A= A-M 3 00001 0110 Q[0]<-0, Restore A 00010 110_ SL AQ 11111 110_ A=A-M 2 00010 1100 Q[0]<- 0, Restore A 00101 100_ SL AQ 00010 100_ A= A-M 1 00010 1001 Q[0]<- 1 00101 001_ SL AQ 00010 001_ A= A-M 0 00010 0011 Q[0]<- 1