Lawrence Snyder University of Washington, Seattle © Lawrence Snyder 2004 How we represent bits, numbers, letters?

Slides:



Advertisements
Similar presentations
Review of HTML Ch. 1.
Advertisements

Digital Representation Everyone knows computers use bits and bytes … but what are they? © Lawrence Snyder, 2004.
Review Ch.1,Ch.4,Ch.7. Review of tags covered various header tags Img tag Style, attributes and values alt.
Bits and the "Why" of Bytes: Representing Information Digitally
Binary and Hexadecimal Numbers
Chapter 8_2 Bits and the "Why" of Bytes: Representing Information Digitally.
1 The Information School of the University of Washington Nov 6fit more-digital © 2006 University of Washington Digital Information INFO/CSE 100,
Chapter 1 Data Storage. 2 Chapter 1: Data Storage 1.1 Bits and Their Storage 1.2 Main Memory 1.3 Mass Storage 1.4 Representing Information as Bit Patterns.
Chapter 8_1 Bits and the "Why" of Bytes: Representing Information Digitally.
CSCE 211: Digital Logic Design Chin-Tser Huang University of South Carolina.
Chapter 8 Bits and the "Why" of Bytes: Representing Information Digitally.
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
1 12/08/03SW Abingdon and Witney College Binary Converting to and from decimal.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
CHARACTERS Data Representation. Using binary to represent characters Computers can only process binary numbers (1’s and 0’s) so a system was developed.
Connecting with Computer Science 2 Objectives Learn why numbering systems are important to understand Refresh your knowledge of powers of numbers Learn.
RNJ 10/02/091 3 Computing System Fundamentals 3.6 Errors Prevention and Detection.
CENG 311 Machine Representation/Numbers
Programmable Logic Controllers
Representing text Each of different symbol on the text (alphabet letter) is assigned a unique bit patterns the text is then representing as.
Lawrence Snyder University of Washington, Seattle © Lawrence Snyder 2004 “Digits” does not refer only to your 10 fingers…
Chapter 1 Data Storage(2) Yonsei University 1 st Semester, 2014 Sanghyun Park.
Lawrence Snyder University of Washington, Seattle © Lawrence Snyder 2004 Adding some light to computing ….
Too much information running through my brain.. We live in the information age. Knowledge comes from careful investigation of information. Information.
Chapter 2 Computer Hardware
Foundations of Computer Science Computing …it is all about Data Representation, Storage, Processing, and Communication of Data 10/4/20151CS 112 – Foundations.
Digital Information  digits are symbols chapter 8 BITS & THE “WHY” OF BYTES.
EX_01.1/46 Numeric Systems. EX_01.2/46 Overview Numeric systems – general, Binary numbers, Octal numbers, Hexadecimal system, Data units, ASCII code,
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Representing Information Digitally Bits and the “Why” of Bytes lawrence snyder.
Fill in the blanks: (1) _________ has only two possible values 0 and 1. (2) There are __________bits in a byte. (3) 1 kilobyte of memory space can store.
1 INFORMATION IN DIGITAL DEVICES. 2 Digital Devices Most computers today are composed of digital devices. –Process electrical signals. –Can only have.
 Three components  Your misinformation page and images  The disclaimer page  Testing it with others  This week's labs are dedicated to Project 1B.
Lawrence Snyder University of Washington, Seattle © Lawrence Snyder 2004.
Computer Science Binary. Binary Code Remember the power supply that is inside your computer and how it sends electricity to all of the components? That.
Data Representation Conversion 24/04/2017.
The Information School of the University of Washington Oct 13fit digital1 Digital Representation INFO/CSE 100, Fall 2006 Fluency in Information Technology.
 Functions package up computation … when do we use them? All the time.  Write some simple code to achieve a goal … 12/20/2015© 2010 Larry Snyder, CSE1.
Data Representation. What is data? Data is information that has been translated into a form that is more convenient to process As information take different.
MECH1500 Chapter 3.
Learning Objectives Explain the link between patterns, symbols, and information Determine possible PandA encodings using a physical phenomenon Encode.
The Information School of the University of Washington 15-Oct-2004cse digital1 Digital Representation INFO/CSE 100, Spring 2005 Fluency in Information.
Fluency with Information Technology INFO100 and CSE100 Katherine Deibel Katherine Deibel, Fluency in Information Technology1.
M204 - Data Representation
Data Representation. How is data stored on a computer? Registers, main memory, etc. consists of grids of transistors Transistors are in one of two states,
Overview 1-1 Information Representation
More Digital Representation Discrete information is represented in binary (PandA), and “continuous” information is made discrete.
09/06/ Data Representation ASCII, Binary Denary Conversion, Integer & Boolean data types.
COMPUTER ORGANIZATION 4 TH LECTURE. ASCII Code  ASCII ( American Standard Code for Information Interchange).  Input and output devices that communicate.
Binary and Hard Disk PEOPLE Program
Understanding binary Understanding Computers.
Databases That's no moon. It's a base of data... in space
3 – Boolean Logic and Logic Gates 4 – Binary Numbers
Chapter 8 & 11: Representing Information Digitally
Everything is a number Everything in a computer memory and on storages is a number. Number  Number Characters  Number by ASCII code Sounds  Number.
Digital Logic and Computer Organization
Bits and the "Why" of Bytes: Representing Information Digitally
Communicating in the Blink of an Eye
Lawrence Snyder University of Washington, Seattle
Chapter 1 Data Storage.
To do … Web Exercise: Quiz-3, HW#2 Score: update
Ch2: Data Representation
Data Representation – Chapter 3
Digital Representation
Fundamentals of Data Representation
INFO/CSE 100, Spring 2005 Fluency in Information Technology
Art Programs Raise Deep Questions
How Computers Store Data
Announcements SGID Feedback! Thank you!! Readings:
CHAPTER 69 NUMBER SYSTEMS AND CODES
Presentation transcript:

