Vocabulary byte - The technical term for 8 bits of data.

Slides:



Advertisements
Similar presentations
Chapter 10 Algorithmic Thinking. Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Learning Objectives List the five essential.
Advertisements

Compression & Huffman Codes
Compression & Huffman Codes Fawzi Emad Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
Data dan Teknologi Multimedia Sesi 08 Nofriyadi Nurdam.
Multimedia Specification Design and Production 2012 / Semester 1 / L3 Lecturer: Dr. Nikos Gazepidis
UNIT 2 LESSON 3 CS PRINCIPLES. OBJECTIVES Students will be able to: Construct a binary communication protocol for playing Battleship using the Internet.
Comp 335 File Structures Data Compression. Why Study Data Compression? Conserves storage space Files can be transmitted faster because there are less.
LZW (Lempel-Ziv-welch) compression method The LZW method to compress data is an evolution of the method originally created by Abraham Lempel and Jacob.
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.
DATA REPRESENTATION - TEXT
AP CSP: Pixelation – B&W/Color Images
Vocabulary Prototype: A preliminary sketch of an idea or model for something new. It’s the original drawing from which something real might be built or.
Vocabulary Prototype: A preliminary sketch of an idea or model for something new. It’s the original drawing from which something real might be built or.
AP CSP: Lossy Compression and File Formats
AP CSP: Creating Functions & Top-Down Design
GCSE COMPUTER SCIENCE Topic 3 - Data 3.3 Data Storage and Compression.
JavaScript/ App Lab Programming:
Vocabulary byte - The technical term for 8 bits of data.
Sending Binary Messages
Vocabulary Prototype: A preliminary sketch of an idea or model for something new. It’s the original drawing from which something real might be built or.
Vocabulary byte - The technical term for 8 bits of data.
Vocabulary Big Data - “Big data is a broad term for datasets so large or complex that traditional data processing applications are inadequate.” Moore’s.
Lesson 1-10 AP Computer Science Principles
Vocabulary Prototype: A preliminary sketch of an idea or model for something new. It’s the original drawing from which something real might be built or.
AP CSP: Sending Binary Messages with the Internet Simulator
Vocabulary Algorithm - A precise sequence of instructions for processes that can be executed by a computer Low level programming language: A programming.
Compression & Huffman Codes
Lesson 2-3 AP Computer Science Principles
UNIT 2 – CHAPTER 1 – LESSON 1 DIGITAL INFORMATION.
Vocabulary byte - The technical term for 8 bits of data.
3.3 Fundamentals of data representation
Vocabulary byte - The technical term for 8 bits of data.
Lesson 2-2 AP Computer Science Principles
Computer Science Higher
Vocabulary byte - The technical term for 8 bits of data.
Vocabulary Prototype: A preliminary sketch of an idea or model for something new. It’s the original drawing from which something real might be built or.
Functions and Top-Down Design
Lossy Compression and File Formats
Vocabulary Prototype: A preliminary sketch of an idea or model for something new. It’s the original drawing from which something real might be built or.
UNIT 2 – LESSON 6 ENCODE AN EXPERIENCE.
Unit 2- Lesson 1 & 2- Bytes and File Sizes / Text Compression
Unit 2- Lesson 1 & 2- Bytes and File Sizes / Text Compression
UNIT 2 – LESSON 2 TEXT COMPRESSION.
Packets and Making a Reliable Internet
Vocabulary Prototype: A preliminary sketch of an idea or model for something new. It’s the original drawing from which something real might be built or.
UNIT 3 – LESSON 5 Creating Functions.
U2L4 Encoding Color Images
Vocabulary byte - The technical term for 8 bits of data.
Vocabulary byte - The technical term for 8 bits of data.
CS Principles U2L3 Encoding B&W Images.
Vocabulary byte - The technical term for 8 bits of data.
Lesson 1-13 AP Computer Science Principles
Vocabulary byte - The technical term for 8 bits of data.
Vocabulary Prototype: A preliminary sketch of an idea or model for something new. It’s the original drawing from which something real might be built or.
Unsolvable Problems December 4, 2017.
Vocabulary Prototype: A preliminary sketch of an idea or model for something new. It’s the original drawing from which something real might be built or.
Vocabulary byte - The technical term for 8 bits of data.
Vocabulary byte - The technical term for 8 bits of data.
AP CSP: Bytes, File Sizes, and Text Compression
Vocabulary byte - The technical term for 8 bits of data.
Vocabulary Algorithm - A precise sequence of instructions for processes that can be executed by a computer.
Sending Bits on the Internet
Data Compression.
BITS & BYTES.
Do Now! Convert the following sequence of bits into an image using the protocol we discussed (first 8 bits are lengthxwidth, Then fill in the rows pixel.
U3L1 The Need For Programming
Unit 2- Lesson 1 & 2- Bytes and File Sizes / Text Compression
U3L2 The Need For Algorithms
U3L4 Using Simple Commands
Presentation transcript:

Vocabulary byte - The technical term for 8 bits of data. The standard fundamental unit (or “chunk size”) underlying most computing systems today measured in “megabytes”, “kilobytes”, “gigabytes”, etc.

CS Principles U2L2 Text Compression

U2L2 Text Compression Objectives SWBAT: Collaborate with a peer to find a solution to a text compression problem using the Text Compression Widget (lossless compression scheme). Explain why the optimal amount of compression is impossible or “hard” to identify. Explain some factors that make compression challenging. Develop a strategy (heuristic algorithm) for compressing text. Describe the purpose and rationale for lossless compression.

U2L2 Vocab Heuristic - a problem solving approach (algorithm) to find a satisfactory solution where finding an optimal or exact solution is impractical or impossible. Lossless Compression - a data compression algorithm that allows the original data to be perfectly reconstructed from the compressed data.

Text Compression At some point we reach a physical limit of how fast we can send bits and if we want to send a large amount of information faster, we have to find a way to represent the same information with fewer bits - we must compress the data. The basic principle behind compression is to develop a method or protocol for using fewer bits to represent the original information. The way we represent compressed data in this lesson, with a “dictionary” of repeated patterns is similar to the LZW compression scheme (Lempel-Zig-Welch) LZW is used for text (zip files) with the GIF image file format.

Optimal Compression? There is no single correct way to compress text using the method we use in this lesson because a) there is no known algorithm for finding an optimal solution, and b) we don’t even know a way to verify whether a given solution is optimal. There is no way to prove it or derive it beyond trying all possibilities by brute force. This is an example of an algorithm that cannot run in a “reasonable amount of time” - one of the CSP learning objectives.

Connections to Programming Recognizing patterns that repeat, then representing those patterns as abstract symbols, then further recognize patterns within those patterns, This is very similar to the kinds of abstractions we develop when writing functions and procedures when programming.

U2L2 Prompt: Prompt: (respond to both prompts) “When you send text messages to a friend, do you spell every word correctly?” Do you use abbreviations for common words? List as many as you can. Write some examples of things you might see in a text message that are not proper English. “Why do you use these abbreviations? What is the benefit?”

Text Compression Today’s class is about compression When you abbreviate or use coded language to shorten the original text, you are “compressing text.” Computers do this too, in order to save time and space. The art and science of compression is about figuring out how to represent the SAME DATA with FEWER BITS. Why is this important? One reason is that storage space is limited and you’d always prefer to use fewer bits if you could. A much more compelling reason is that there is an upper limit to how fast bits can be transmitted over the Internet. What if we need to send a large amount of text faster over the Internet, but we’ve reached the physical limit of how fast we can send bits? Our only choice is to somehow capture the same information with fewer bits; we call this compression.

Activity (Classwork) Complete the U2L2 Activity Guide – Decode This Message