HONR101 Analytics in a Big Data World Monday, January 18, 2016 1.

Slides:



Advertisements
Similar presentations
Chapter 3 Data Representation
Advertisements

Information Representation
3.1 3 Data Storage Foundations of Computer Science  Cengage Learning.
Dale & Lewis Chapter 3 Data Representation. Representing color Similarly to how color is perceived in the human eye, color information is encoded in combinations.
Chapter 03 Data Representation
Connecting with Computer Science, 2e
09/17/06 Hofstra University – Overview of Computer Science, CSC005 1 Chapter 3 Data Representation.
Chapter Chapter Goals Distinguish between analog and digital information. Explain data compression and calculate compression ratios.
Audio & Video Representation CS105. Data Representation Types of data: – Numbers – Text – Images – Audio & Video.
1 A Balanced Introduction to Computer Science, 2/E David Reed, Creighton University ©2008 Pearson Prentice Hall ISBN Chapter 12 Data.
Chapter 3 Data Representation. 2 Data and Computers Computers are multimedia devices, dealing with many categories of information. Computers store, present,
Digital Data Patrice Koehl Computer Science UC Davis.
CS110: Computers and the Internet Color and Image Representation.
Chapter 3 Data Representation. 2 Data and Computers Computers are multimedia devices, dealing with many categories of information. Computers store, present,
Connecting with Computer Science 2 Objectives Learn why numbering systems are important to understand Refresh your knowledge of powers of numbers Learn.
CS105 INTRODUCTION TO COMPUTER CONCEPTS DATA REPRESENTATION Instructor: Cuong (Charlie) Pham.
Chapter 3 Data Representation.
Chapter 2 Data Representation. Define data types. Visualize how data are stored inside a computer. Understand the differences between text, numbers, images,
CS 1308 Computer Literacy and the Internet. Creating Digital Pictures  A traditional photograph is an analog representation of an image.  Digitizing.
CPS120 Introduction to Computer Science Lecture 4
Chapter 3 The Information Layer: Data Representation.
ECE242 L30: Compression ECE 242 Data Structures Lecture 30 Data Compression.
Higher Computing Data Representation.
Color Names All standards-compliant browsers should handle these color names These color names can be used with the CSS properties of color and background-color.
CSCI-235 Micro-Computers in Science Hardware Part II.
Chapter 3 Data Representation.
Lecture 3 Data Representation
Computers and Scientific Thinking David Reed, Creighton University Data Representation 1.
Chapter 3 Data Representation (slides modified by Erin Chambers)
Computer Math CPS120: Data Representation. Representing Data The computer knows the type of data stored in a particular location from the context in which.
Chapter 11 Fluency with Information Technology 4 th edition by Lawrence Snyder (slides by Deborah Woodall : 1.
 Refers to sampling the gray/color level in the picture at MXN (M number of rows and N number of columns )array of points.  Once points are sampled,
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 14 Introduction to Computer Graphics.
Data Representation Int 2 Computing Unit 1 – Computer Systems St Kentigern’s Academy.
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.
Chapter 3 Data Representation. 2 Data and Computers Computers are multimedia devices, dealing with many categories of information. Computers store, present,
Chapter 3 Representation. Key Concepts Digital vs Analog How many bits? Some standard representations Compression Methods 3-2.
3-1 Data and Computers Computers are multimedia devices, dealing with a vast array of information categories. Computers store, present, and help us modify.
Data Representation The method of data representation in a computer system depends upon the type of data which is being used. Three types of data are considered.
Chapter 03 Data Representation. 2 Chapter Goals Distinguish between analog and digital information Explain data compression and calculate compression.
Common file formats  Lesson Objective: Understanding common file formats and their differences.  Learning Outcome:  Describe the type of files which.
Chapter 2 : Business Information Business Data Communications, 6e.
Marr CollegeHigher ComputingSlide 1 Higher Computing: COMPUTER SYSTEMS Part 1: Data Representation – 6 hours.
Quiz # 1 Chapters 1,2, & 3.
Chapter 1 Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
Data Representation The storage of Text Numbers Graphics.
Media Types Information Systems can contain the following types of media: Sound, graphics, video & text.
CSCI-100 Introduction to Computing Hardware Part II.
Chapter 1 Background 1. In this lecture, you will find answers to these questions Computers store and transmit information using digital data. What exactly.
Chapter 03 Data Representation. 2 Chapter Goals Distinguish between analog and digital information Explain data compression and calculate compression.
Chapter 03 Data Representation. 2 Chapter Goals Distinguish between analog and digital information Explain data compression and calculate compression.
Data Representation.
Chapter 1 Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
Chapter 03 Nell Dale & John Lewis. 3-2 Chapter Goals Distinguish between analog and digital information. Explain data compression and calculate compression.
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.
CC111 Lec#2 The System Unit The System Unit: Processing and Memory Lecture 2 Binary System.
Chapter 03 Data Representation.
Computer Science: An Overview Eleventh Edition
Data Representation.
Lecture 3: Data representation
Binary Representation in Audio and Images
3 Data Storage Foundations of Computer Science ã Cengage Learning.
CHAPTER 2 - DIGITAL DATA REPRESENTATION AND NUMBERING SYSTEMS
CHAPTER 2 - DIGITAL DATA REPRESENTATION AND NUMBERING SYSTEMS
Summer Term Year 10 Slides
CS105 Introduction to Computer Concepts Data Representation
Computer Systems – Unit 1
Chapter 2 Data Representation.
Presentation transcript:

HONR101 Analytics in a Big Data World Monday, January 18,

Binary 2 9 Decimal is base 10 and has 10 digits: 0,1,2,3,4,5,6,7,8,9 Binary is base 2 and has 2 digits: 0,1 For a number to exist in a given base, it can only contain the digits in that base, which range from 0 up to (but not including) the base. What bases can these numbers be in? 122, 198, 178, G1A4

Binary Numbers and Computers 3 Computers have storage units called binary digits or bits Low Voltage = 0 High Voltage = 1 all bits have 0 or 1 22

Binary and Computers 4 Byte 8 bits The number of bits in a word determines the word length of the computer, but it is usually a multiple of 8 32-bit machines 64-bit machines etc. 23

Data and Computers Computers are multimedia devices,dealing with a vast array of information categories Computers store, present, and help us modify  Numbers  Text  Audio  Images and graphics  Video 5

Binary Representations One bit can be either 0 or 1 One bit can represent two things (Why?) Two bits can represent four things (Why?) How many things can three bits represent? How many things can four bits represent? How many things can eight bits represent? 6

Binary Representations 7 Counting with binary bits Figure 3.4

Binary Representations How many things can  bits represent? Why? What happens every time you increase the number of bits by one? 8

Representing Real Numbers Real numbers A number with a whole part and a fractional part , , 357.0, and Positions to the right of the decimal point are the tenths position: 10 -1, 10 -2, … 9

Representing Real Numbers Same rules apply in binary as in decimal Decimal point is actually the radix point Positions to the right of the radix point in binary are 2 -1 (one half), 2 -2 (one quarter), 2 -3 (one eighth) … 10

Representing Real Numbers 11 A real value in base 10 can be defined by the following formula The representation is called floating point because the number of digits is fixed but the radix point floats

Representing Real Numbers 12 A binary floating-point value is defined by the formula sign * mantissa * 2 exp

Representing Real Numbers Scientific notation A form of floating-point representation in which the decimal point is kept to the right of the leftmost digit is E+4 in scientific notation What is in scientific notation? What is in scientific notation? 13

Representing Text What must be provided to represent text? There are a finite number of characters to represent, so list them all and assign each a binary string. Character set A list of characters and the codes used to represent each one Computer manufacturers agreed to standardize 14

The ASCII Character Set ASCII stands for American Standard Code for Information Interchange ASCII originally used seven bits to represent each character, allowing for 128 unique characters Later extended ASCII evolved so that all eight bits were used How many characters could be represented? 15

ASCII Character Set Mapping 16

The ASCII Character Set The first 32 characters in the ASCII character chart do not have a simple character representation to print to the screen What do you think they are used for? 17

The Unicode Character Set Extended ASCII is not enough for international use One Unicode mapping uses 16 bits per character How many characters can this mapping represent? Unicode is a superset of ASCII The first 256 characters correspond exactly to the extended ASCII character set 18

The Unicode Character Set 19 Figure 3.6 A few characters in the Unicode character set

Representing Audio Information 20 We perceive sound when a series of air compressions vibrate a membrane in our ear, which sends signals to our brain

Representing Audio Information A stereo sends an electrical signal to a speaker to produce sound This signal is an analog representation of the sound wave The voltage in the signal varies in direct proportion to the sound wave 21

Representing Audio Information Digitize the signal by sampling ◦ periodically measure the voltage ◦ record the numeric value How often should we sample? A sampling rate of about 40,000 times per second is enough to create a reasonable sound reproduction 22

Representing Audio Information 23 Figure 3.9 A CD player reading binary information

Representing Audio Information 24 Figure 3.8 Sampling an audio signal Some data is lost, but a reasonable sound is reproduced

Representing Audio Information CDs store audio information digitally On the surface of the CD are microscopic pits that represent binary digits A low intensity laser is pointed as the disc The laser light reflects strongly if the surface is smooth and poorly if the surface is pitted 25

Audio Formats ◦ WAV, AU, AIFF, VQF, and MP3 MP3 (MPEG-2, audio layer 3 file) is dominant ◦ analyzes the frequency spread and discards information that can’t be heard by humans ◦ bit stream is compressed using a form of Huffman encoding to achieve additional compression Is this a lossy or lossless compression (or both)? 26

Representing Images and Graphics Color Perception of the frequencies of light that reach the retinas of our eyes Retinas have three types of color photoreceptor cone cells that correspond to the colors of red, green, and blue 27

Representing Images and Graphics Color is expressed as an RGB (red-green- blue) value--three numbers that indicate the relative contribution of each of these three primary colors An RGB value of (255, 255, 0) maximizes the contribution of red and green, and minimizes the contribution of blue, which results in a bright yellow 28

Representing Images and Graphics 29 Figure 3.10 Three-dimensional color space

Representing Images and Graphics color depth The amount of data that is used to represent a color HiColor A 16-bit color depth: five bits used for each number in an RGB value with the extra bit sometimes used to represent transparency TrueColor A 24-bit color depth: eight bits used for each number in an RGB value 30

Representing Images and Graphics 31 A few TrueColor RGB values and the colors they represent

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

Digitized Images and Graphics Digitizing a picture Representing it as a collection of individual dots called pixels Resolution The number of pixels used to represent a picture Raster Graphics Storage of data on a pixel-by-pixel basis Bitmap (BMP), GIF, JPEG, and PNG are raster- grahics formats 33

Digitized Images and Graphics Bitmap format Contains the pixel color values of the image from left to right and from top to bottom GIF format (indexed color) Each image is made up of only 256 colors JPEG format Averages color hues over short distances PNG format Like GIF but achieves greater compression with wider range of color depths Which is better for line drawings? Pictures? 34

Digitized Images and Graphics 35 Figure 3.12 A digitized picture composed of many individual pixels Whole picture

Digitized Images and Graphics 36 Figure 3.12 A digitized picture composed of many individual pixels Magnified portion of the picture See the pixels?

Vector Graphics Vector graphics A format that describes an image in terms of lines and geometric shapes A vector graphic is a series of commands that describe a line’s direction, thickness, and color. The file sizes tend to be smaller because not every pixel is described. 37

Vector Graphics The good side and the bad side… Vector graphics can be resized mathematically and changes can be calculated dynamically as needed. Vector graphics are not good for representing real-world images. 38

Representing Video Video codec COmpressor/DECompressor Methods used to shrink the size of a movie to allow it to be played on a computer or over a network Almost all video codecs use lossy compressions to minimize the huge amounts of data associated with video 39

Representing Video Temporal compression A technique based on differences between consecutive frames: If most of an image in two frames hasn’t changed, why should we waste space to duplicate all of the similar information? Spatial compression A technique based on removing redundant information within a frame: This problem is essentially the same as that faced when compressing still images 40

Data Storage 1 Bit = Binary Digit · 8 Bits = 1 Byte (B) · 1024 Bytes = 1 Kilobyte (KB) · 1024 Kilobytes = 1 Megabyte (MB) · 1024 Megabytes = 1 Gigabyte (GB) · 1024 Gigabytes = 1 Terabyte (TB) · 1024 Terabytes = 1 Petabyte (PB) · 1024 Petabytes = 1 Exabyte (EB) 41

What to do for next week? Read these slides Do your word cloud assignment ◦ Need a color printer? ◦ Visit your professor on Tuesday or Thursday from 1-3pm at the Library - Faculty Center for Teaching Read Chapter 2 of your textbook 42