Chapter 8_1 Bits and the "Why" of Bytes: Representing Information Digitally.

Slides:



Advertisements
Similar presentations
© 2004, Robert K. Moniot Binary and Hex How to count like a computer.
Advertisements

Review of HTML Ch. 1.
1 Chapter 2 The Digital World. 2 Digital Data Representation.
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.
CIS 234: Using Data in Java Thanks to Dr. Ralph D. Westfall.
Introduction to Computers and Programming. Some definitions Algorithm: –A procedure for solving a problem –A sequence of discrete steps that defines such.
1. Discrete / Continuous Representations Of numbers – binary & decimal Bits Hexadecimal - 'Hex' Representing text Bits and Bytes.
Assembly Language for Intel-Based Computers, 4th Edition
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,
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Representing Information Digitally Bits and the “Why” of Bytes lawrence snyder.
Chapter 2 Data Types, Declarations, and Displays
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.
Introduction to Computers and Programming. Some definitions Algorithm: Algorithm: A procedure for solving a problem A procedure for solving a problem.
Binary and Decimal Numbers
Introduction to Information Technology
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
Number Systems & Logic Gates Day 1
Representing Information in Binary (Continued)
© Copyright 2012 by Pearson Education, Inc. All Rights Reserved. 1 Number Systems 0, 1 0, 1, 2, 3, 4, 5, 6, 7 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 0, 1, 2, 3,
Chapter 2 Data Representation. Define data types. Visualize how data are stored inside a computer. Understand the differences between text, numbers, images,
(2.1) Fundamentals  Terms for magnitudes – logarithms and logarithmic graphs  Digital representations – Binary numbers – Text – Analog information 
Programmable Logic Controllers
Copyright © 2012 Pearson Education, Inc. Chapter 2 Beginning Problem-Solving Concepts for the Computer Problem Solving and Programming Concepts 9 th Edition.
Click to edit Master title style Click to edit Master text styles –Second level Third level –Fourth level »Fifth level 1 Today’s Topics How information.
General Computer Science for Engineers CISC 106 Lecture 02 Dr. John Cavazos Computer and Information Sciences 09/03/2010.
Chapter 2 Computer Hardware
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.
Digital Information  digits are symbols chapter 8 BITS & THE “WHY” OF BYTES.
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.
HOW COMPUTERS MANIPULATE DATA Chapter 1 Coming up: Analog vs. Digital.
What is a computer? A computer is a device that:
Chapter 7—Objects and Memory The Art and Science of An Introduction to Computer Science ERIC S. ROBERTS Java Objects and Memory C H A P T E R 7 Yea, from.
The Hexadecimal Number System and Memory Addressing ISAT 121.
Chapter 1 Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
1 COMS 161 Introduction to Computing Title: The Digital Domain Date: September 6, 2004 Lecture Number: 6.
The Information School of the University of Washington Oct 13fit digital1 Digital Representation INFO/CSE 100, Fall 2006 Fluency in Information Technology.
Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
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.
Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
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,
Characters and Strings
Bits, Data types, and Operations: Chapter 2 COMP 2610 Dr. James Money COMP
Number Systems. The position of each digit in a weighted number system is assigned a weight based on the base or radix of the system. The radix of decimal.
Chapter 7 Representing Information Digitally. Learning Objectives Explain the link between patterns, symbols, and information Determine possible PandA.
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Chapter 8 & 11: Representing Information Digitally
Chapter 3 Data Representation Text Characters
Digitizing Discrete Information
Bits and the "Why" of Bytes: Representing Information Digitally
Chapter 1 Data Storage.
Digital Representation
Presenting information as bit patterns
INFO/CSE 100, Spring 2005 Fluency in Information Technology
Chapter 2 Data Representation.
COMS 161 Introduction to Computing
Data Representation and Organization
Data Representation Chapter 2 Computer HW (Von Neumann Model) Program
Chapter Four Data Representation in Computers By Bezawit E.
Digital Representation of Data
ASCII and Unicode.
Presentation transcript:

