SlideShare ist ein Scribd-Unternehmen logo
1 von 69
Unit 4: The Number Systems and Data Representation
Problem-solving using “computers” ,[object Object],A Problem Describing  The Problem in Math. “ Computing” The  Corresponding Math.  Problem Returning The Result Solution  To The  Problem Human problem-solving v.s. computer-based problem-solving
Transformation input think act input compute act     Binary system
The Number System ,[object Object],[object Object],[object Object],…which counts 10 states
The Needs of Number Systems ,[object Object],[object Object],[object Object],[object Object],[object Object]
 
Egyptian numerals (10-based) Source: http://www-gap.dcs.st-and.ac.uk/~history
Babylonians numerals (60-based) Source: http://www-gap.dcs.st-and.ac.uk/~history
1*60 3  + 57*60 2  + 46*60 + 40*60 0  =  424000 Source: http://www-gap.dcs.st-and.ac.uk/~history
Chinese numerals (10-based) 4359 45698 Source: http://www-gap.dcs.st-and.ac.uk/~history 壹貳參肆伍陸柒捌玖拾佰仟萬億兆京…
The Number Systems ,[object Object],[object Object],[object Object],[object Object]
K-based Number System ,[object Object],[object Object],[object Object],[object Object],[object Object]
K-based Number System ,[object Object],[object Object],State-1 State-2 State-3 State-4 State-5 State-6 State-7 State-8 State-9 State-10 State-11 State-12 State-13 State-14 State-15 State-16
K-based Number System ,[object Object],[object Object],Why not “ 1 0 ” 2 digits
More States ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
More States ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
The Number of Cases ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
K-based vs The Decimal system (10-based) ,[object Object],[object Object],[object Object],[object Object],[object Object]
Source: 計算機概論 ,  王孝熙 著 ,  東華書局 .
Using octal and hex numbers ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Source: 計算機概論 ,  王孝熙 著 ,  東華書局 .
Source: 計算機概論 ,  王孝熙 著 ,  東華書局 .
Source: 計算機概論 ,  王孝熙 著 ,  東華書局 .
Source: 計算機概論 ,  王孝熙 著 ,  東華書局 .
Source: 計算機概論 ,  王孝熙 著 ,  東華書局 .
Source: 計算機概論 ,  王孝熙 著 ,  東華書局 .
The binary number system ,[object Object],[object Object],[object Object],01111 00011 10010 15 3 + 10 + 2 18
The binary number system ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Data Processing in Computers with the Binary System ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Part I: Numeric Data ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Sign-Magnitude ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
1’s Complement ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
2’s Complement ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Comparison: 4-bit representation of integers
Range of integers Suppose that we use a byte (8-bit) to represent an integer (00000000)  2 (00000000)  2 (10000000)  2 =-128 (01111111)  2 =+127 2‘s complement (11111111)  2 (00000000)  2 (10000000)  2 =-127 (01111111) 2 =+127 1‘s Complement (10000000)  2 (00000000)  2 (11111111)  2 =-127 (01111111) 2 =+127 Sign-Magnitude -0 +0 Max. (-) Max. (+) -(2 n-1 )~0 0~2 n-1 -1 2‘s complement -(2 n-1 -1)~0 0~2 n-1 -1 1‘s Complement -(2 n-1 -1)~0 0~2 n-1 -1 Sign-Magnitude Negative numbers Positive numbers
Note ,[object Object],[object Object]
Other Binary Codes for Decimal Numbers ,[object Object],[object Object],[object Object],[object Object],[object Object]
8421 BCD Code ,[object Object],[object Object],[object Object]
4221 BCD Code ,[object Object],[object Object],advantages
Excess-3 Code ,[object Object],[object Object],[object Object],[object Object],[object Object]
84-2-1 Code ,[object Object],[object Object],[object Object],[object Object]
Self-complementing code Source: 計算機概論 ,  王孝熙 著 ,  東華書局 .
Gray Codes ,[object Object],[object Object],[object Object],[object Object]
Gray Codes ,[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],Source: 計算機概論 ,  王孝熙 著 ,  東華書局 .
從反射葛雷碼 -> 十進位數字 Source: 計算機概論 ,  王孝熙 著 ,  東華書局 .
Floating-Point Representation ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Floating-point literals ,[object Object],[object Object],[object Object],http://www.nuvisionmiami.com/books/asm/workbook/floating_tut.htm
[object Object],Source: 計算機概論 ,  王孝熙 著 ,  東華書局 .
Example
Binary Arithmetic on Numeric Data ,[object Object],[object Object],[object Object],[object Object],[object Object]
Part II: Alphanumeric Data ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
ASCII Code ,[object Object]
Extended ACSII 8-bit for each character, 2 8 =256 combinations for 256 characters 。
Examples N: 4E=00101110  a:  61=01100001 t:  74=01110100 i:  69=01101001 o:  6F=01101111  n:  6E=01101110 a:  61=01100001 l:  6C=01101010
EBCDIC ,[object Object],[object Object],[object Object],http://www.natural-innovations.com/computing/asciiebcdic.html
 
