Visual and data

Compression

Pupils encode or decode with run-length encoding or a Huffman code table, or count how many bits a message takes with Huffman coding and with ASCII.

Marked automaticallyOn paper: a picture you mark

Good for

GCSE Computer Science lossless compression (OCR J277 1.2, AQA 8525 3.3.8): run-length encoding of text and images, and Huffman coding.

Classfolio builds the Huffman table from each message and works out every answer. Counting bits earns two marks.

How to set it up

  1. 1In the lesson editor, choose Add slide and pick Compression.
  2. 2Choose the kind of question: run-length encode or decode, Huffman encode or decode, or counting the bits. Then type each text or message, or press Make one. The editor shows each answer.
  3. 3Choose whether each pupil gets a different text of the same kind.
  4. 4Preview it as a pupil, then run the Readiness check before you launch: it flags anything still missing.

Tips from the classroom

  • For an image row, type it as 0s and 1s, such as 000011100.
  • Pupils may write run-length pairs as 4A 3B or 4 A, 3 B.