The Information School of the University of Washington 15-Oct-2004cse100-08-digital1 Digital Representation INFO/CSE 100, Spring 2005 Fluency in Information.

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
Learning Objectives Explain the link between patterns, symbols, and information Determine possible PandA encodings using a physical phenomenon Encode.
Chapter 7 Representing Information Digitally. Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Learning Objectives Explain.
Chapter 7 Representing Information Digitally. Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Learning Objectives Explain.
Using Binary Coding Information Remember  Bit = 0 or 1, Binary Digit  Byte = the number of bits used to represent letters, numbers and special characters.
1. Discrete / Continuous Representations Of numbers – binary & decimal Bits Hexadecimal - 'Hex' Representing text Bits and Bytes.
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.
28-Jun-15 Number Systems. 2 Bits and bytes A bit is a single two-valued quantity: yes or no, true or false, on or off, high or low, good or bad One bit.
Chapter 8_1 Bits and the "Why" of Bytes: Representing Information Digitally.
Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science, C++ Version, Fourth Edition.
Data Representation in Computers
Chapter 7 Representing Information Digitally. Learning Objectives Explain the link between patterns, symbols, and information Determine possible PandA.
Chapter 8 Bits and the "Why" of Bytes: Representing Information Digitally.
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
COMPUTER FUNDAMENTALS David Samuel Bhatti
CHARACTERS Data Representation. Using binary to represent characters Computers can only process binary numbers (1’s and 0’s) so a system was developed.
Introduction to Computing Using Python Chapter 6  Encoding of String Characters  Randomness and Random Sampling.
©Brooks/Cole, 2003 Chapter 2 Data Representation.
Chapter 2 Data Representation. Define data types. Visualize how data are stored inside a computer. Understand the differences between text, numbers, images,
Representing text Each of different symbol on the text (alphabet letter) is assigned a unique bit patterns the text is then representing as.
Binary Numbers and ASCII and EDCDIC Mrs. Cueni. Data Representation  Human speech is analog because it uses continuous signals (waves) that vary in strength.
Lawrence Snyder University of Washington, Seattle © Lawrence Snyder 2004 How we represent bits, numbers, letters?
Digital Information  digits are symbols chapter 8 BITS & THE “WHY” OF BYTES.
Chapter 8 Fluency with Information Technology 4 th edition by Lawrence Snyder (slides by Deborah Woodall : 1.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Representing Information Digitally Bits and the “Why” of Bytes lawrence snyder.
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.
Globalisation & Computer systems Week 5/6 Character representation ACII and code pages UNICODE.
Data Representation, Number Systems and Base Conversions
DATA REPRESENTATION CHAPTER DATA TYPES Different types of data (Fig. 2.1) The computer industry uses the term “MULTIMEDIA” to define information.
The Information School of the University of Washington Oct 13fit digital1 Digital Representation INFO/CSE 100, Fall 2006 Fluency in Information Technology.
Learning Objectives Explain the link between patterns, symbols, and information Determine possible PandA encodings using a physical phenomenon Encode.
Data Representation.
M204 - Data Representation
Character representation in the computers Home Assignment 1 Assigned. Deadline 2016 January 24th, Sunday.
Computers: Information Technology in Perspective By Long and Long Copyright 2002 Prentice Hall, Inc. Encoding J. Holvikivi 2012.
Chapter 7 Representing Information Digitally. Learning Objectives Explain the link between patterns, symbols, and information Determine possible PandA.
Some basic concepts underlying computer archi­tecture
Binary Representation in Text
Binary Representation in Text
Chapter 8 & 11: Representing Information Digitally
Machine level representation of data Character representation
Chapter 3 Data Representation Text Characters
Digitizing Discrete Information
Binary Numbers and ASCII and EDCDIC
Chapter 3 Data Storage.
Bits and the "Why" of Bytes: Representing Information Digitally
Communicating in the Blink of an Eye
Chapter 2 – Computer hardware
Representing Information as bit patterns
Data Encoding Characters.
TOPICS Information Representation Characters and Images
Chapter 1 Data Storage.
Ch2: Data Representation
Digital Representation
Presenting information as bit patterns
INFO/CSE 100, Spring 2005 Fluency in Information Technology
Chapter 2 Data Representation.
How Computers Store Data
Announcements SGID Feedback! Thank you!! Readings:
Learning Intention I will learn how computers store text.
Digital Representation of Data
ASCII and Unicode.
Presentation transcript:

The Information School of the University of Washington 15-Oct-2004cse digital1 Digital Representation INFO/CSE 100, Spring 2005 Fluency in Information Technology

The Information School of the University of Washington 15-Oct-2004cse digital2 Readings and References Reading »Fluency with Information Technology Chapter 8, Bits and the "Why" of Bytes

The Information School of the University of Washington 15-Oct-2004cse digital3 Info Representation Digitization: representing information by any fixed set of symbols »decide how many different items of information you want to represent Tic Tac Toe: 2 items - player 1 or player 2 »decide how many "digits" or positions you want to use Tic Tac Toe: 1 position - a board square »decide on a set of symbols player 1:  player 2: 

The Information School of the University of Washington 15-Oct-2004cse digital4 Are two symbols enough?     We can represent each player's move this way, but what about representing the whole game?

The Information School of the University of Washington 15-Oct-2004cse digital5 Empty position:           Now we can represent this game as one 9-digit length string:          How many possible game states are there? »3  3  3  3  3  3  3  3  3 = 3 9 = use this set of symbols empty cell:  player 1:  player 2: 

The Information School of the University of Washington 15-Oct-2004cse digital6 Another encoding Now we can represent this game as one 9-digit number: How many possible game states are there? »3  3  3  3  3  3  3  3  3 = 3 9 = use a different set of symbols empty cell:0 player 1:1 player 2:2

The Information School of the University of Washington 15-Oct-2004cse digital7 Info in the Physical World Physical world: »The most fundamental representation of information is presence/absence of a phenomenon matter, light, magnetism, flow, charge, … detect: “Is the phenomenon present?” set: make phenomenon present or absent Any controllable phenomenon works: define it right The PandA representation

The Information School of the University of Washington 15-Oct-2004cse digital8 Info in the Logical World Logical World: »Information, reasoning, computation are formulated by true/false and logic All men are mortal Aristotle is a man Aristotle is mortal True and false can be the patterns for encoding information 0010

The Information School of the University of Washington 15-Oct-2004cse digital9 Connect Physical/Logical The power of IT comes from the fact that physical and logical worlds can be connected Present represents true / Absent represents false -- or maybe vice versa -- Pavement Memory false true false false false true true false true false true false false false

The Information School of the University of Washington 15-Oct-2004cse digital10 Bits PandA is a binary representation because it uses 2 patterns The word "bit" »is a contraction for “binary digit” »represents 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

The Information School of the University of Washington 15-Oct-2004cse digital11 Possible Interpretations of Bit Patterns

The Information School of the University of Washington 15-Oct-2004cse digital12 Assigning Symbols for Characters 26 uppercase and 26 lowercase letters 10 digits 20 basic punctuation characters = 95 distinct characters Representing this many characters in binary takes 7 bits! 2 6 (6 bits) gives 64 symbols 2 7 (7 bits) gives 128 symbols 7-bit code for characters is ASCII (American Standard Code for Information Interchange)

The Information School of the University of Washington 15-Oct-2004cse digital13 8-bit ASCII

The Information School of the University of Washington 15-Oct-2004cse digital14 Bytes A byte is eight bits treated as a unit »Adopted by IBM in 1960s »A standard measure until very recently »Bytes encode the Latin alphabet using ASCII -- the American Standard Code for Information Interchange How many bytes?!?

The Information School of the University of Washington 15-Oct-2004cse digital15 Unicode Although 8-bit ASCII is widely used, there is a problem!!! »Doesn’t can’t support more than 256 characters »This eliminates more than half of the world’s language from the character set Unicode is a 16-bit representation »Supports 65,536 symbols »Can handle all languages

The Information School of the University of Washington 15-Oct-2004cse digital16 Escape Codes Escape codes solve the problem of creating more symbols Put one symbol aside to be the esc symbol. Add esc symbol in front of another to create a new symbol »Ctrl-N HTML uses 7-bit ASCII when transmitting data over the web »HTML uses two special characters symbols »What happens if you want those symbols to appear in the content? < >

The Information School of the University of Washington 15-Oct-2004cse digital17 Hexadecimal Representation Computers can very fluently read the binary representations » Hex digits (base-16) numbers are used instead »0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F »Easily represent 4-bit sequences » = 2BAD » = 1B40 Examples of hex in use: HTML color codes »red = #FF0000

The Information School of the University of Washington 15-Oct-2004cse digital18 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

The Information School of the University of Washington 15-Oct-2004cse digital19 Summary IT joins physical & logical domains so physical devices do our logical work »Symbols represent things 1-to-1 »Create symbols by grouping patterns »PandA representation is fundamental presence and absence »Bit, a place where 2 patterns set/detect »ASCII is a byte encoding of Latin alphabet »In addition to content, encode structure