Hello! I’m Josh, and today we’re going to learn something cool about computer science by observing a lesson with Gtear. We’ll watch how he teaches and see what the students are doing in the classroom. Let’s dive in!
Gtear begins the lesson with a fun question: When you text your friends, do you always spell every word correctly? Probably not, right? Think about some words you often shorten or use numbers for. Can you come up with at least three examples? Let’s hear some:
These are great examples! Why do you think we use these shorter versions of words? Maybe to save time, because it’s easier, or because it takes up less space? These reasons are connected to an important concept in computer science called compression.
Compression is like sending the same information but using fewer bits. It’s a way to make files smaller so they take up less space. Can you think of some file formats that use compression? Here are a few:
Awesome! You seem to have a good grasp of this. Today, we’ll have a fun competition to see who can compress things the most. Are you ready?
Grab your laptops and turn to Unit 2, Lesson 2. Pair up with a classmate. We have a message we want to send, and we’re going to compress it. I’ll show you how it works. Look for words that appear often.
What do you notice?
Great observations! Let’s add another word:
Here’s what’s happening: We have our message, and we’re putting words into a dictionary. You can see the bytes and the compression ratio, which tells us how much the message is compressed compared to the original.
Sometimes, adding words not in the message can make compression worse. Now, explore this tool with your partner for a bit.
How’s it going, team? Do you have any questions?
Great!
Alright, everyone, we’re almost out of time. Let’s see your compression ratios. Raise your hand if you got:
Wow, let’s give a big round of applause to the winners!
Now, let’s think about what makes compression challenging. Reflect silently, then share your thoughts:
That’s all for today. Tomorrow, we’ll practice getting even better compression ratios. Class dismissed!
Now that Gtear has finished his lesson, let’s go over our notes and identify some themes and questions for our debrief. This will help us understand the lesson better and prepare for next time!
Imagine you’re sending a long message to a friend. Your task is to create a dictionary of abbreviations for words you use often. Write down the original words and their abbreviations. Then, try to rewrite your message using these abbreviations to see how much space you save!
With a partner, search for different file types on your computer or online that use compression, like JPEG or ZIP. Make a list of these files and discuss how compression might be used in each case. Share your findings with the class!
Using a simple text editor, write a short story or paragraph. Then, try to compress it by replacing common words with symbols or shorter versions. Calculate the compression ratio by comparing the original and compressed versions. See who in the class can achieve the highest compression ratio!
Work in small groups to design a basic algorithm that can compress a simple text message. Think about which words or phrases you can replace to make the message shorter. Present your algorithm to the class and explain how it works.
Reflect on the challenges you faced while trying to compress your text. Write down your thoughts and discuss them with a partner. What strategies worked well? What was difficult? How might these challenges relate to real-world data compression?
Here’s a sanitized version of the provided YouTube transcript:
—
Hello, I’m Josh, and I’ll be your co-facilitator today. We’re going to watch Gtear in his TLO and take notes on what we observe from him as the teacher, as well as what we see happening in the classroom with the students. Let’s get started!
Good morning, everyone! I have a question for you: when you send text messages to your friends, do you always spell the words exactly correctly? No? Alright! I want you to think silently in your heads and come up with some words that you don’t always spell correctly. Maybe you shorten them or use numbers. Think of at least three examples, and we’ll share them with the class in about 30 seconds.
I see some nods, so let’s hear them! What are your words?
– “LOL”
– “Thx”
– “Tomorrow”
Great examples! Now, why do you use these shorter versions of words?
– To save time?
– It’s easier?
– It doesn’t take up as much space?
These reasons are actually related to an important computer science concept we’ll discuss today called compression. We’ve been talking about bits of information, which means you’re sending the same information but using fewer bits.
Before we dive in, can anyone name some file formats that use compression?
– “JPEG”
– “ZIP”
– “MPEG”
Awesome! It seems like you all have a good understanding of this, so today we’ll have a competition to see who can compress things the most. Are you excited?
Let’s get out our laptops and turn to Unit 2, Lesson 2. I want everyone to pair up.
Now, we have a message we want to send, and we’re going to compress it. I tried this out last night, so let me show you how it works. We want to find words that show up frequently.
What do you notice?
– “There’s a symbol.”
– “I saw that too!”
Great! Let’s add another word.
– “Time.”
Now, let me explain what’s happening. We have our message, and we’re putting words into a dictionary. You can see the bytes and the compression ratio, which tells us how much it’s getting compressed as a percentage of the original message.
Sometimes, you can even add words that aren’t in the message, but that can make it worse.
Now, I want you to explore this tool with your partner for a bit.
How’s it going, team? Do you have a question?
– “Is there a way to put one of the icons here?”
– “Sure, just copy and paste.”
Great!
Alright, everyone, we’re almost out of time, so let’s bring it back together. I want to see everyone’s compression ratios. If you got a 25%, hands up!
– “30%?”
– “32%?”
– “34%?”
– “36%?”
– “38%?”
Wow, let’s give a big round of applause to the winners!
Now, let’s reflect on what makes compression hard. Think about it silently, and then we’ll share.
– “If we put words that are too big in the dictionary, it brings down the ratio.”
– “There are a lot of different combinations to try, and it takes time.”
That’s all the time we have today. Tomorrow, we’ll practice getting even better compression ratios. Class dismissed!
Now that Gtear has finished his lesson, let’s go over our notes and identify some themes and questions for our debrief.
—
This version removes informal language, filler words, and any potentially distracting elements while maintaining the core content and structure of the original transcript.
Compression – The process of making a computer file smaller so it takes up less space. – When you compress a video file, it becomes smaller and easier to send over the internet.
Messages – Information sent from one computer to another, often through email or chat. – I received several messages from my teacher about the homework assignment.
Words – Units of language that convey meaning, often used in coding as commands or variables. – In coding, you use words like “print” to display text on the screen.
Files – Collections of data or information stored on a computer. – I saved my project as a Word document file on my laptop.
Space – The amount of storage available on a computer or device. – I need to delete some old files to free up space on my tablet.
Laptops – Portable computers that you can use on your lap or on a desk. – We use laptops in class to research information for our science projects.
Dictionary – A data structure in coding that stores pairs of keys and values. – In Python, a dictionary can be used to store and quickly look up information.
Bytes – Units of digital information, typically consisting of eight bits. – A photo file might be several million bytes in size, which is also called megabytes.
Ratios – Relationships between two numbers, often used in coding to compare data sizes or performance. – The compression ratio tells us how much smaller the file is after compression.
Icons – Small pictures or symbols on a computer screen that represent programs, files, or commands. – I clicked on the icon that looks like a trash can to delete the file.