SlideShare ist ein Scribd-Unternehmen logo
1 von 32
Downloaden Sie, um offline zu lesen
Chapter 7
Representing Information Digitally

Monday, October 28, 13
“Bits of Theory/Bytes of Practice”
-- A.K. Dewdney
Logic is the foundation of both reasoning
and computing.
By associating true with presence & false
with absence, we can use the physical
world [signals] to model the logical world
(symbols), and vice-versa.
This [is the Fundamental Principle of]
Information Technology.
-- p. 195, Ch. 8, FIT5
Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Monday, October 28, 13
Fundament Principle of IT
Logic is the foundation of both reasoning
and computing.

Web Field Trip
Logic Gates: Logical AND
(http://hyperphysics.phy-astr.gsu.edu/hbase/electronic/and.html)

=> Nine Rungs of the IT Inferno
(http://ix.cs.uoregon.edu/~michaelh/110/inferno.html)

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Monday, October 28, 13
Digitizing Information
• represent information with digits
• Digit: 0 .. 9 (Decimal Digit)
• Digitizing: use whole numbers as symbols
• BIT: 0 .. 1 (BInary digiT)
• Hex Digit: 0 .. 9, A .. F

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Monday, October 28, 13
Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Monday, October 28, 13
Fundamental Information
Representation
• Computers: combine the physical (actual)
world with the logical (virtual) world
• Representation => from signal to symbol
• Physical world: the most fundamental form
of information is presence or absence
– P/A, On/Off, 1/0, T/F

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Monday, October 28, 13
Fundamental Information
Representation
• In the logical world, concepts of true (T)
and false (F) are important
• Logic: foundation of reasoning
• Logic: foundation of computing
• The physical world (machines) can
represent the logical world by associating
“true” with the Presence of a phenomenon
and “false” with its Absence
Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Monday, October 28, 13
The PandA Representation
• PandA: the code used for two bits of
physical information:
– Presence
– Absence

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Monday, October 28, 13
The PandA Representation
• The presence or absence can be viewed
as “true” or “false”
• Such a formulation is said to be discrete
vs. continuous
• Signals are continuous
• Symbols are discrete

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Monday, October 28, 13
A Binary System
• The PandA encoding
has two bits: present &
absent
• Two bits make binary
• There is no law that
says on means
“present” or off
means “absent”
– convention
– interpretation
Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Monday, October 28, 13
Bits Form Symbols
• The PandA unit is a bit
“binary digit”
• Bit sequences can be interpreted as
numbers or other information
• Groups of bits can represent symbols
– (eg) ASCII Character Code

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Monday, October 28, 13
Bits in Computer Memory
• Memory is arranged inside a computer in a
very long sequence of bits
• Memory locations are electronic (RAM)
• Bits are stored as Presence/Absence
• Symbolic representation: 1/0
Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Monday, October 28, 13
Sidewalk Memory
• sidewalk: strip of concrete with lines across
it forming squares
• presence of a stone: 1
• absence of a stone: 0
=> sidewalk: a sequence of bits

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Monday, October 28, 13
Sidewalk Memory

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Monday, October 28, 13
Sidewalk Memory
0
1
0
1

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Monday, October 28, 13

0

0

1 0
Sidewalk Memory
• To write a 1: put a stone on a square
• To write a 0: sweep the sidewalk square
clean

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Monday, October 28, 13
Alternative PandA Encodings
• There is no limit to the ways to encode two
physical states
• “One if by land, Two if by sea.”
– Paul Revere Code
– Binary

• Git, Whoa!
– Conestoga Code
– Binary
Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Monday, October 28, 13
Encoding Information w/ Bit
Patterns
• bit patterns of length 1:
=> encode 2 symbols
• bit patterns of length 2:
=> encode 4 symbols
• bit patterns of length 3:
=> encode 8 symbols
...
• bit patterns of length n:
=> 2n symbols
• adding 1 bit doubles number of
patterns
Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Monday, October 28, 13
Bit Patterns of Length 4 = One Hex Digit

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Monday, October 28, 13
Hex Digits Explained
• hexadecimal digits are base-16 numbers
(24 = 16)
• using bit patterns is tedious & error prone
1111 1111 1001 1000 1110 0010 1010 1101
• one hex digit = 4 bits
=> shorthand representation
FF98E2AD
Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Monday, October 28, 13
Hex to Bits and Back Again
• Easy to translate between hex and binary
– 0010 1011 1010 1101
2
B
A
D
–

F
A
B
4
1111 1010 1011 0100

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Monday, October 28, 13
Digitizing Numbers using Binary
• The two earliest uses of PandA were to:
– Encode numbers
– Encode keyboard characters

• Same principles apply to sound, images,
video, etc.

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Monday, October 28, 13
Decimal Numbers, Place Values
•
•
•
•

numbers use a place value representation
each “place” represents a power of 10
(binary numbers use powers of 2)
1,010 in decimal:

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Monday, October 28, 13
Binary Numbers, Place Values
• 10102
= (1 × 8) + (0 × 4) + (1 × 2) + (0 × 1)
= 1010

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Monday, October 28, 13
Binary Numbers, Place Values
1,01010 = 0011 1111 00102

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Monday, October 28, 13
Digitizing Text
• The number of bits determines the number
of symbols that can be represented
– bit patterns of length n
=> 2n symbols

• The more symbols you want encoded, the
more bits you need

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Monday, October 28, 13
Digitizing Text (Characters)
• To represent 95 distinct symbols
• uppercase, lowercase, digits, punctuation,
etc.
• we need 7 bits
– 26 = 64 symbols
– 27 = 128 symbols

• plus additional characters
=> ASCII-8 Character Code
– 28 = 256 symbols
Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Monday, October 28, 13
Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Monday, October 28, 13
Extended ASCII: An 8-Bit Code
• Handling other languages is solved in two
ways:
– ASCII-8
– Unicode-16

• IBM named 8-bit sequence a byte
• ASCII-8: One Byte/One Character
• RAM: one memory location = 4 Bytes

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Monday, October 28, 13
Why “Byte”?
• IBM was building a supercomputer, called
Stretch
• They needed a word for a quantity of
memory between a bit and a word
• A word of computer memory is currently 32
bits

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Monday, October 28, 13
Why “Byte”?
• Then, why not bite?
• The ‘i’ to a ‘y’ was done so that someone
couldn’t accidentally change ‘byte’ to ‘bit’
by the dropping the ‘e’ ”
– bite
– byte

bit
byt

(the meaning changes)
(what’s a byt?)

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Monday, October 28, 13
Ch. 7 Assessment:
Learning Outcomes - Know the following

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Monday, October 28, 13

Weitere ähnliche Inhalte

Andere mochten auch

Sport co rehabilitation massage
Sport co rehabilitation   massageSport co rehabilitation   massage
Sport co rehabilitation massageSportcorehab
 
Digipack explanation
Digipack explanationDigipack explanation
Digipack explanationjam3scoles
 
Let`s Do It! 2013 final presentation
Let`s Do It! 2013 final presentationLet`s Do It! 2013 final presentation
Let`s Do It! 2013 final presentationTaras Yemchura
 
digipack draft 3
digipack draft 3digipack draft 3
digipack draft 3jam3scoles
 
Ch. 3 HTML5, CIS 110 13F
Ch. 3 HTML5, CIS 110 13FCh. 3 HTML5, CIS 110 13F
Ch. 3 HTML5, CIS 110 13Fmh-108
 
Revago20141004 goswin - gods genade zwart op wit
Revago20141004 goswin - gods genade zwart op witRevago20141004 goswin - gods genade zwart op wit
Revago20141004 goswin - gods genade zwart op witmissim77
 
Mfv ren ch.4
Mfv ren ch.4Mfv ren ch.4
Mfv ren ch.465swiss
 
manthan final file
manthan final filemanthan final file
manthan final fileArpit Dubey
 
Ne zabud' 2013 presentation
Ne zabud' 2013 presentationNe zabud' 2013 presentation
Ne zabud' 2013 presentationTaras Yemchura
 
Ncc art100 ch.5
Ncc art100 ch.5Ncc art100 ch.5
Ncc art100 ch.565swiss
 

Andere mochten auch (12)

Sport co rehabilitation massage
Sport co rehabilitation   massageSport co rehabilitation   massage
Sport co rehabilitation massage
 
Digipack explanation
Digipack explanationDigipack explanation
Digipack explanation
 
Let`s Do It! 2013 final presentation
Let`s Do It! 2013 final presentationLet`s Do It! 2013 final presentation
Let`s Do It! 2013 final presentation
 
digipack draft 3
digipack draft 3digipack draft 3
digipack draft 3
 
Ch. 3 HTML5, CIS 110 13F
Ch. 3 HTML5, CIS 110 13FCh. 3 HTML5, CIS 110 13F
Ch. 3 HTML5, CIS 110 13F
 
Carolina bedoya bedoya
Carolina bedoya bedoyaCarolina bedoya bedoya
Carolina bedoya bedoya
 
Revago20141004 goswin - gods genade zwart op wit
Revago20141004 goswin - gods genade zwart op witRevago20141004 goswin - gods genade zwart op wit
Revago20141004 goswin - gods genade zwart op wit
 
Mfv ren ch.4
Mfv ren ch.4Mfv ren ch.4
Mfv ren ch.4
 
Chase about me
Chase about meChase about me
Chase about me
 
manthan final file
manthan final filemanthan final file
manthan final file
 
Ne zabud' 2013 presentation
Ne zabud' 2013 presentationNe zabud' 2013 presentation
Ne zabud' 2013 presentation
 
Ncc art100 ch.5
Ncc art100 ch.5Ncc art100 ch.5
Ncc art100 ch.5
 

Mehr von mh-108

Ch. 17 FIT5, CIS 110 13F
Ch. 17 FIT5, CIS 110 13FCh. 17 FIT5, CIS 110 13F
Ch. 17 FIT5, CIS 110 13Fmh-108
 
Ch. 16 Database Case Study: XML/XSLT
Ch. 16 Database Case Study: XML/XSLTCh. 16 Database Case Study: XML/XSLT
Ch. 16 Database Case Study: XML/XSLTmh-108
 
Ch. 15 FIT5, CIS 110 13F
Ch. 15 FIT5, CIS 110 13FCh. 15 FIT5, CIS 110 13F
Ch. 15 FIT5, CIS 110 13Fmh-108
 
Ch. 4 FIT5, CIS 110 13F
Ch. 4 FIT5, CIS 110 13FCh. 4 FIT5, CIS 110 13F
Ch. 4 FIT5, CIS 110 13Fmh-108
 
Ch. 10 FIT5, CIS 110 13F
Ch. 10 FIT5, CIS 110 13FCh. 10 FIT5, CIS 110 13F
Ch. 10 FIT5, CIS 110 13Fmh-108
 
Ch. 12 FIT5, CIS 110 13F
Ch. 12 FIT5, CIS 110 13FCh. 12 FIT5, CIS 110 13F
Ch. 12 FIT5, CIS 110 13Fmh-108
 
Ch. 8 FIT5, CIS 110 13F
Ch. 8 FIT5, CIS 110 13FCh. 8 FIT5, CIS 110 13F
Ch. 8 FIT5, CIS 110 13Fmh-108
 
Ch. 2 HTML5, CIS 110 13F
Ch. 2 HTML5, CIS 110 13FCh. 2 HTML5, CIS 110 13F
Ch. 2 HTML5, CIS 110 13Fmh-108
 
Ch. 1 HTML5, CIS 110 13F
Ch. 1 HTML5, CIS 110 13FCh. 1 HTML5, CIS 110 13F
Ch. 1 HTML5, CIS 110 13Fmh-108
 
Ch. 3 FIT5, CIS 110 13F
Ch. 3 FIT5, CIS 110 13FCh. 3 FIT5, CIS 110 13F
Ch. 3 FIT5, CIS 110 13Fmh-108
 
FIT5 Ch. 5, CIS 110 13F
FIT5 Ch. 5, CIS 110 13FFIT5 Ch. 5, CIS 110 13F
FIT5 Ch. 5, CIS 110 13Fmh-108
 

Mehr von mh-108 (11)

Ch. 17 FIT5, CIS 110 13F
Ch. 17 FIT5, CIS 110 13FCh. 17 FIT5, CIS 110 13F
Ch. 17 FIT5, CIS 110 13F
 
Ch. 16 Database Case Study: XML/XSLT
Ch. 16 Database Case Study: XML/XSLTCh. 16 Database Case Study: XML/XSLT
Ch. 16 Database Case Study: XML/XSLT
 
Ch. 15 FIT5, CIS 110 13F
Ch. 15 FIT5, CIS 110 13FCh. 15 FIT5, CIS 110 13F
Ch. 15 FIT5, CIS 110 13F
 
Ch. 4 FIT5, CIS 110 13F
Ch. 4 FIT5, CIS 110 13FCh. 4 FIT5, CIS 110 13F
Ch. 4 FIT5, CIS 110 13F
 
Ch. 10 FIT5, CIS 110 13F
Ch. 10 FIT5, CIS 110 13FCh. 10 FIT5, CIS 110 13F
Ch. 10 FIT5, CIS 110 13F
 
Ch. 12 FIT5, CIS 110 13F
Ch. 12 FIT5, CIS 110 13FCh. 12 FIT5, CIS 110 13F
Ch. 12 FIT5, CIS 110 13F
 
Ch. 8 FIT5, CIS 110 13F
Ch. 8 FIT5, CIS 110 13FCh. 8 FIT5, CIS 110 13F
Ch. 8 FIT5, CIS 110 13F
 
Ch. 2 HTML5, CIS 110 13F
Ch. 2 HTML5, CIS 110 13FCh. 2 HTML5, CIS 110 13F
Ch. 2 HTML5, CIS 110 13F
 
Ch. 1 HTML5, CIS 110 13F
Ch. 1 HTML5, CIS 110 13FCh. 1 HTML5, CIS 110 13F
Ch. 1 HTML5, CIS 110 13F
 
Ch. 3 FIT5, CIS 110 13F
Ch. 3 FIT5, CIS 110 13FCh. 3 FIT5, CIS 110 13F
Ch. 3 FIT5, CIS 110 13F
 
FIT5 Ch. 5, CIS 110 13F
FIT5 Ch. 5, CIS 110 13FFIT5 Ch. 5, CIS 110 13F
FIT5 Ch. 5, CIS 110 13F
 

Kürzlich hochgeladen

Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxUmeshTimilsina1
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 

Kürzlich hochgeladen (20)

Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 

Ch. 7 FIT5, CIS 110 13F

  • 1. Chapter 7 Representing Information Digitally Monday, October 28, 13
  • 2. “Bits of Theory/Bytes of Practice” -- A.K. Dewdney Logic is the foundation of both reasoning and computing. By associating true with presence & false with absence, we can use the physical world [signals] to model the logical world (symbols), and vice-versa. This [is the Fundamental Principle of] Information Technology. -- p. 195, Ch. 8, FIT5 Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Monday, October 28, 13
  • 3. Fundament Principle of IT Logic is the foundation of both reasoning and computing. Web Field Trip Logic Gates: Logical AND (http://hyperphysics.phy-astr.gsu.edu/hbase/electronic/and.html) => Nine Rungs of the IT Inferno (http://ix.cs.uoregon.edu/~michaelh/110/inferno.html) Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Monday, October 28, 13
  • 4. Digitizing Information • represent information with digits • Digit: 0 .. 9 (Decimal Digit) • Digitizing: use whole numbers as symbols • BIT: 0 .. 1 (BInary digiT) • Hex Digit: 0 .. 9, A .. F Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Monday, October 28, 13
  • 5. Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Monday, October 28, 13
  • 6. Fundamental Information Representation • Computers: combine the physical (actual) world with the logical (virtual) world • Representation => from signal to symbol • Physical world: the most fundamental form of information is presence or absence – P/A, On/Off, 1/0, T/F Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Monday, October 28, 13
  • 7. Fundamental Information Representation • In the logical world, concepts of true (T) and false (F) are important • Logic: foundation of reasoning • Logic: foundation of computing • The physical world (machines) can represent the logical world by associating “true” with the Presence of a phenomenon and “false” with its Absence Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Monday, October 28, 13
  • 8. The PandA Representation • PandA: the code used for two bits of physical information: – Presence – Absence Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Monday, October 28, 13
  • 9. The PandA Representation • The presence or absence can be viewed as “true” or “false” • Such a formulation is said to be discrete vs. continuous • Signals are continuous • Symbols are discrete Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Monday, October 28, 13
  • 10. A Binary System • The PandA encoding has two bits: present & absent • Two bits make binary • There is no law that says on means “present” or off means “absent” – convention – interpretation Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Monday, October 28, 13
  • 11. Bits Form Symbols • The PandA unit is a bit “binary digit” • Bit sequences can be interpreted as numbers or other information • Groups of bits can represent symbols – (eg) ASCII Character Code Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Monday, October 28, 13
  • 12. Bits in Computer Memory • Memory is arranged inside a computer in a very long sequence of bits • Memory locations are electronic (RAM) • Bits are stored as Presence/Absence • Symbolic representation: 1/0 Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Monday, October 28, 13
  • 13. Sidewalk Memory • sidewalk: strip of concrete with lines across it forming squares • presence of a stone: 1 • absence of a stone: 0 => sidewalk: a sequence of bits Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Monday, October 28, 13
  • 14. Sidewalk Memory Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Monday, October 28, 13
  • 15. Sidewalk Memory 0 1 0 1 Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Monday, October 28, 13 0 0 1 0
  • 16. Sidewalk Memory • To write a 1: put a stone on a square • To write a 0: sweep the sidewalk square clean Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Monday, October 28, 13
  • 17. Alternative PandA Encodings • There is no limit to the ways to encode two physical states • “One if by land, Two if by sea.” – Paul Revere Code – Binary • Git, Whoa! – Conestoga Code – Binary Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Monday, October 28, 13
  • 18. Encoding Information w/ Bit Patterns • bit patterns of length 1: => encode 2 symbols • bit patterns of length 2: => encode 4 symbols • bit patterns of length 3: => encode 8 symbols ... • bit patterns of length n: => 2n symbols • adding 1 bit doubles number of patterns Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Monday, October 28, 13
  • 19. Bit Patterns of Length 4 = One Hex Digit Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Monday, October 28, 13
  • 20. Hex Digits Explained • hexadecimal digits are base-16 numbers (24 = 16) • using bit patterns is tedious & error prone 1111 1111 1001 1000 1110 0010 1010 1101 • one hex digit = 4 bits => shorthand representation FF98E2AD Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Monday, October 28, 13
  • 21. Hex to Bits and Back Again • Easy to translate between hex and binary – 0010 1011 1010 1101 2 B A D – F A B 4 1111 1010 1011 0100 Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Monday, October 28, 13
  • 22. Digitizing Numbers using Binary • The two earliest uses of PandA were to: – Encode numbers – Encode keyboard characters • Same principles apply to sound, images, video, etc. Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Monday, October 28, 13
  • 23. Decimal Numbers, Place Values • • • • numbers use a place value representation each “place” represents a power of 10 (binary numbers use powers of 2) 1,010 in decimal: Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Monday, October 28, 13
  • 24. Binary Numbers, Place Values • 10102 = (1 × 8) + (0 × 4) + (1 × 2) + (0 × 1) = 1010 Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Monday, October 28, 13
  • 25. Binary Numbers, Place Values 1,01010 = 0011 1111 00102 Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Monday, October 28, 13
  • 26. Digitizing Text • The number of bits determines the number of symbols that can be represented – bit patterns of length n => 2n symbols • The more symbols you want encoded, the more bits you need Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Monday, October 28, 13
  • 27. Digitizing Text (Characters) • To represent 95 distinct symbols • uppercase, lowercase, digits, punctuation, etc. • we need 7 bits – 26 = 64 symbols – 27 = 128 symbols • plus additional characters => ASCII-8 Character Code – 28 = 256 symbols Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Monday, October 28, 13
  • 28. Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Monday, October 28, 13
  • 29. Extended ASCII: An 8-Bit Code • Handling other languages is solved in two ways: – ASCII-8 – Unicode-16 • IBM named 8-bit sequence a byte • ASCII-8: One Byte/One Character • RAM: one memory location = 4 Bytes Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Monday, October 28, 13
  • 30. Why “Byte”? • IBM was building a supercomputer, called Stretch • They needed a word for a quantity of memory between a bit and a word • A word of computer memory is currently 32 bits Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Monday, October 28, 13
  • 31. Why “Byte”? • Then, why not bite? • The ‘i’ to a ‘y’ was done so that someone couldn’t accidentally change ‘byte’ to ‘bit’ by the dropping the ‘e’ ” – bite – byte bit byt (the meaning changes) (what’s a byt?) Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Monday, October 28, 13
  • 32. Ch. 7 Assessment: Learning Outcomes - Know the following Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Monday, October 28, 13