Big5 Code ,[object Object],[object Object],[object Object]
 
Unicode ,[object Object],[object Object],[object Object]
Unicode samples
Binary Operations on Alphanumeric Data ,[object Object],[object Object],[object Object],[object Object],[object Object]
Part III: Extensions ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Extension: Image representation ,[object Object],[object Object],[object Object],Original  7*7 digitizing 14*14 digitizing
For Black/White Images Original  7*7 digitizing 14*14 digitizing 0000000 1111100 … 00000000000000 00000000000000 01111111110000 01111111111000 01111111111110 … 0000 0001 1111 00 … 0000 0000 0000 0000 0000 0000 0000 0111 1111 1100 0001 11111111100001111111111110… (01F0..) 2 (00000007FA1..) 2
For Colored Images
Extension: Sound Representation time AMP
Extension: Sampling Max. AMP/16 t 1 t 2 t 3 t 4 … 16=2 4 t 1 : 8=(1000) 2 t 2 : 9=(1001) 2 t 3 : 7=(0111) 2 t 4 : 2=(0010) 2 t 1 : 2=(0010) 2 … Quality vs sampling rate
Conclusion

Weitere ähnliche Inhalte

Was ist angesagt?

2.1 data represent on cpu
2.1 data represent on cpu2.1 data represent on cpu
2.1 data represent on cpu
Wan Afirah
 
Computer Systems Data Representation
Computer Systems   Data RepresentationComputer Systems   Data Representation
Computer Systems Data Representation
iarthur
 
Lec 02 data representation part 1
Lec 02 data representation part 1Lec 02 data representation part 1
Lec 02 data representation part 1
Abdul Khan
 
Computers numbering systems
Computers   numbering systemsComputers   numbering systems
Computers numbering systems
sld1950
 

Was ist angesagt? (20)

Logic Design 2009
Logic Design 2009Logic Design 2009
Logic Design 2009
 
08. Numeral Systems
08. Numeral Systems08. Numeral Systems
08. Numeral Systems
 
Data representation
 Data representation Data representation
Data representation
 
[1] Data Representation
[1] Data Representation[1] Data Representation
[1] Data Representation
 
2.1 data represent on cpu
2.1 data represent on cpu2.1 data represent on cpu
2.1 data represent on cpu
 
Computer Systems Data Representation
Computer Systems   Data RepresentationComputer Systems   Data Representation
Computer Systems Data Representation
 
Data representation
Data representationData representation
Data representation
 
Data representation in computers
Data representation in computersData representation in computers
Data representation in computers
 
As Level Computer Science Book -1
As Level Computer Science  Book -1As Level Computer Science  Book -1
As Level Computer Science Book -1
 
1.1.1 BINARY SYSTEM
1.1.1 BINARY SYSTEM1.1.1 BINARY SYSTEM
1.1.1 BINARY SYSTEM
 
Data Representation
Data RepresentationData Representation
Data Representation
 
Number system
Number systemNumber system
Number system
 
Ch1.number systems
Ch1.number systemsCh1.number systems
Ch1.number systems
 
Number System & Data Representation
Number System & Data RepresentationNumber System & Data Representation
Number System & Data Representation
 
Number system
Number systemNumber system
Number system
 
Lec 02 data representation part 1
Lec 02 data representation part 1Lec 02 data representation part 1
Lec 02 data representation part 1
 
