Announcements SGID Feedback! Thank you!! Readings:

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
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 8 Bits and the "Why" of Bytes: Representing Information Digitally.
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
1 A Balanced Introduction to Computer Science, 2/E David Reed, Creighton University ©2008 Pearson Prentice Hall ISBN Chapter 12 Data.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
©Brooks/Cole, 2003 Chapter 2 Data Representation.
Data vs. Information OUTPUTOUTPUT Information Data PROCESSPROCESS INPUTINPUT There are 10 types of people in this world those who read binary and those.
Lawrence Snyder University of Washington, Seattle © Lawrence Snyder 2004 “Digits” does not refer only to your 10 fingers…
Computers and Scientific Thinking David Reed, Creighton University Data Representation 1.
Lawrence Snyder University of Washington, Seattle © Lawrence Snyder 2004 How we represent bits, numbers, letters?
Lawrence Snyder University of Washington, Seattle © Lawrence Snyder 2004 Adding some light to computing ….
Computer Some basic concepts. Binary number Why binary? Look at a decimal number: 3511 Look at a binary number: 1011 counting decimal binary
Chapter 11 Fluency with Information Technology 4 th edition by Lawrence Snyder (slides by Deborah Woodall : 1.
Chapter 2 Computer Hardware
Data Types and Representation CS French Chapter 6 + Chapter 7 – Number Bases.
Data Representation CS280 – 09/13/05. Binary (from a Hacker’s dictionary) A base-2 numbering system with only two digits, 0 and 1, which is perfectly.
Discovering Computers Fundamentals, 2010 Edition Living in a Digital World Chapter Three.
Introduction to Computer Design CMPT 150 Section: D Ch. 1 Digital Computers and Information CMPT 150, Chapter 1, Tariq Nuruddin, Fall 06, SFU 1.
1 INFORMATION IN DIGITAL DEVICES. 2 Digital Devices Most computers today are composed of digital devices. –Process electrical signals. –Can only have.
What is a computer? A computer is a device that:
 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.
Data Representation, Number Systems and Base Conversions
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.
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.
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,
More Digital Representation Discrete information is represented in binary (PandA), and “continuous” information is made discrete.
Computer Hardware. 7/23/2016M. Eyadat2 Objectives –Explain why most computers are digital –Describe the role of the ALU –List factors that affect performance.
Department of Computer Science Georgia State University
Binary and Hard Disk PEOPLE Program
Databases That's no moon. It's a base of data... in space
Chapter 8 & 11: Representing Information Digitally
Lec 3: Data Representation
Everything is a number Everything in a computer memory and on storages is a number. Number  Number Characters  Number by ASCII code Sounds  Number.
Data and Information.
Chapter 3 Data Storage.
Information Support and Services
Bits and the "Why" of Bytes: Representing Information Digitally
Communicating in the Blink of an Eye
Chapter 2 – Computer hardware
Announcement Tomorrow’s office hr: CANCELLED! Show work!!
Lawrence Snyder University of Washington, Seattle
To do … Web Exercise: Quiz-3, HW#2 Score: update
LING 388: Computers and Language
Representing Information
Ch2: Data Representation
Data Representation Conversion 05/12/2018.
Digital Representation
Digital Representation
Light Bot Solutions: an analysis
Fundamentals of Data Representation
Announcement Function ppt: download again
INFO/CSE 100, Spring 2005 Fluency in Information Technology
Chapter 2 Data Representation.
Encoding and Sending Formatted Text
How Computers Store Data
Chapter 3 DataStorage Foundations of Computer Science ã Cengage Learning.
Digitization & Processing
Announcements How to save your work? Quiz solution 5/5/2019
Basic Processing … Drawing pictures … It’s not art, it’s fun
Computer Organization and Assembly Language
Announcements Survey feedback: summary Quiz: HW 7:
Digital Representation of Data
Presentation transcript:

Announcements SGID Feedback! Thank you!! Readings: 3.Conditionals + 4.ForIteration HW7: Check these out!! Mid-Term: CD-ROM + Color If I were to give you a grade today … Final grade: slightly lower or about the same? 2/15/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE)

Fundamental Principle of Information Representation Bits are IT Fundamental Principle of Information Representation Kelvin Sung University of Washington, Bothell (* Use/Modification with permission based on Larry Snyder’s CSE120 from Winter 2011) © Lawrence Snyder 2004

Remember CD-ROM? 2/15/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE)

Review What We Know About Bits Facts about physical representation: Information is represented by the presence or absence of a physical phenomenon (PandA) Hole punched in a card; no hole [Hollerith] Dog barks in the night; no barking in the night [Holmes] Wire is electrically charged; wire is neutral ETC Abstract all these cases with 0 and 1; it unifies them so we don’t have to consider the details 2/15/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE)

