Digital Information. INFO/CSE 100, Spring 2006 Fluency in Information Technology.

Similar documents
Data Representation. "There are 10 kinds of people in the world, those who understand binary numbers, and those who don't."

Digitizing Color. Place Value in a Decimal Number. Place Value in a Binary Number. Chapter 11: Light, Sound, Magic: Representing Multimedia Digitally

5/17/2009. Digitizing Color. Place Value in a Binary Number. Place Value in a Decimal Number. Place Value in a Binary Number

CHAPTER 2 - DIGITAL DATA REPRESENTATION AND NUMBERING SYSTEMS

The worlds we live in. The worlds we live in

Unit 4.4 Representing Images

Lecture 2: An Introduction to Colour Models

CS Lecture 10:

Lecture 2: Data Representation

Fundamentals of Multimedia

Information representation

Chapter 8. Representing Multimedia Digitally

RGB COLORS. Connecting with Computer Science cs.ubc.ca/~hoos/cpsc101

Unit 1.1: Information representation

Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates

Adding some light to computing. Lawrence Snyder University of Washington, Seattle

Byte = More common: 8 bits = 1 byte Abbreviation:

SE311: Design of Digital Systems Lecture 1: Introduction to Digital Systems

EE 109 Midterm Review

Unit 24: Controlling Systems Using IT

Huffman Coding For Digital Photography

Bitmap Image Formats

Data Representation 1 am/pm Time allowed: 22 minutes

Multimedia. Graphics and Image Data Representations (Part 2)

The worlds we live in. The worlds we live in

*Which code? Images, Sound, Video. Computer Graphics Vocabulary

HUFFMAN CODING. Catherine Bénéteau and Patrick J. Van Fleet. SACNAS 2009 Mini Course. University of South Florida and University of St.

Chapter 1: Digital logic

DOWNLOAD OR READ : SUDOKU LARGE PRINT PUZZLE BOOK FOR ADULTS 200 MEDIUM PUZZLES PUZZLE BOOKS PLUS PDF EBOOK EPUB MOBI

Section 4.3. Other Bases. Copyright 2013, 2010, 2007, Pearson, Education, Inc.

Chapter Two. Fundamentals of Data and Signals. Data Communications and Computer Networks: A Business User's Approach Seventh Edition

Chapter 3 Graphics and Image Data Representations

2. By convention, the minimum and maximum values of analog data and signals are presented as voltages.

my bank account number and sort code the bank account number and sort code for the cheque paid in the amount of the cheque.

Omni-ID Sato CL4NX Guide

Digital Communication Systems ECS 452

= (2 3 ) = c LAMC Beginners Circle September 29, Oleg Gleizer. Warm-up

Number system: the system used to count discrete units is called number. Decimal system: the number system that contains 10 distinguished

Indexed Color. A browser may support only a certain number of specific colors, creating a palette from which to choose

Serial Control Hardware (RS-485)

Chapter 2: Your Boe-Bot's Servo Motors

Coding for Efficiency

CS302 Digital Logic Design Solved Objective Midterm Papers For Preparation of Midterm Exam

CS1800 Discrete Structures Fall 2016 Profs. Aslam, Gold, Ossowski, Pavlu, & Sprague 7 November, CS1800 Discrete Structures Midterm Version C

Chapter 2: Fundamentals of Data and Signals

Lecture 1: image display and representation

Digital Applications (CETT 1415) Credit: 4 semester credit hours (3 hours lecture, 4 hours lab) Prerequisite: CETT 1403 & CETT 1405

Introduction to Color Theory

B.Digital graphics. Color Models. Image Data. RGB (the additive color model) CYMK (the subtractive color model)

INTERNATIONAL TELEGRAPH ALPHABET

1. The decimal number 62 is represented in hexadecimal (base 16) and binary (base 2) respectively as

Fundamentals of Data and Signals

SEVENTH EDITION and EXPANDED SEVENTH EDITION

An Overview of Color Management

Lecture 2. Digital Basics

3.1 Graphics/Image age Data Types. 3.2 Popular File Formats