Chapter 1 digital systems and binary numbers
Chapter 1 digital systems and binary numbersChapter 1 digital systems and binary numbers
Chapter 1 digital systems and binary numbers
 
Decimal to Binary Conversion
Decimal to Binary ConversionDecimal to Binary Conversion
Decimal to Binary Conversion
 
Computers numbering systems
Computers   numbering systemsComputers   numbering systems
Computers numbering systems
 
IS 139 Lecture 4
IS 139 Lecture 4IS 139 Lecture 4
IS 139 Lecture 4
 

Andere mochten auch

Lesson 4 data processing
Lesson 4   data processingLesson 4   data processing
Lesson 4 data processing
guevarra_2000
 
How A Computer Works
How A Computer WorksHow A Computer Works
How A Computer Works
Ghaffar Khan
 
Truth tables presentation
Truth tables presentationTruth tables presentation
Truth tables presentation
MujtaBa Khan
 
Truth tables
Truth tablesTruth tables
Truth tables
walkerlj
 
Flag registers, addressing modes, instruction set
Flag registers, addressing modes, instruction setFlag registers, addressing modes, instruction set
Flag registers, addressing modes, instruction set
aviban
 
Registers and-common-bus
Registers and-common-busRegisters and-common-bus
Registers and-common-bus
Anuj Modi
 

Andere mochten auch (20)

World war ii
World war iiWorld war ii
World war ii
 
Deep web
Deep webDeep web
Deep web
 
Sequential logics
Sequential logicsSequential logics
Sequential logics
 
Lesson 4 data processing
Lesson 4   data processingLesson 4   data processing
Lesson 4 data processing
 
How A Computer Works
How A Computer WorksHow A Computer Works
How A Computer Works
 
Chapter4 Data Processing
Chapter4 Data ProcessingChapter4 Data Processing
Chapter4 Data Processing
 
module 1 computer architecture diploma
 module 1 computer architecture diploma   module 1 computer architecture diploma
module 1 computer architecture diploma
 
intel 8086 introduction
intel 8086 introductionintel 8086 introduction
intel 8086 introduction
 
Computer Data Processing And Representation 4
Computer Data Processing And Representation   4Computer Data Processing And Representation   4
Computer Data Processing And Representation 4
 
Computer Data Processing And Representation 4
Computer Data Processing And Representation   4Computer Data Processing And Representation   4
Computer Data Processing And Representation 4
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
 
DATA PROCESSING
DATA PROCESSINGDATA PROCESSING
DATA PROCESSING
 
Truth tables presentation
Truth tables presentationTruth tables presentation
Truth tables presentation
 
OCR GCSE Computing - Binary logic and Truth Tables
OCR GCSE Computing - Binary logic and Truth TablesOCR GCSE Computing - Binary logic and Truth Tables
OCR GCSE Computing - Binary logic and Truth Tables
 
Truth tables
Truth tablesTruth tables
Truth tables
 
Flag registers, addressing modes, instruction set
Flag registers, addressing modes, instruction setFlag registers, addressing modes, instruction set
Flag registers, addressing modes, instruction set
 
Registers and-common-bus
Registers and-common-busRegisters and-common-bus
Registers and-common-bus
 
Interrupts
InterruptsInterrupts
Interrupts
 
Interrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.kInterrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.k
 
Intro to Bits, Bytes, and Storage
Intro to Bits, Bytes, and StorageIntro to Bits, Bytes, and Storage
Intro to Bits, Bytes, and Storage
 

Ähnlich wie Number Systems

Computer organiztion2
Computer organiztion2Computer organiztion2
Computer organiztion2
Umang Gupta
 
Computer archi&mp
Computer archi&mpComputer archi&mp
Computer archi&mp
MSc CST
 

Ähnlich wie Number Systems (20)

W 9 numbering system
W 9 numbering systemW 9 numbering system
W 9 numbering system
 
W 9 numbering system
W 9 numbering systemW 9 numbering system
W 9 numbering system
 
2013 1
2013 1 2013 1
2013 1
 
Chapter 1 Digital Systems and Binary Numbers.ppt
Chapter 1 Digital Systems and Binary Numbers.pptChapter 1 Digital Systems and Binary Numbers.ppt
Chapter 1 Digital Systems and Binary Numbers.ppt
 
