Name Date Period
← CS Unplugged
CS Unplugged activity
Pixel Pictures
CS Unplugged activity slides
Lesson plan (and sub notes)
About 30 minutes Solo, or trade with a partner Pencil
Just For Teachers:
This box never prints and isn't in the Word copy. Students who open this page online can still see it.
Three sheets, not one
This activity is split across three pages, so a sub can hand out one clear
stack instead of managing a single multi-page packet.
How it works :
reading only, pixels and the run-length rule. No Name/Date/Period line
and nothing to turn in, since there’s nothing to write on it.
Decode & Encode (this page): the core hands-on practice.
Make your own :
draw, trade, and the compression questions.
Each is one sheet, printed double-sided. Print all three per student, but
only collect the second two: Decode & Encode and Make Your Own.
Printing
Use Print this lesson (or Ctrl+P / ⌘P) on each of the three pages
above. Parts 2 and 3 get a Name, Date, and Period line at the top (Part
1 doesn’t, since nothing is written on it or turned in), and the site menu,
buttons, and this box are left off either way. For the answer key, click
Show answer key at the bottom of the page (or add ?key=1 to the
address), then print. Parts 2 and 3 each carry their own answer key for
their own content.
Word or Google Docs
Download as Word (.docx) makes an editable copy you can change. For a
Google Doc, upload that file to Google Drive and open it with Google Docs.
Make new sets
The New set page makes fresh
mystery pictures to decode (and, once a set has 3 or more pictures, one to
encode), so a student who finishes always has a next sheet to start. Pick
Small pictures or Large pictures , how many Pictures per set, and
how many copies : a class set gives every student a different set. In a
hurry? Jump straight to a
ready class set of 30 ,
one 6-picture set per student (two pages, front and back).
Slides
Pixel Pictures slides : project these to
introduce pixels and the run-length rule. They stop before giving away the
sheet’s three mystery pictures. A down arrow on a couple of slides opens
optional deeper-dive content (the fax math, and an AP-level lossy-vs-lossless
question) that a 6th grade class can just skip past.
Full lesson plan
Want to teach this live instead of as a sub-day sheet? The
lesson plan walks through the
hook, the sheet, and a wrap-up, and includes grade-band notes for 6th grade,
9th grade, and AP CSP under Going further .
Standards
This sheet’s standards are listed under Standards alignment at the
bottom of the page.
Part 2 of 3 (Part 1: How It Works has the rule).
Decode these pictures
Each line of a picture’s code is one row, top to bottom. Shade the
matching squares with your pencil: blank for white, solid for black. Work
through them in order, easiest first.
This worksheet draws its blank grids
with JavaScript. Turn JavaScript on to see the codes and grids.
Now encode one
Go the other way: here is a finished picture. Write the code for each row
on the line next to it. Remember, every code starts with a count of
white squares, so a row that starts with black begins with 0 .
This trick has a name: run-length encoding , because it records how long
each run of one color is. Fax machines send pictures exactly this way, one
scan line at a time, and some image files (like TIFF and BMP) can be stored
this way too.
Continue to
Part 3: Make Your Own .
Now encode one (the house)
3, 2, 3
2, 4, 2
1, 6, 1
0, 8
1, 1, 4, 1, 1
1, 1, 1, 2, 1, 1, 1
1, 1, 1, 2, 1, 1, 1
1, 6, 1
Print this lesson
Download as Word (.docx)
Slides
Version history
Loading commit history…
Standards alignment