Wednesday, February 1, 2017

CHAPTER 1 INTRODUCTION

BCD Adder. Lecture 21 1

1 Li & Drew c Prentice Hall Li & Drew c Prentice Hall 2003

CS101 Lecture 12: Digital Images. What You ll Learn Today

F4 04DAS 1 4-Channel Isolated 4 20mA Output

Introduction. Reading: Chapter 1. Courtesy of Dr. Dansereau, Dr. Brown, Dr. Vranesic, Dr. Harris, and Dr. Choi.

CS101 Lecture 19: Digital Images. John Magee 18 July 2013 Some material copyright Jones and Bartlett. Overview/Questions

CELIA SCHAHCZENSKI. FE Exam Review Computers Oct. 18, 2018

ONYX White Paper DESIGNING WITH WHITE & SPECIALTY INK

Lab 5. Binary Counter

Error-Correcting Codes

F3 16AD 16-Channel Analog Input

Indiana K-12 Computer Science Standards

Lab 6. Binary Counter

QUICKSTART COURSE - MODULE 7 PART 3

Sistemas de Representação Digital em Design

Signal Paths from Analog to Digital

BEST PRACTICES FOR SCANNING DOCUMENTS. By Frank Harrell

DESIGNING AND PRINTING POSTERS AT GIOS INFORMATICS LAB. Cindy D. Zisner Technology Support Analyst

Designing with White and Specialty Ink

Digital Imaging Rochester Institute of Technology

How is Information Stored

DI-1100 USB Data Acquisition (DAQ) System Communication Protocol

MSI Design Examples. Designing a circuit that adds three 4-bit numbers

IMAGE PROCESSING: POINT PROCESSES

6.004 Computation Structures Spring 2009

QueeRomance Ink Author Instructions

Multimedia-Systems: Image & Graphics

F3 08AD 1 8-Channel Analog Input

EE40 Lecture 35. Prof. Chang-Hasnain. 12/5/07 Reading: Ch 7, Supplementary Reader

Digital Applications (CETT 1415) Credit: 4 semester credit hours (3 hours lecture, 4 hours lab) Prerequisite: CETT 1403 & CETT 1405

5: SOUND WAVES IN TUBES AND RESONANCES INTRODUCTION

A PPENDIX Q A LPHABET T HE I NTERNATIONAL R EFERENCE. William Stallings Copyright 2010

Nature Journal. Nature in the Classroom. Slater Museum of Natural History University of Puget Sound Tacoma, Washington

Unit 1 Digital Content

Advanced Digital Signal Processing Part 2: Digital Processing of Continuous-Time Signals

School of Digital Media Arts Photography GM300BB

CGT 511. Image. Image. Digital Image. 2D intensity light function z=f(x,y) defined over a square 0 x,y 1. the value of z can be:

Learning Some Simple Plotting Features of R 15

8.5 X 11 PRINT-IT-YOURSELF DESIGN JOURNAL VARIOUS SIZES OF GRAPH PAPER FOR ALL YOUR STITCH PEOPLE DESIGN NEEDS!

11 Counters and Oscillators

F4 16DA 2 16-Channel Analog Voltage Output

Need Analog Output from the Stamp? Dial it in with a Digital Potentiometer Using the DS1267 potentiometer as a versatile digital-to-analog converter

Transcription:

Digital Information INFO/CSE, Spring 26 Fluency in Information Technology http://www.cs.washington.edu/ 5/8/6 fit-9-more-digital 26 University of Washington

Reading Readings and References» Fluency with Information Technology Chapter, Representing Multimedia Digitally Wikipedia - The Free Encyclopedia» Arabic numerals, ASCII http://en.wikipedia.org/wiki/arabic_numerals http://en.wikipedia.org/wiki/ascii Cyrillic Text http://www.dimka.com/ru/cyrillic/ 5/8/6 fit-9-more-digital 26 University of Washington 2

Info Representation Adult humans have 32 teeth» sometimes a tooth or two is missing! How can we represent a set of teeth?» How many different items of information? 2 items - tooth or no tooth» How many "digits" or positions to use? 32 positions - one per tooth socket» Choose a set of symbols no tooth: tooth: 5/8/6 fit-9-more-digital 26 University of Washington 3

