Too much information running through my brain.. We live in the information age. Knowledge comes from careful investigation of information. Information.

Slides:



Advertisements
Similar presentations
Information Representation
Advertisements

Technology ICT Option: Data Representation. Data Representation In our everyday lives, we communicate with each other using analogue data. This data takes.
The Binary Numbering Systems
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall 1.
Connecting with Computer Science, 2e
1 A Balanced Introduction to Computer Science, 2/E David Reed, Creighton University ©2008 Pearson Prentice Hall ISBN Chapter 12 Data.
Connecting with Computer Science 2 Objectives Learn why numbering systems are important to understand Refresh your knowledge of powers of numbers Learn.
Digital Images The digital representation of visual information.
©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,
Data vs. Information OUTPUTOUTPUT Information Data PROCESSPROCESS INPUTINPUT There are 10 types of people in this world those who read binary and those.
Computers and Scientific Thinking David Reed, Creighton University Data Representation 1.
TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach.
Lawrence Snyder University of Washington, Seattle © Lawrence Snyder 2004 Adding some light to computing ….
Representing Nonnumeric Data Everything is really a number.
Digital Media Dr. Jim Rowan ITEC Monday, August 27.
Chapter 11 Fluency with Information Technology 4 th edition by Lawrence Snyder (slides by Deborah Woodall : 1.
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 14 Introduction to Computer Graphics.
Foundations of Computer Science Computing …it is all about Data Representation, Storage, Processing, and Communication of Data 10/4/20151CS 112 – Foundations.
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.
Data Representation and Storage Lecture 5. Representations A number value can be represented in many ways: 5 Five V IIIII Cinq Hold up my hand.
Chapter 3 Representation. Key Concepts Digital vs Analog How many bits? Some standard representations Compression Methods 3-2.
© 1999 Rochester Institute of Technology Introduction to Digital Imaging.
Lecture 5. Topics Sec 1.4 Representing Information as Bit Patterns Representing Text Representing Text Representing Numeric Values Representing Numeric.
Logical Circuit Design Week 2,3: Fundamental Concepts in Computer Science, Binary Logic, Number Systems Mentor Hamiti, MSc Office: ,
Chapter 2 : Business Information Business Data Communications, 6e.
Still-image compression Moving-image compression and File types.
Agenda Last class: Memory, Digitizing Numbers Today: Digitizing: Text
Introduction to Digital Media. What is it? Digital media is what computers use to; Store, transmit, receive and manipulate data Raw data are numbers,
Quiz # 1 Chapters 1,2, & 3.
Lecture 7: Intro to Computer Graphics. Remember…… DIGITAL - Digital means discrete. DIGITAL - Digital means discrete. Digital representation is comprised.
Data Representation The storage of Text Numbers Graphics.
CS 111 – Sept. 3 More data representation Review hex notation Text –ASCII and Unicode Sound and images Commitment: –For Wednesday: Please read pp
DATA REPRESENTATION CHAPTER DATA TYPES Different types of data (Fig. 2.1) The computer industry uses the term “MULTIMEDIA” to define information.
Marwan Al-Namari 1 Digital Representations. Bits and Bytes Devices can only be in one of two states 0 or 1, yes or no, on or off, … Bit: a unit of data.
CSCI-100 Introduction to Computing Hardware Part II.
POWERPOINT PLUS 11/17/07 Class Notes. WHAT IS A PIXEL A pixel is a number that represents the intensity of light at a square spot in the picture. Pixels.
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.
Chapter 1 Background 1. In this lecture, you will find answers to these questions Computers store and transmit information using digital data. What exactly.
Computer Science I Storing data. Binary numbers. Classwork/homework: Catch up. Do analysis of image types.
COMP135/COMP535 Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 2 Lecture 2 – Digital Representations.
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,
TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach.
Chapter 3: Data Representation Chapter 3 Data Representation Page 17 Computers use bits to represent all types of data, including text, numerical values,
Information in Computers. Remember Computers Execute algorithms Need to be told what to do And to whom to do it.
Software Design and Development Storing Data Part 2 Text, sound and video Computing Science.
Lesson 6 Binary Understand what Binary Code means and apply this knowledge Understand how data is represented using bit systems and be able to change decimal.
Data Representation. In our everyday lives, we communicate with each other using analogue data. This data takes the form of: Sound Images Letters Numbers.
Fundamentals of Data Representation Yusung Kim
Computer Science: An Overview Eleventh Edition
Too much information running through my brain.
Chapter 8 & 11: Representing Information Digitally
Everything is a number Everything in a computer memory and on storages is a number. Number  Number Characters  Number by ASCII code Sounds  Number.
Binary Notation and Intro to Computer Graphics
Computer Science Higher
Introduction to Computers
Too much information running through my brain.
BITS & BYTES.
Representing Nonnumeric Data
To do … Web Exercise: Quiz-3, HW#2 Score: update
Representing Images 2.6 – Data Representation.
Ch2: Data Representation
The Building Blocks: Binary Numbers, Boolean Logic, and Gates
- orange white green - cyan - red - blue Example 1 24 bit RGB
Digital Representation
Chapter 2 Data Representation.
Visuals are analog signals...
Option: Data Representation
Binary CSCE 101.
- orange white green - cyan - red - blue Example 1 24 bit RGB
Presentation transcript:

Too much information running through my brain.

We live in the information age. Knowledge comes from careful investigation of information. Information is represented/encoded as data. – What information is represented by an abacus? How? – What information is represented on a DVD? How? – What information is encoded on a credit card? How? DATA: The quantities, characters, or symbols on which operations are performed by a computer.

How can a picture or a sound or a temperature reading become data? Data comes in two types: – Continuous: infinitely variable points – Discrete: finite number of points/choices

How long might it take a light bulb to burn out? What was your ACT score? How tall are you? How many books did you read this year? How much water did you drink this week? How many gen-ed courses have you taken at UW-L?

In electronics, signals are known as either – analog (meaning a continuous signal) – digital (meaning a discrete signal)

Information needs to be encoded in such a way as to be processed. – Electrical signals can be processed. – Even analog signals can be processed, but digital is simpler. In computers, there are two discrete (digital) signals: on and off. It's easy to tell if an electrical signal is on or off: – Electric fence – Electric socket – Light bulb

Bit: short for "binary digit". A bit is the representation used for the smallest (atomic) amount of computer data. – A bit is either ON or OFF. – You can think of a bit as an extremely small battery that can be quickly charged and discharged. When charged, the bit is ON. When discharged, the bit is OFF. This is essentially what a single transistor is. – Mathematically speaking, a bit is usually understood as the value 0 when OFF and the value 1 when ON. – Since there are only two values, a bit is known as a 'binary' digit. 0 1

What if you had two bits in a sequence. How many different patterns (sequences) could there be?

What if you had three bits in a sequence. How many different patterns (sequences) could there be?

What if you had four bits in a sequence. How many patterns could there be? What if you had N bits in a sequence. How many patterns could there be? With more bits you can store more information. – One more bit doubles the amount. # Bits# of Patterns N2N2N

One bit is too small to use as a measurement. – Nobody says: "I've got a 10 GigaBit IPod" Measures of data capacity are based on a byte. – 1 byte = 8 bits – 1 bytes can have 256 different patterns – 1 byte is big enough to represent many kinds of things PrefixSymbolBase 2Decimal KilobyteK2 10 1,024 MegabyteM2 20 1,048,576 GigabyteG2 30 ≈1,000,000,000 TerabyteT2 40 ≈1,000,000,000,000 PetabyteP2 50 ≈1,000,000,000,000,000

A string of bits can represent various things The length of a bit string controls the number of things that can be represented What is the shortest bit string for representing 100 different special symbols?

How much data capacity do you need to encode: – The complete works of William Shakespeare? – One 4 minute pop song (MP3)? – One digital picture (JPEG)? – One feature length movie (DVD)? – All of Wikipedia (As of Jan 2010)? – The entire U.S. Library of Congress (As of Apr 2011)?

All digital data is a sequence of bits. How can we represent an integer number as a sequence of bits? Consider the decimal number 515. – A sequence of digits – Digits are one of: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 – Meaning of a digit depends on position: power of 10 – 515 = 5× × ×10 0 Consider the binary number 101. – Binary uses a base-2 (or radix 10) system rather than base 10 – Digits are one of: 0, 1 – Meaning of a digit depends on position: power of 2 – 101 = 1× × ×2 0

= – 1× × × × × ×2 0 – 1×32 + 0×16 + 1×8 + 1×4 + 1×2 + 0×1 – – = – 1× × × × × ×2 0 – 1×32 + 1×16 + 0×8 + 0×4 + 0×2 + 1×1 – – 49

It's easy to get confused and not be sure of what base a number is written in. For example, is 111: – One hundred eleven? – Five? A subscript can be used to specify the base whenever it is unclear. – is equal to five – is equal to one hundred eleven.

What is the biggest number you can have with – Two bits? – Three bits? – Four bits? – Five bits? – N bits?

While we can represent an integer as a sequence of bits, is it possible to represent a real number such as 2.31 or 2.125? In base 10, the value means: – 2× × × ×10 -3 In base 2, the value means: – 1× × × ×2 -3 – 1×1 + 1×(1/2) + 0×(1/4) + 1×(1/8) – – 1.625

Consider the value 1/3. How many decimal digits does it take to accurately represent as a real number? – 1/3 = Consider the value 1/5. How many decimal digits does it take to accurately represent as a real number? How many binary digits? – 1/5 = – 1/5 = Since it requires a potentially infinite amount of bits to store a real number, computers can be imprecise.

Can text be represented as a sequence of binary digits (bits)? Text is a made of pictures (also known as symbols or characters). Each character can be associated with an integer number CharacterDecimalBinary A B C D E F ……… Z

The numbers associated with a character can obviously be stored About how many unique numbers are required for English text? (asked another way, how many unique characters did William Shakespeare ever use?) – One byte has enough capacity to store an English character. About how many unique numbers are required for Chinese text? – Two bytes is enough for most languages: 电脑

Most computers that are configured for English writers, use the ASCII table. This table associates numbers with English text.

How might a computer store a 'color'? What are the primary colors of pigment? – Cyan, magenta, yellow What are the primary colors of light? – Red, green, blue

RGB color model – Uses red, green, and blue as the primary colors. – Any color can be represented by combining different amounts of these three primaries. Consider a flashlight that has a slider that chooses the strength of light emitted. – Setting the slider to zero, the flashlight is turned completely off – Setting the slider to 255, the flashlight generates as much light as it is capable of generating. Consider three such flashlights – Each light emits purely red; green; or blue light. If all three flashlights are aimed at the same spot on a white wall any color can be projected onto the wall by adjusting the slider values on the three lights in different ways.

Could you encode an image as a sequence of bits? – Starting from the upper-left pixel, scan the image left-to-right, top-to-bottom – Record each pixel that you encounter. How many bits would be required for a – 100x100 image? – 1024x768 image? Most JPG files of 1024x768 are about 3-4 Meg. How?

There are many different ways to encode the same information. Some ways use more bits than others. Consider a black & white 8x8 image. – Use 0 for white and 1 for black – This is known as 'raw' or 'bitmap' format

Run length encoding is another way to encode images – A 'run' is the length of successive like-colored pixels – Store the lengths of these runs for each row, starting with white ,4,2 1,1,4,1,1 1,1,1,2,1,1,1 1,6,1 1,1,1,2,1,1,1 1,2,2,2,1 1,1,4,1,1 2,4,2 Raw Run Length Can you think of numbers in the Run Length code above that are not needed?

Consider another way to store images. 1, 5, 2 1, 1, 4, 1, 1 1, 5, 2 1, 1, 2, 1, 3 1, 1, 3, 1, 2 1, 4, 1, 1 8 a total of ____ numbers Raw pixels Run Length Encoding a total of _____ numbers compression - a way to represent data in more compact form

When data is compressed, information is encoded using fewer bits. – This speeds transmission – Reduces storage cost (smaller drives) – May increase processing (must un-compress to view/process) For pictures, there are two types: – Lossless: No information is lost – Lossy: Information may be lost