Run Length Coding

Page 1

Coding Unplugged: Work Booklet Samples Run-length Coding Computers store drawings, photographs and other pictures using only numbers. The following activity demonstrates how they can do this. The picture below shows us how a picture can be represented by numbers. The first line consists of one white pixel, then three black, then one white. Thus the first line is represented as 1, 3, 1. The first number always relates to the number of white pixels. If the first pixel is black the line will begin with a zero.


Asses sment Task s

Draw these pictures:

Now that you know how numbers can represent pictures, try making your own coded picture for a friend? Draw your picture on the top grid, and when you’ve finished, write the code numbers beside the bottom grid.


Asses sment Task s


Asses sment Task s


Asses sment Task s

Use this code to write algorithms for these drawings.


Asses sment Task s

eg -

http://prod.cdn-code.org/unplugged/unplug3.pdf


Asses sment Task s

Use compass directions and your own symbols to create a code that will get you through the maze


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.