What's your tooth number? incisors canines pre-molars molars no teeth no molars How many possible combinations? 2 2 2 2... 2 = 2 32 4 Billion 5/8/6 fit-9-more-digital 26 University of Washington 4

Info Representation Color monitors combine light from Red, Green, and Blue phosphors to show us colors How can we represent a particular color?» How many different items of information? 256 items - distinguish 256 levels of brightness» How many "digits" or positions to use? 3 positions - one Red, one Green, one Blue» Choose a set of symbols brightness level represented by the numbers to 255 one pixel

What is the pixel's color? red green blue 255 255 2 28 28 28 How many possible combinations? 256 256 256 = 256 3 6 Million 6 M colors is often called "True Color" 5/8/6 fit-9-more-digital 26 University of Washington 6

How can we store numbers? We want to store numbers» to 255 for color brightness» to 4B for tooth configuration» to 255 for ASCII character codes What do we have available in memory?» Binary digits or on or off clockwise or counter-clockwise 5/8/6 fit-9-more-digital 26 University of Washington 7

The hardware is binary and are the only symbols the computer can actually store directly in memory» a single bit is either off or on How many numbers can we represent with and?» How many different items of information? 2 items - off or on» How many "digits" or positions to use? let's think about that on the next slide» Choose a set of symbols already chosen: and 5/8/6 fit-9-more-digital 26 University of Washington 8

How many positions should we use? It depends: how many numbers do we need? one position two numbers two positions four numbers three positions eight numbers 5/8/6 fit-9-more-digital 26 University of Washington 9

The sky's the limit We can get as many numbers as we need by allocating enough positions» each additional position means that we get twice as many values because we can represent two numbers in each position» these are base 2 or binary numbers each position can represent two different values How many different numbers can we represent in base 2 using 4 positions?... 5/8/6 fit-9-more-digital 26 University of Washington

binary base 2 How can we read binary numbers? Let's look at the equivalent decimal (ie, base ) numbers. decimal base binary base 2 decimal base 2 represents exactly the same quantity as 7 They are just different ways of representing the same number. 2 3 binary base 2 decimal base 2 3 4 5 6 7 5/8/6 fit-9-more-digital 26 University of Washington

2 7 = 28 What do the positions represent? 2 6 = 64 2 5 = 32 2 2 2 2 2 4 = 6 2 2 2 2 3 = 8 2 2 2 2 = 4 2 2 = 2 Each position represents one more multiplication by the base value. For binary numbers, the base value is 2, so each new column represents a multiplication by 2. 2 = What base decimal value is equivalent to the base 2 binary value 2 shown above? base base 2 5/8/6 fit-9-more-digital 26 University of Washington 2

2 7 = 28 _ 2 6 = 64 2 5 = 32 2 4 = 6 2 2 2 2 2 2 = = = = = 8 = 8 Some Examples 2 4 4 4 + 2 + 2 + = + = 9 2 3 = 8 2 2 = 4 2 = 2 2 = _ 6 = 7 base base 2 5/8/6 fit-9-more-digital 26 University of Washington 3

2 7 = 28 Converting from binary to decimal 2 6 = 64 2 5 = 32 2 2 2 2 2 4 = 6 2 2 2 2 3 = 8 2 2 2 2 = 4 2 2 = 2 Each position represents one more multiplication by the base value. For binary numbers, the base value is 2, so each new column represents a multiplication by 2. 2 = "28 + " 64 + " 32 +" 8 + " 4 +" 2 + " =38 "28 +" 8 +" 2 =38 base base 2 5/8/6 fit-9-more-digital 26 University of Washington 4

Use the base, Luke Each position represents one more multiplication by the base value» The base value can be 2 - binary numbers Two symbols: and Each column represents a multiplication by two» The base value can be - decimal numbers Ten symbols:,, 2, 3, 4, 5, 6, 7, 8, 9 Each column represents a multiplication by ten 3 = 2 = = = 3 8 base base! + 3! + 8! = 38 text figure imageis from Wikipedia