DLD-Introduction.pptx
DLD-Introduction.pptxDLD-Introduction.pptx
DLD-Introduction.pptx
 
Module 1 number systems and code1
Module 1  number systems and code1Module 1  number systems and code1
Module 1 number systems and code1
 
Chapter 1 digital design.pptx
Chapter 1 digital design.pptxChapter 1 digital design.pptx
Chapter 1 digital design.pptx
 
Video lectures
Video lecturesVideo lectures
Video lectures
 
Mba ebooks
Mba ebooksMba ebooks
Mba ebooks
 
Chapter 1: Binary System
 Chapter 1: Binary System Chapter 1: Binary System
Chapter 1: Binary System
 
binarycode.pptx
binarycode.pptxbinarycode.pptx
binarycode.pptx
 
21EC201– Digital Principles and system design.pptx
21EC201– Digital Principles and system design.pptx21EC201– Digital Principles and system design.pptx
21EC201– Digital Principles and system design.pptx
 
chapter one && two.pdf
chapter one && two.pdfchapter one && two.pdf
chapter one && two.pdf
 
Number System.pdf
Number System.pdfNumber System.pdf
Number System.pdf
 
Okkkkk
OkkkkkOkkkkk
Okkkkk
 
computer architecture
computer architecture computer architecture
computer architecture
 
Computer organiztion2
Computer organiztion2Computer organiztion2
Computer organiztion2
 
Computer archi&mp
Computer archi&mpComputer archi&mp
Computer archi&mp
 
Number_Systems (2).ppt
Number_Systems (2).pptNumber_Systems (2).ppt
Number_Systems (2).ppt
 
Numbering Systems
Numbering SystemsNumbering Systems
Numbering Systems
 

Mehr von Nasir Jumani (19)

Introduction to Machine Vision
Introduction to Machine VisionIntroduction to Machine Vision
Introduction to Machine Vision
 
World Without Wires 2007
World Without Wires 2007World Without Wires 2007
World Without Wires 2007
 
Power Point Lesson 09 Part 2
Power Point Lesson 09 Part 2Power Point Lesson 09 Part 2
Power Point Lesson 09 Part 2
 
Power Point Lesson 08 P1
Power Point Lesson 08 P1Power Point Lesson 08 P1
Power Point Lesson 08 P1
 
Power Point Lesson 08 P2
Power Point Lesson 08 P2Power Point Lesson 08 P2
Power Point Lesson 08 P2
 
Power Point Lesson 09 Part 1
Power Point Lesson 09 Part 1Power Point Lesson 09 Part 1
Power Point Lesson 09 Part 1
 
Power Point Lesson 09 Part 2
Power Point Lesson 09 Part 2Power Point Lesson 09 Part 2
Power Point Lesson 09 Part 2
 
Power Point Lesson 07 P2
Power Point Lesson 07 P2Power Point Lesson 07 P2
Power Point Lesson 07 P2
 
Power Point Lesson 10 Part1
Power Point  Lesson 10  Part1Power Point  Lesson 10  Part1
Power Point Lesson 10 Part1
 
Power Point Lesson 07 P1
Power Point  Lesson 07  P1Power Point  Lesson 07  P1
Power Point Lesson 07 P1
 
Power Point Lesson 04
Power Point  Lesson 04Power Point  Lesson 04
Power Point Lesson 04
 
Power Point Lesson 05
Power Point  Lesson 05Power Point  Lesson 05
Power Point Lesson 05
 
Power Point Lesson 06
Power Point Lesson 06Power Point Lesson 06
Power Point Lesson 06
 
The Needs Of Computation
The  Needs Of  ComputationThe  Needs Of  Computation
The Needs Of Computation
 
Inside The Computer
Inside The ComputerInside The Computer
Inside The Computer
 
Power Point Lesson 03
Power Point  Lesson 03Power Point  Lesson 03
Power Point Lesson 03
 
Power Point Lesson 01
Power Point Lesson 01Power Point Lesson 01
Power Point Lesson 01
 
Power Point Lesson 02
Power Point Lesson 02Power Point Lesson 02
Power Point Lesson 02
 
Nanotechnology
NanotechnologyNanotechnology
Nanotechnology
 

Kürzlich hochgeladen

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Kürzlich hochgeladen (20)

MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 

Number Systems