Chapter 8_1 Bits and the "Why" of Bytes: Representing Information Digitally

Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 8-2

Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 8-3 Digitizing Discrete Information Digitize: Represent information with digits (numerals 0 through 9) Limitation of Digits –Alternative Representation: Any set of symbols could represent phone number digits, as long as the keypad is labeled accordingly Symbols, Briefly –Digits have the advantage of having short names (easy to say) But computer professionals are shortening symbol names (exclamation point is pronounced "bang")

Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 8-4 Ordering Symbols Advantage of digits for encoding info is that items can be listed in numerical order To use other symbols, we need an ordering system (collating sequence) –Agreed order from smallest to largest value In choosing symbols for encoding, consider how symbols interact with things being encoded

Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 8-5 Encoding with Dice Consider a representation based on dice –Single die has six sides, and the patterns on the sides can be used for digital representation

Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 8-6 Encoding with Dice (cont'd) Consider representing the Roman alphabet with dice –26 letter, only 6 patterns on a die –We use multiple patterns to represent each letter –How many patterns are required? 2 dice can produce 36 pattern sequences (6*6) 3 dice can produce 216 (6*6*6) n dice can produce 6 n sequences

Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 8-7 Encoding with Dice (cont'd)

Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 8-8 Encoding with Dice (cont'd) Call each pattern produced by pairing two dice a symbol: –1 and 1 == A –1 and 2 == B –1 and 3 == C –1 and 4 == D –1 and 5 == E –1 and 6 == F –2 and 1 == G –etc.

Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 8-9 Encoding with Dice (cont'd)

Copyright © 2006 Pearson Addison-Wesley. All rights reserved Extending the Encoding 26 letters of the Roman alphabet are represented; 10 spaces are blank These spaces can be used for the Arabic numerals What is we need punctuation? We only have 36 available spaces in the two-dice system. How can we avoid going to a three-dice system?

Copyright © 2006 Pearson Addison-Wesley. All rights reserved The Escape: Creating More Symbols We can use the last two-dice symbol as "escape". It does not match any legal character, so it will never be needed for normal text digitization It indicates that the digitization is "escaping from the basic representation" and applying a secondary representation We could also use a "double escape" to enter a tertiary representation system

Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 8-12

Copyright © 2006 Pearson Addison-Wesley. All rights reserved The Fundamental Representation of Information The fundamental patters used in IT come when the physical world meets the logical world The most fundamental form of information is the presence or absence of a physical phenomenon In the logical world, the concepts or true and false are important –By associating true with the presence of a phenomenon and false with its absence, we use the physical world to implement the logical world, and produce information technology

Copyright © 2006 Pearson Addison-Wesley. All rights reserved The PandA Representation PandA is the mnemonic for "presence and absence" It is discrete (distinct or separable)—the phenomenon is present or it is not (true or false). There in no continuous gradation in between

Copyright © 2006 Pearson Addison-Wesley. All rights reserved A Binary System Two patterns—Present and Absent— make PandA a binary system We can give any names to these two patterns as long as we are consistent The PandA basic unit is known as a "bit" (short for binary digit)

Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 8-16

Copyright © 2006 Pearson Addison-Wesley. All rights reserved Bits in Computer Memory Memory is arranged inside a computer in a very long sequence of bits (places where a phenomenon can be set and detected) Analogy: Sidewalk Memory –Each sidewalk square represents a memory slot, and stones represent the presence or absence –If a stone is on the square, the value is 1, if not the value is 0

Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 8-18

Copyright © 2006 Pearson Addison-Wesley. All rights reserved Units of Data Measures the size or volume of data  BIT:Single binary digit, either a 1 or a 0  BYTE:A group of eight bits, a character  (Basic unit for measuring the size of the data)  KILOBYTE:2 10 or 1024 bytes  (not 1000 used in scientific notation for the prefix kilo)  MEGABYTE: 2 20 or 1,048,576 bytes  (not used in scientific notation for the prefix mega-)  WORD: the number of adjacent bits that are manipulated or stored as a unit in a particular computer system

Copyright © 2006 Pearson Addison-Wesley. All rights reserved Alternative PandA Encodings There are other ways to encode two states using physical phenomena –Use stones on all squares, but black stones for one state and white for the other –Use multiple stones of two colors per square, saying more black than white means 0 and more white than black means 1 –Stone in center for one state, off-center for the other –etc.

Copyright © 2006 Pearson Addison-Wesley. All rights reserved Combining Bit Patterns Since we only have two patterns, we must combine them into sequences to create enough symbols to encode necessary information PandA has p=2 patterns, arranging them into n-length sequences, we can create 2 n symbols

Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 8-22

Copyright © 2006 Pearson Addison-Wesley. All rights reserved Hex Explained Recall in Chapter 4, we specified custom colors in HTML using hex digits –e.g., –Hex is short for hexadecimal, base 16 Why use hex? Writing the sequence of bits is long, tedious, and error-prone

Copyright © 2006 Pearson Addison-Wesley. All rights reserved The 16 Hex Digits 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F Sixteen digits (or hexits) can be represented perfectly by the 16 symbols of 4-bit sequences Changing hex digits to bits and back again: –Given a sequence of bits, group them in 4's and write the corresponding hex digit –Given hex, write the associated group of 4 digits

Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 8-25

Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 8-26

Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 8-27