Chapter 8 & 11: Representing Information Digitally

Slides:



Advertisements
Similar presentations
Review of HTML Ch. 1.
Advertisements

The Binary Numbering Systems
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.
Connecting with Computer Science, 2e
Introduction to Programming with Java, for Beginners
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 8_1 Bits and the "Why" of Bytes: Representing Information Digitally.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Representing Information Digitally Bits and the “Why” of Bytes lawrence snyder.
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.
Connecting with Computer Science 2 Objectives Learn why numbering systems are important to understand Refresh your knowledge of powers of numbers Learn.
©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,
BR 8/99 Digital Devices Integrated Circuits that operate on Digital Data are in 95% of every electrical powered device in the U.S. The theory of operation.
Binary Numbers and ASCII and EDCDIC Mrs. Cueni. Data Representation  Human speech is analog because it uses continuous signals (waves) that vary in strength.
Computers Organization & Assembly Language
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.
HOW COMPUTERS MANIPULATE DATA Chapter 1 Coming up: Analog vs. Digital.
What is a computer? A computer is a device that:
Logical Circuit Design Week 2,3: Fundamental Concepts in Computer Science, Binary Logic, Number Systems Mentor Hamiti, MSc Office: ,
CISC1100: Binary Numbers Fall 2014, Dr. Zhang 1. Numeral System 2  A way for expressing numbers, using symbols in a consistent manner.  " 11 " can be.
Quiz # 1 Chapters 1,2, & 3.
1 COMS 161 Introduction to Computing Title: The Digital Domain Date: September 6, 2004 Lecture Number: 6.
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.
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.
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 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
Chapter 7 Representing Information Digitally. Learning Objectives Explain the link between patterns, symbols, and information Determine possible PandA.
Text and Images Key Revision Points.
DATA REPRESENTATION - TEXT
Binary Representation in Text
Binary Representation in Text
Unit 2.6 Data Representation Lesson 2 ‒ Characters
3 – Boolean Logic and Logic Gates 4 – Binary Numbers
Chapter 3 Data Representation Text Characters
Digitizing Discrete Information
Binary Numbers and ASCII and EDCDIC
Chapter 3 Data Storage.
Digital Devices Integrated Circuits that operate on Digital Data are in 95% of every electrical powered device in the U.S. The theory of operation of these.
Bits and the "Why" of Bytes: Representing Information Digitally
Representing Nonnumeric Data
Ch2: Data Representation
Digital Representation
COMS 161 Introduction to Computing
INFO/CSE 100, Spring 2005 Fluency in Information Technology
Chapter 2 Data Representation.
COMS 161 Introduction to Computing
COMS 161 Introduction to Computing
Plan Attendance Files Posted on Campus Cruiser Homework Reminder
How Computers Store Data
Chapter 3 DataStorage Foundations of Computer Science ã Cengage Learning.
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 & 11: Representing Information Digitally TECH1010-02 Prof. Jeff Cheng

Representing Information with Symbols Digitize: Represent information with digits (normally base 10 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) An issue of representing information with symbols. Theoretically, we can use any set of symbol to represent information as long as they are easy to use and used consistently.

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

The Fundamental Representation of Information The most fundamental form of information is the presence or absence of a physical phenomenon 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; 1 or 0). There in no continuous gradation in between. Discrete-digital, continuous-analog

Analog vs. Digital Analog is continuous data/information Always can find an intermediate value between any two values (e.g. sound wave) Digital is discrete data/information Many distinct samples of data All data in a computer is represented discretely in binary (0’s and 1’s)

The sound wave represented by the sequence 0, 1.5, 2.0, 1.5, 2.0, 3.0, 4.0, 3.0, 0 after sampling

A Binary System Two patterns make a binary system Base 2 (0 or 1) The basic binary unit is known as a "bit" (short for binary digit) 8 bits are grouped together to form a byte, the basic unit used to represent storage capacity We can give any names to these two patterns derived from one bit as long as we are consistent PandA (Presence and Absence can represent 1 and 0, respectively)

Combining Bit Patterns Since each bit can only represent two patterns, hence by combining more bits into sequences to create enough bit patterns to encode necessary information Binary (PandA) has 2 patterns, arranging them into n-length sequences, we can create 2n symbols