Lawrence Snyder University of Washington, Seattle © Lawrence Snyder 2004 How we represent bits, numbers, letters?

 Key principle: Information is the presence or absence of a phenomenon at given place/time  Turn signal is an example  Phenom: Flashing light  Present: Flashing  Absent: Off  Info: Present == intention to turn in specific direction  Place (side of car)  Time: now 9/17/2015(c) Larry Snyder

 The Presence and Absence of a phenomenon at a specific place and time abbreviated: PandA  Phenomena: light, magnetism, charge, mass, color, current, …  Detecting depends on phenomenon – but the result must be discrete: was it detected or not; there is no option for “sorta there”  Place and time apply, but usually default to “obvious” values; not so important to us  Many alternatives … 9/17/2015(c) Larry Snyder

 “Presence and absence” is too long, use 0, 1  At the coffee shop … record passersby:  In multi-state cases, pick one for present, all others are absent  Two states, means this is a binary system 9/17/2015(c) Larry Snyder == going right == wearing purple

9/17/2015(c) Larry Snyder The Diving Bell and the Butterfly Jean-Dominique Bauby

9/17/2015(c) Larry Snyder  A protocol for Yes/No questions  One blink == Yes  Two blinks == No  PandA implies that this is not the fewest number of blinks … really?

9/17/2015(c) Larry Snyder In English ETAOINSHRDLU…

9/17/2015(c) Larry Snyder  How many questions to encode: Plus ça change, plus c'est la même chose?  Asking in Frequency Order: ESARINTULOMDPCFBVHGJQZYXKW 12 9

9/17/2015(c) Larry Snyder  How many questions to encode: Plus ça change, plus c'est la même chose?  Asking in Frequency Order: ESARINTULOMDPCFBVHGJQZYXKW  Asking in Alphabetical Order: ABCDEFGHIJKLMNOPQRSTUVWXYZ 1612

9/17/2015(c) Larry Snyder  How many questions to encode: Plus ça change, plus c'est la même chose?  Asking in Frequency Order: 247 ESARINTULOMDPCFBVHGJQZYXKW  Asking in Alphabetical Order: 324 ABCDEFGHIJKLMNOPQRSTUVWXYZ

 Spelling by going through the letters is an algorithm  Going through the letters in frequency order is a program (also, an algorithm but with the order specified to a particular case, i.e. FR)  The nurses didn’t look this up in a book … they invented it to make their work easier; they were thinking computationally, though they probably didn’t know it 9/17/2015(c) Larry Snyder

9/17/2015(c) Larry Snyder  PandA is a binary representation because it uses 2 patterns Bit – it’s a contraction for “binary digit” Information exists even if the phenom is absent Memory -- a position in space/time capable of being set and detected in 2 patterns Sherlock Holmes’s Mystery of Silver Blaze -- a popular example where “absent” gives information … the dog didn’t bark, that is the phenomenon wasn’t detected

9/17/2015(c) Larry Snyder  A byte is eight bits treated as a unit  Adopted by IBM in 1960s  A standard measure ever since  Bytes encode the Latin alphabet using ASCII -- the American Standard Code for Information Interchange

9/17/2015(c) Larry Snyder | | | | | | |

9/17/2015(c) Larry Snyder Uniform Transformation Format for bytes (UTF-8) is universal … all characters have a place: 1,2,3,4 B

9/17/2015(c) Larry Snyder Uniform Transformation Format for bytes (UTF-8) is universal … all characters have a place: 1,2,3,4 B  100,000 characters ¿sı ɥʇ p ɐǝɹ no ʎ u ɐɔ

9/17/2015(c) Larry Snyder  Bits and bytes encode the information, but that’s not all  Tags encode format and some structure in word processors  Tags encode format and some structure in HTML  In the Oxford English Dictionary tags encode structure and some formatting  Tags are one form of meta-data: meta-data is information about information