Bits Have No Inherent Meaning What does this represent: 0000 0000 1111 0001 0000 1000 0010 0000? You don’t know until you how it was encoded As a binary number: 15,796,256 As a color, RGB(241,8,32) What else? 2/15/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE)

Not All Information Is Discrete Analogue information directly applies physical phenomena, e.g. vinyl records 2/15/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE)

Analog Signals Become Discrete Sampling the wave … 2/15/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE)

Precision of the Sample 2/15/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE)

The World Is Analog – Go Between Analog is needed for the “real world” Digital is best for “information world” Can be modified, enhanced, remixed, etc Shared, stored permanently, reproduced, … Device Driver Memory A/D Converter D/A Converter 2/15/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE)

Questions? Bits can be used to represent sound! How many samples to take each second How many samples to take to represent volume 2/15/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE)

Bytes 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 0101 0101 0101 0111 2/15/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE)

ASCII 0100 0011 0101 0011 0101 0000 0100 1000|0111 0101|0111 0011|0110 1011|0110 1001|0110 0101|0111 0011|0010 0001 2/15/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE)

UTF-8 Uniform Transformation Format for bytes (UTF-8) is universal … all characters have a place: 1,2,3,4 B 2/15/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE)

Encoding Information 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 2/15/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE)

OED Entry For Byte -- Metadata 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. 1964 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. 1964 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. 1967 P. A. Stark Digital Computer Programming xix. 351 The normal operations in fixed point are done on four bytes at a time. 1968 Dataweek 24 Jan. 1/1 Tape reading and writing is at from 34,160 to 192,000 bytes per second. <e><hg><hw>byte</hw> <pr><ph>baIt</ph></pr></hg>. <la>Computers</la>. <etym>Arbitrary, prob. influenced by <xr><x>bit</x></xr> <ps>n.<hm>4</hm></ps>and <xr><x>bite</x> <ps>n.</ps> </xr></etym> <s4>A group of eight consecutive bits operated on as a unit in a computer.</s4> <qp><q><qd>1964</qd><a>Blaauw</a> &amp. <a>Brooks</a> <bib>in</bib> <w>IBM Systems Jrnl.</w> <lc>III. 122</lc> <qt>An 8-bit unit of information is fundamental to most of the formats <ed>of the System/360</ed>.&es.A consecutive group of <i>n</i> such units constitutes a field of length <i>n</i>.&es.Fixed-length fields of length one, two, four, and eight are termed bytes, halfwords, words, and double words respectively. </qt></q><q><qd>1964</qd> <w>IBM Jrnl. Res. &amp. Developm.</w> <lc>VIII. 97/1</lc> <qt>When a byte of data appears from an I/O device, the CPU is seized, dumped, used and restored.</qt></q> <q><qd>1967</qd> <a>P. A. Stark</a> <w>Digital Computer Programming</w> <lc>xix. 351</lc> <qt>The normal operations in fixed point are done on four bytes at a time.</qt></q><q><qd>1968</qd> <w>Dataweek</w> <lc>24 Jan. 1/1</lc> <qt>Tape reading and writing is at from 34,160 to 192,000 bytes per second.</qt></q></qp></e> 2/15/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE)

Representing Anything Compare binary arithmetic to ASCII Binary encodes the positions to make using the information (numbers) easy, like for addition ASCII assigns some pattern to each letter Given any finite set of things – colors, computer addresses, English words, etc. We might figure out a smart way to represent them as bits – colors can give light intensity of RGB We can just assign patterns, and manipulate them by pattern matching – red can be 0000 0001, dark red 0000 0010, etc. 2/15/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE)

Bits Have No Inherent Meaning What does this represent: 0000 0000 1111 0001 0000 1000 0010 0000? You don’t know until you how it was encoded As a binary number: 15,796,256 As a color, RGB(241,8,32) As a computer instruction: Add 1, 7, 17 As ASCII: nu bs ñ <space> IP Address: 0.241.8.32 …  to infinity and beyond 2/15/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE)

A Bias-free Universal Medium This is the principle: Bias-free Universal Medium Principle: Bits can represent all discrete information; bits have no inherent meaning 2/15/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE)

Summary Analog information must be made discrete (digitized) before it can be processed by computers … this is done by A/D converter The reverse process lets us hear it: D/A Bits are sufficient to encode all discrete information Bits have no inherent meaning, so they can be used for anything 2/15/2019 Kelvin Sung (Use/modify with permission from © 2010 Larry Snyder, CSE)