Decoding Binary Number 100101 Using bit pattern to represent values

Decimals => Binary To convert a decimal number d to a binary number is to find the binary digits.. such that These numbers can be found by successively dividing d by 2 until the quotient is 0. The remainders are For example, the decimal number 123 is 1111011 in binary. The conversion is conducted as follows:

Bits in Computer Memory Memory is arranged inside a computer in a very long sequence of bits (places where a physical phenomenon can be set and detected) Analogy: Sidewalk Memory Each sidewalk square represents a memory slot (bit), and stones represent the presence or absence If a stone is on the square, the value is 1, if not the value is 0 In real memory, information stored in each bit can be represented as a + or – electric static charge

The 16 Hex Digits 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F A = 10, B = 11, ... , F = 15 Sixteen values can be represented perfectly by 4-bit sequences (24 = 16) Changing hex digits to bits and back again: Given a sequence of bits, group them in 4's and write the corresponding hex digit 0101 1100 5 C Given hex, write the associated group of 4 bits

Hex (0-9,A-F) Decimal Hex Binary 0 0 0000 1 1 0001 2 2 0010 3 3 0011 0 0 0000 1 1 0001 2 2 0010 3 3 0011 4 4 0100 5 5 0101 6 6 0100 7 7 0111 8 8 1000 9 9 1001 10 A 1010 11 B 1011 12 C 1100 13 D 1101 14 E 1110 15 F 1111 Here we can see the different number of digits required to represent the same information using different representation systems

Hex Explained Recall in Chapter 4, we specified custom colors in HTML using hex digits e.g., <font color ="#FF8E2A"> Hex is short for hexadecimal, base 16 Why use hex? Writing the sequence of bits is long, tedious, and error-prone

Digitizing Information Early binary representation—1 and 0—encoded numbers and keyboard characters Now representation for sound, video, and other types of information are also important

Digitizing Sound

Representing Images Bit map techniques Pixel: short for “picture element” Spectrum of colors can be represented by mixing primary colors (Red, Green, Blue) in different proportion (e.g. purple can be represented as 100 parts of red, 0 part green and 100 parts of blue).

Digitizing Text For encoding text, what symbols should be included? We want to keep the list small enough to use fewer bits, but we don't want to leave out critical characters

Assigning Symbols 26 uppercase and 26 lowercase Roman letters, 10 Arabic numerals, 10 arithmetic characters, 20 punctuation characters (including space), and 3 non-printable characters (new line, tab, backspace) = 95 characters, enough to represent English For 95 symbols, we need 7-bit sequences 26 = 64 27 = 128 A standard 7-bit code is ASCII(American Standard Code for Information Interchange)

ASCII Character Set

Extended ASCII: An 8-bit Code By the mid-1960's, it became clear that 7-bit ASCII was not enough to represent text from languages other than English IBM extended ASCII to 8 bits (256 symbols) Called "Extended ASCII," the first half is original ASCII with a 0 added at the beginning of each group of bits Handles most Western languages and additional useful symbols

Hexadecimal Extended ASCII Character Set

ASCII Coding of Phone Numbers How would a computer represent in its memory, the phone number 888 555 1212? Encode each digit with its ASCII byte

Unicode Several languages around the world have more than 256 individual characters Unicode uses 16 bits; 216 = 65536 characters 1st 7 bits (128 chars) are ASCII chars Different locales – different characters beyond 1st 7 bits

Beyond Text Extended ASCII encodes letters and characters well, but most documents contain more than just text. Format information like font, font size, justification

Document Description Using Metadata Metadata (data describing data) describing, but not limited to, formatting information is represented using tags, as in HTML Need for encoding document structural information, for formatting information etc.

Structure Tags Special set of tags was developed to specify structure for Oxford English Dictionary <hw> means headword, the word being defined Other tags label pronunciation <pr>, phonetic notation <ph>, parts of speech <ps> The tags do not print. They are there only to specify structure so the computer knows what part of the dictionary it is looking at How can we increase our chance of finding just Google’s home page in addition to specifying the keyword “google”?

Searching HTML Document Searching for HTML documents focused on Thai cuisine. How can we make the search more specific so that the search result does not just return any document that contains the phrase “Thai cuisine”?

Encoding Bits on a CD-ROM

Encoding Bits on a CD-ROM