Base 6 Hexadecimal The base value can be 6 - hexadecimal numbers» Sixteen symbols:,, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F» Each column represents a multiplication by sixteen» Hex is easier to use than binary because the numbers are shorter even though they represent the same value 6 6 6 6 3 = 496 6 6 6 2 = 256 6 6 = 6 6 = 8 A base base 6 8! 6 +! = 38 5/8/6 fit-9-more-digital 26 University of Washington 6

5/8/6 fit-9-more-digital 26 University of Washington 7 The Information School of the University of Washington Four binary bits One hex digit binary base 2 hexdecimal base 6 2 3 4 5 6 7 binary base 2 hexdecimal base 6 8 9 A B C D E F decimal base 2 3 4 5 6 7 decimal base 8 9 2 3 4 5

Binary to Hex examples 8 2 7 A F 2 = 827AF 6 base 2 2 = 6 base 6 base 2 5/8/6 fit-9-more-digital 26 University of Washington 8

Whew! We are now official geeks... http://www.thinkgeek.com/tshirts/frustrations/5aa9/ 5/8/6 fit-9-more-digital 26 University of Washington 9

Recall: The hardware is binary How many numbers can we represent with and?» As many as we want, it just takes a little more space to get a bigger range So what can we represent with these numbers?» Anything that has a numeric value or can be associated with a numeric value» Number of people, index into a list, account balance,...» Alphabetic characters, punctuation marks, display tags» Any signal that can be converted into numeric values colors, sounds, water level, blood pressure, temperature» Computer instructions 5/8/6 fit-9-more-digital 26 University of Washington 2

Represent numbers How many bit positions to allocate?» Depends on the desired range» 8 bits to 255 or -28 to +27» 6 bits to 65535 or -32768 to +32767» 32 bits to 4294967296 or -2B to +2B 5/8/6 fit-9-more-digital 26 University of Washington 2

Represent Text - ASCII Assign a unique number to each character» 7-bit ASCII Range is to 27 giving 28 possible values There are 95 printable characters There are 33 control codes like tab and carriage return imageis from Wikipedia 5/8/6 fit-9-more-digital 26 University of Washington 22

ASCII text

Represent Text - Unicode The goal of Unicode is to provide the means to encode the text of every document people want to store in computers Unicode aims to provide a unique number for each letter, without regard to typographic variations used by printers Unicode encodes each character in a number» the number can be 7, 8, 6, or 32 bits long» 6-bit encoding is common today 5/8/6 fit-9-more-digital 26 University of Washington 24

Represent Text - Postscript Postscript is a page description language somewhat like HTML» The file is mostly text and can be looked at with a regular text editor» programs that know what it is can interpret the embedded commands» Programs and printers that understand Postscript format can display complex text and graphical images in a standard fashion 5/8/6 fit-9-more-digital 26 University of Washington 26

Represent Text - PDF PDF is another page description language based on Postscript The file is mostly text» can be looked at with a regular text editor» programs that know what it is can interpret the embedded commands» just like Postscript and HTML in that respect 5/8/6 fit-9-more-digital 26 University of Washington 28

Represent Color - Bit Map Numbers can represent anything we want Recall that we can represent colors with three values» Red, Green, Blue brightness values There are numerous formats for image files» All of them store some sort of numeric representation of the brightness of each color at each pixel of the image» commonly use to 255 range (or to FF 6 ) 5/8/6 fit-9-more-digital 26 University of Washington 3

What about "continuous" signals? Color and sound are natural quantities that don't come in nice discrete numeric quantities But we can make it so! 5/8/6 fit-9-more-digital 26 University of Washington 32

Digitized image contains color data 5/8/6 fit-9-more-digital 26 University of Washington 33

And much, much more!

Summary Bits can represent any information» Discrete information is directly encoded using binary» Continuous information is made discrete We can look at the bits in different ways» The format guides us in how to interpret it» Different interpretations let us work with the data in different ways 5/8/6 fit-9-more-digital 26 University of Washington 35