Don’t squeeze the Charnin (OK to squeeze data!)

Slides:



Advertisements
Similar presentations
Data compression. INTRODUCTION If you download many programs and files off the Internet, we have probably encountered.
Advertisements

Does each sentence begin with a capital letter? Underline the beginning letter of each sentence. Is there a. ! ? after each sentence? Circle the punctuation.
Web Graphics.
15 Data Compression Foundations of Computer Science ã Cengage Learning.
Data Compression CS 147 Minh Nguyen.
Compression & Huffman Codes
CPSC 231 Organizing Files for Performance (D.H.) 1 LEARNING OBJECTIVES Data compression. Reclaiming space in files. Compaction. Searching. Sorting, Keysorting.
CSCI 3 Chapter 1.8 Data Compression. Chapter 1.8 Data Compression  For the purpose of storing or transferring data, it is often helpful to reduce the.
A 24-bit depth.bmp file made in XVI32 This 2-by-2 image was handcrafted in XVI32 Bytes 1C-1D hex in the Info Header say that the image uses 24-bit (18.
Data Representation CS105. Data Representation Types of data: – Numbers – Text – Audio – Images & Graphics – Video.
Logo Lesson 2 Logo Procedures
Last time 3 main components to a computer system Types of computers Talked about software – task oriented What are some kinds of data that a computer works.
How to Get an Address. What is ? is a way to send and receive electronic mail. You do this by setting up an account with one of.
 Wisegeek.com defines Data Compression as:  “Data compression is a general term for a group of technologies that encode large files in order to shrink.
Spring 2015 Mathematics in Management Science Binary Linear Codes Two Examples.
Media File Formats Jon Ivins, DMU. Text Files n Two types n 1. Plain text (unformatted) u ASCII Character set is most common u 7 bits are used u This.
Lecture 10 Data Compression.
Computability Reports. More examples. Homework: Optimization. Other follow- ups. Start to plan presentation.
Ace Objective Tests It is about more than just knowledge.
Lab #5-6 Follow-Up: More Python; Images Images ● A signal (e.g. sound, temperature infrared sensor reading) is a single (one- dimensional) quantity that.
All About Me An Introduction To Opening And Saving Student Work.
Data Compression. How File Compression Works If you download many programs and files off the Internet, you've probably encountered ZIP files before. This.
 The amount of data we deal with is getting larger  Not only do larger files require more disk space, they take longer to transmit  Many times files.
Multimedia Specification Design and Production 2012 / Semester 1 / L3 Lecturer: Dr. Nikos Gazepidis
How Analog and Digital Recording Works Analog converted to digital via an ADV (Analog to Digital Converter = stream of numbers) On playback: digital converted.
Addressing Image Compression Techniques on current Internet Technologies By: Eduardo J. Moreira & Onyeka Ezenwoye CIS-6931 Term Paper.
Quotation Marks.
Graphic Format Factors
Class 9 LBSC 690 Information Technology Multimedia.
Learning PowerPoint Presenting your ideas as a slide show… …on the computer!
 By Bob “The Bird” Fiske & Anita “The Snail” Cost.
Image File Formats. What is an Image File Format? Image file formats are standard way of organizing and storing of image files. Image files are composed.
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.
Comp 335 File Structures Data Compression. Why Study Data Compression? Conserves storage space Files can be transmitted faster because there are less.
Ch3 Image Compression. John. F. Kennedy (Former President of USA) Who is this man?
Image File Formats By Dr. Rajeev Srivastava 1. Image File Formats Header and Image data. A typical image file format contains two fields namely Dr. Rajeev.
GIF vs. JPEG GIF and JPEG (JPG) image formats are different. You should know which to use when. Here are some examples.
Lempel-Ziv-Welch Compression
Computer Sciences Department1. 2 Data Compression and techniques.
FILE COMPRESSION Lossy vs Lossless. Why compress a file? To save storage space. To speed up data transmission.
Submitted To-: Submitted By-: Mrs.Sushma Rani (HOD) Aashish Kr. Goyal (IT-7th) Deepak Soni (IT-8 th )
CONVENTIONS OF PRINT How to write a sentence properly.
DATA REPRESENTATION - TEXT
GCSE COMPUTER SCIENCE Topic 3 - Data 3.3 Data Storage and Compression.
Whatcha doin'? Aims: To start using Python. To understand loops.
Lesson Objectives Aims You should be able to:
4k… 4K format was named because it has 4000 pixels horizontal resolution approximately. Meanwhile, standard 1080p and 720p resolutions were named because.
CPSC 231 Organizing Files for Performance (D.H.)
Computer Science Higher
Data Compression.
Lesson Objectives Aims You should know about: 1.3.1:
Unit 2- Lesson 1 & 2- Bytes and File Sizes / Text Compression
How to Read Nonfiction texts
1.01 Investigate graphic types and file formats.
Huffman Coding Based on slides by Ethan Apter & Marty Stepp
UNIT 3 – LESSON 5 Creating Functions.
Data Compression.
File Compression-overview
Data Compression CS 147 Minh Nguyen.
GRAPHICS Source:
IPC144 Introduction to Programming Using C Week 1 – Lesson 2
Data Representation.
Why Compress? To reduce the volume of data to be transmitted (text, fax, images) To reduce the bandwidth required for transmission and to reduce storage.
Representing Images 2.6 – Data Representation.
Topic 3: Data Compression.
15 Data Compression Foundations of Computer Science ã Cengage Learning.
GCSE COMPUTER SCIENCE Topic 3 - Data 3.9 Data Compression.
Compression.
CPS 296.3:Algorithms in the Real World
15 Data Compression Foundations of Computer Science ã Cengage Learning.
Presentation transcript:

Don’t squeeze the Charnin (OK to squeeze data!) File Compression Don’t squeeze the Charnin (OK to squeeze data!)

File Compression a file-compression program lists information once and then refers back to it whenever needed

e.g.words Kennedy speech As an example, let's look at a type of information we're all familiar with: words. In John F. Kennedy's 1961 inaugural address, he delivered this famous line: "Ask not what your country can do for you -- ask what you can do for your country." The quote has 17 words, made up of 61 letters, 16 spaces, one dash and one period. If each letter, space or punctuation mark takes up one byte we get a total file size of 79 units. To get the file size down, we need to look for redundancies. Immediately, we notice that: "ask" appears two times "what" appears two times "your" appears two times "country" appears two times "can" appears two times "do" appears two times "for" appears two times "you" appears two times

Redundancy LZ Ignoring the difference between capital and lower-case letters, roughly half of the phrase is redundant. Nine words – “ask, not, what, your, country, can, do, for, you” -- give us almost everything we need for the entire quote. To construct the second half of the quote, point to words in the first half

Dictionary 1 ask 2 What 3 Your 4 Country 5 can 6 Do 7 8 For you The system for arranging dictionaries varies, but it could be as simple as a numbered list. When we go through Kennedy's famous words, we pick out the words that are repeated and put them into the numbered index. Then, we simply write the number instead of writing out the whole word Our sentence now reads:  "1 not 2 3 4 5 6 7 8 -- 1 2 8 5 6 7 3 4"

New version Our sentence now reads:  "1 not 2 3 4 5 6 7 8 -- 1 2 8 5 6 7 3 4"

Lossless/lossy compression List 5 lossless compression methods List 5 lossy compression methods Describe 5 video approaches that can be used to compress video(non technical answer) …think of the video we watched

Lossless example fffffffuuuuuuuuuuuu Can be “compressed” to : ? Lossless…called run-length encoding Let's say you have an image with a plain blue background. For each row of pixels instead of storing "blue, blue, blue, ... blue, etc" a 1000 times, you could simply store "1000,blue" and would save loads of space. ffffffuuuuuuuuuuuu Can be “compressed” to: f7u12

questions Media files that are lossy, but acceptable