9/17/2015(c) Larry Snyder byte (baIt). Computers. [Arbitrary, prob. influenced by bit sb. 4 and bite sb.] A group of eight consecutive bits operated on as a unit in a computer Blaauw & Brooks in IBM Systems Jrnl. III. 122 An 8-bit unit of information is fundamental to most of the formats [of the System/360]. A consecutive group of n such units constitutes a field of length n. Fixed-length fields of length one, two, four, and eight are termed bytes, halfwords, words, and double words respectively IBM Jrnl. Res. & Developm. VIII. 97/1 When a byte of data appears from an I/O device, the CPU is seized, dumped, used and restored P. A. Stark Digital Computer Programming xix. 351 The normal operations in fixed point are done on four bytes at a time Dataweek 24 Jan. 1/1 Tape reading and writing is at from 34,160 to 192,000 bytes per second. byte baIt. Computers. Arbitrary, prob. influenced by bit n. 4 and bite n. A group of eight consecutive bits operated on as a unit in a computer Blaauw &amp. Brooks in IBM Systems Jrnl. III. 122 An 8-bit unit of information is fundamental to most of the formats of the System/360.&es.A consecutive group of n such units constitutes a field of length n.&es.Fixed-length fields of length one, two, four, and eight are termed bytes, halfwords, words, and double words respectively IBM Jrnl. Res. &amp. Developm. VIII. 97/1 When a byte of data appears from an I/O device, the CPU is seized, dumped, used and restored P. A. Stark Digital Computer Programming xix. 351 The normal operations in fixed point are done on four bytes at a time Dataweek 24 Jan. 1/1 Tape reading and writing is at from 34,160 to 192,000 bytes per second.

19  Binary numbers, like decimal numbers, use place notation 1101 = 1× × ×10 + 1×1 = 1× × × ×10 0 except that the base is 2 not = 1×8 + 1×4 + 0×2 + 1×1 = 1× × × × in binary is 13 in decimal 9/17/2015© 2010 Larry Snyder, CSE Base or radix

209/17/2015© 2010 Larry Snyder, CSE

219/17/2015© 2010 Larry Snyder, CSE

229/17/2015© 2010 Larry Snyder, CSE

23  So Husky purple is (160,76,230) which is Suppose you decide it’s not “red” enough ▪ Increase the red by 16 = Adding in binary is pretty much like adding in decimal 9/17/2015© 2010 Larry Snyder, CSE

24  Increase by 16 more Carries The rule: When the “place sum” equals the radix or more, subtract radix & carry Check it out online: searching hits 19M times, and all of the p.1 hits are good explanations 9/17/2015© 2010 Larry Snyder, CSE binary addition

25 What is 230? Fill in the Table: Num Being Converted Place Value Subtract Binary Num /17/2015© 2010 Larry Snyder, CSE

26 Place number to be converted into the table; fill place value row with decimal powers of 2 Num Being Converted 230 Place Value Subtract Binary Num 9/17/2015© 2010 Larry Snyder, CSE

27 Rule: Subtract PV from the number; a positive result gives new number and “1”; otherwise, “0” Num Being Converted 230 Place Value Subtract Binary Num0 9/17/2015© 2010 Larry Snyder, CSE

28 Rule: Subtract PV from the number; a positive result gives new number and “1”; otherwise, “0” Num Being Converted Place Value Subtract102 Binary Num01 9/17/2015© 2010 Larry Snyder, CSE

29 Rule: Subtract PV from the number; a positive result gives new number and “1”; otherwise, “0” Num Being Converted Place Value Subtract10238 Binary Num011 9/17/2015© 2010 Larry Snyder, CSE

30 Rule: Subtract PV from the number; a positive result gives new number and “1”; otherwise, “0” Num Being Converted Place Value Subtract Binary Num0111 9/17/2015© 2010 Larry Snyder, CSE

31 Rule: Subtract PV from the number; a positive result gives new number and “1”; otherwise, “0” Num Being Converted Place Value Subtract Binary Num /17/2015© 2010 Larry Snyder, CSE

32 Rule: Subtract PV from the number; a positive result gives new number and “1”; otherwise, “0” Num Being Converted Place Value Subtract Binary Num /17/2015© 2010 Larry Snyder, CSE

33 Rule: Subtract PV from the number; a positive result gives new number and “1”; otherwise, “0” Num Being Converted Place Value Subtract Binary Num /17/2015© 2010 Larry Snyder, CSE

34 Rule: Subtract PV from the number; a positive result gives new number and “1”; otherwise, “0” Num Being Converted Place Value Subtract Binary Num /17/2015© 2010 Larry Snyder, CSE

35 Rule: Subtract PV from the number; a positive result gives new number and “1”; otherwise, “0” Read off the result: Num Being Converted Place Value Subtract Binary Num /17/2015© 2010 Larry Snyder, CSE

 We ALL KNOW computers represent data by binary numbers  NOT QUITE TRUE  Computers represent information by bits  ASCII, numbers (yes, in binary), metadata + computer instructions, color, sound, video, etc.  Fundamental Fact –  Bits can represent ALL information  Bits have no inherent meaning … you don’t know what means … it could be anything 9/17/2015© 2010 Larry Snyder, CSE