Digital Representation of Data

Slides:



Advertisements
Similar presentations
Number Systems and Codes
Advertisements

Information Representation
Review of HTML Ch. 1.
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.
Lecturer: Omid Jafarinezhad Sharif University of Technology Department of Computer Engineering 1 Fundamental of Programming (C) Lecture 2 Number Systems.
Chapter 8_2 Bits and the "Why" of Bytes: Representing Information Digitally.
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.
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 Fluency Binary Systems. Humans Decimal Numbers (base 10) Decimal Numbers (base 10) Sign-Magnitude (-324) Sign-Magnitude (-324) Decimal Fractions.
Hexadecimal and ASCII Lesson Objective: Understand the purpose of ASCII and how to use it. Lesson Outcome: Convert between Hexadecimal and ASCII Convert.
©Brooks/Cole, 2003 Chapter 2 Data Representation.
(2.1) Fundamentals  Terms for magnitudes – logarithms and logarithmic graphs  Digital representations – Binary numbers – Text – Analog information 
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.
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.
10-Sep Fall 2001: copyright ©T. Pearce, D. Hutchinson, L. Marshall Sept Representing Information in Computers:  numbers: counting numbers,
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.
CS 111 – Sept. 1 Intro to data representation Binary numbers –Convert binary  decimal –Convert decimal  binary Text –ASCII and Unicode Commitment: –For.
Agenda Character representation Numerical Conversions ASCII EBCDIC
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.
Communicationcommunication Created by- Upendra Sharma.
HNC COMPUTING - COMPUTER PLATFORMS 1 Micro Teach Binary.
Chapter 1 Representing Data in a Computer. 1.1 Binary and Hexadecimal Numbers.
The Hexadecimal System is base 16. It is a shorthand method for representing the 8-bit bytes that are stored in the computer system. This system was chosen.
Understanding Computers
Base 16 (hexadecimal) Uses the decimal digits and the first letters of the alphabet to encode 4 binary bits (16=2 4 ) abcdef or ABCDEF.
Understanding Binary Understanding Computers. Understanding Computers L3 – Understanding Binary Learning Objectives All will Understand why all data is.
1.4 Representation of data in computer systems Character.
3.1 Denary, Binary and Hexadecimal Number Systems We use the denary (base 10) number system in our daily life for counting and calculation. Computers use.
Chapter 7 Representing Information Digitally. Learning Objectives Explain the link between patterns, symbols, and information Determine possible PandA.
Number Systems & Binary Arithmetic
Some basic concepts underlying computer archi­tecture
Binary Representation in Text
Binary Representation in Text
Understanding binary Understanding Computers.
Chapter 8 & 11: Representing Information Digitally
Number Systems and Codes
Chapter 3 Data Representation Text Characters
Digitizing Discrete Information
Binary Numbers and ASCII and EDCDIC
Number Representation
Unit 18: Computational Thinking
3.1 Denary, Binary and Hexadecimal Number Systems
Data Transfer ASCII FILES.
Digital Electronics Jess 2008.
Bits and the "Why" of Bytes: Representing Information Digitally
Chapter 3 Data Representation
Digital Representation
Presenting information as bit patterns
COMS 161 Introduction to Computing
Number Systems Lecture 2.
COMS 161 Introduction to Computing
Chapter 3 - Binary Numbering System
ASCII and Unicode.
Presentation transcript:

Digital Representation of Data 9/24/2019

Learning Objective Binary number system {0,1} Decimal binary conversion Hexadecimal representation ASCII code for information representation Other digital encoding: UPC product code to support e-commerce 9/24/2019

Fundamental Information Representation Logic is the foundation of reasoning It is also the foundation of computing The physical world can implement the logical world by associating “true” with the presence of a phenomenon and “false” with its absence In a digital computer we represent true by “1” and false by “0” (positive logic) This gives rise to binary digit or bit 8 bits make a smallest addressable unit in the computer memory called byte

Number conversion We think in decimal and computers think in binary Binary to decimal and decimal conversion is an important process Lets look at some examples of how to do this? Lets convert (84)10 to binary Lets convert (110001)10 to decimal 9/24/2019

Hex Explained Hex digits, short for hexadecimal digits, are base-16 numbers A bit sequence might be given in 0’s and 1’s: 1111111110011000111000101010 Writing so many 0’s and 1’s is tedious and error prone There needed to be a better way to write bit sequences…hexadecimal digits

The 16 Hex Digits The digits of the hexadecimal numbering system are 0, 1, ... , 9, A, B, C, D, E, F Because there are 16 digits (hexits), they can be represented perfectly by the 16 symbols of 4-bit sequences: The bit sequence 0000 is hex 0 Bit sequence 0001 is hex 1 Bit sequence 1111, is hex F

Hex to Bits and Back Again Because each hex digit corresponds to a 4-bit sequence, easily translate between hex and binary 0010 1011 1010 1101 2 B A D F A B 4 1111 1010 1011 0100

Hex Explained Hex digits, short for hexadecimal digits, are base-16 numbers A bit sequence might be given in 0’s and 1’s: 1111111110011000111000101010 Writing so many 0’s and 1’s is tedious and error prone There needed to be a better way to write bit sequences…hexadecimal digits

The 16 Hex Digits The digits of the hexadecimal numbering system are 0, 1, ... , 9, A, B, C, D, E, F Because there are 16 digits (hexits), they can be represented perfectly by the 16 symbols of 4-bit sequences: The bit sequence 0000 is hex 0 Bit sequence 0001 is hex 1 Bit sequence 1111, is hex F

Hex to Bits and Back Again Because each hex digit corresponds to a 4-bit sequence, easily translate between hex and binary 0010 1011 1010 1101 2 B A D F A B 4 1111 1010 1011 0100

Assigning Symbols We need to represent: 26 uppercase, 26 lowercase letters, 10 numerals, 20 punctuation characters, 10 useful arithmetic characters, 3 other characters (new line, tab, and backspace) 95 symbols…enough for English

Assigning Symbols To represent 95 distinct symbols, we need 7 bits 6 bits gives only 26 = 64 symbols 7 bits give 27 = 128 symbols 128 symbols is ample for the 95 different characters needed for English characters Some additional characters must also be represented

Assigning Symbols ASCII stands for American Standard Code for Information Interchange ASCII is a widely used 7-bit (27) code The advantages of a “standard” are many: Computer parts built by different manufacturers can be connected Programs can create data and store it so that other programs can process it later, and so forth

NATO Broadcast Alphabet The code for the letters used in radio communication is purposely inefficient The code is distinctive when spoken amid noise The alphabet encodes letters as words Words are the symbols “Mike” and “November” replace “em” and “en” The longer encoding improves the chance that letters will be recognized Digits keep their usual names, except nine, which is known as niner

NATO Broadcast Alphabet

Bar Codes Universal Product Codes (UPC) also use more than the minimum number of bits to encode information In the UPC-A encoding, 7 bits are used to encode the digits 0 – 9

Bar Codes UPC encodes the manufacturer (left side) and the product (right side) Different bit combinations are used for each side One side is the complement of the other side The bit patterns were chosen to appear as different as possible from each other

Summary We studied binary number system that is the encoding used in modern digital system We also explored ASCII standard for representing character information UPC codes used for identifying codes to facilitate e-commerce. Some of the information here is adapted from the Fluency text. 9/24/2019