GRADE 8 · COMPUTING · UNIT 4 · LESSON 4.11

Computer systems

Compression, reconstruction and purpose

Read a little. Try the workbook. Check your answers. Choose one section below to get started.

Topic 4.11 · Compression, reconstruction and purpose7 fillable worksheet pagesRead at your own pace

LET’S TRACE, REASON AND TEST

Compression, reconstruction and purpose

Compression changes how data is represented to try to use less space. For exact reconstruction, retain enough information to recover the order as well as the repeated items. Count any dictionary, position list or other overhead; compression does not always make a short example smaller.

Today’s two goals
  • Identify repetition, preserve order information and judge possible savings and uses.
  • Explain my method and support it with a labelled trace, example or test record.
Original PaxaKids illustration for Compression, reconstruction and purpose. Use the supplied program and data models for precise workbook facts.
An original PaxaKids workbook scene. Use the supplied programs and data for precise workbook facts.

Work through an example

For the sequence blue, red, blue, store the two words and an ordered reference sequence such as 1, 2, 1. Counts of blue twice and red once are insufficient by themselves, because they do not distinguish blue-red-blue from red-blue-blue.

Try before your workbook

Can the counts cat twice and dog once reconstruct the original three-word order uniquely? What else is needed?

Explore the clues

Tap one card to find out more.

Understand the idea

Compression changes how data is represented to try to use less space. For exact reconstruction, retain enough information to recover the order as well as the repeated items. Count any dictionary, position list or other overhead; compression does not always make a short example smaller.

Concept to practise: Compression, reconstruction and purpose.

Work through an example

For the sequence blue, red, blue, store the two words and an ordered reference sequence such as 1, 2, 1. Counts of blue twice and red once are insufficient by themselves, because they do not distinguish blue-red-blue from red-blue-blue.

Try before your workbook

Can the counts cat twice and dog once reconstruct the original three-word order uniquely? What else is needed?

Check my readiness thinking

No. Several orders have those counts. Keep an ordered sequence or positions and a clear decoding rule; include their storage cost when comparing sizes.

Your original programs and learning models

These original PaxaKids program and data models support your workbook. Some examples deliberately contain faults to investigate. Follow their headings and preserve exact code case, punctuation and order. Traces and supplied records are not claims of physical testing.

Make a smaller representation

Compression represents data using fewer bits or bytes when the chosen method and the data allow it. It can help files use less storage or reduce the amount sent over a network. A method must preserve enough information for the intended reconstruction.

Our original paper models use repeated words and consecutive letter runs. The coloured tiles in the picture illustrate repetition; they are not the counted data.

Keep positions as well as repeated words

Original six-word message: blue boat green boat blue boat. Read positions from left to right, starting at 1. The dictionary below records each distinct word, how many times it occurs and its positions. Use those positions to reconstruct the exact order.
Keep positions as well as repeated words — original model
WordCountPositions
blue21, 5
boat32, 4, 6
green13

Encode consecutive runs

For this run-length encoding (RLE) model, input letters are uppercase A to Z. Replace each consecutive run by its decimal count followed by its letter. Even a run of one needs a count. Keep the runs in order.

Original: AAAAABBCCCCDDDD
Runs: AAAAA | BB | CCCC | DDDD
Encoded: 5A2B4C4D
Encode consecutive runs — original model
RunCountStored pair
AAAAA55A
BB22B
CCCC44C
DDDD44D

Count the representation, then compare

For this exercise only, count each original and encoded character as one byte. Ignore headers, file metadata and the encoding program. A count digit is also a stored character. Use the displayed original and encoded messages from the previous page.
Count the representation, then compare — original model
Requested countAnswer
Bytes in AAAAABBCCCCDDDD{'clue': 'Count in bytes', 'prompt': 'Original repeated message bytes', 'answers': ['15']}
Bytes in 5A2B4C4D{'clue': 'Count in bytes', 'prompt': 'Encoded repeated message bytes', 'answers': ['8']}
Bytes saved: original minus encoded{'clue': 'Count in bytes', 'prompt': 'Bytes saved by this RLE representation', 'answers': ['7']}
Bytes in the original message ABCD{'clue': 'Count in bytes', 'prompt': 'Original ABCD bytes', 'answers': ['4']}
Bytes in its encoding 1A1B1C1D{'clue': 'Count in bytes', 'prompt': 'Encoded ABCD bytes', 'answers': ['8']}

Choose compression for a purpose

The message ABCD grows from four model bytes to eight when encoded as 1A1B1C1D. Compression methods do not shrink every possible input. Repetition, the method and its extra information affect the result.

A smaller file may need fewer storage bytes and less network payload. Transfer time also depends on bandwidth, overhead and processing. Compression does not guarantee that every transfer finishes sooner.

Reconstruct and check the order

Decode each count-and-letter pair in order. Example: 2A1B3C reconstructs AABCCC. Re-encoding that result should reproduce the same pairs under our rule.

This model is lossless when it reconstructs the exact original sequence. A method that discards needed information cannot make that exact claim.

Files for this activity

Use these original PaxaKids practice files with the matching workbook. Work on a local copy in the appropriate editor. Some examples deliberately contain faults to investigate; a downloaded file is not a completed practical test.

Paxa the Fox

Try one step with Paxa!

Follow the model and explain the labels, values and decisions. Use fictional data. Label a paper prediction, simulation and actual practical test separately; an unperformed test stays Pending. Save personal responses before leaving.

Our Unit 4 learning path
  1. Lesson 4.1: Primary memory and the processor
  2. Lesson 4.2: The role of RAM
  3. Lesson 4.3: The role of ROM and comparison
  4. Lesson 4.4: Operating-system purpose and examples
  5. Lesson 4.5: Interface, memory and user accounts
  6. Lesson 4.6: Files, applications and devices
  7. Lesson 4.7: Utility software and maintenance
  8. Lesson 4.8: Denary and binary place value
  9. Lesson 4.9: Converting values and extending to eight bits
  10. Lesson 4.10: ASCII and character encoding
  11. Lesson 4.11: Compression, reconstruction and purpose
  12. Lesson 4.12: Truth-table structure and possible inputs
  13. Lesson 4.13: NOT, AND and OR outputs
  14. Lesson 4.14: Complete, check and communicate tables
  15. Lesson 4.15: AI rules and learning from examples
  16. Lesson 4.16: What augmented reality adds
  17. Lesson 4.17: AR in entertainment, retail and education
  18. Lesson 4.18: Autonomous programming, sensors and robotics
  19. Lesson 4.19: Designing and explaining a robot
  20. Lesson 4.20: Project: Technology work placement
  21. Lesson 4.21: Check your progress 4
For grown-ups: using this lesson

Your answers are checked in your browser. Open responses need grown-up review and are shown separately from the automatic score. Check your work, then use “Retry answers to practise” to revisit mistakes while keeping correct responses.

Read one explanation, discuss the model and try the readiness check before the workbook. Choose “Mark lesson finished” when ready. Optional account progress saves lesson position and completion across devices; save personal responses before leaving.

2. Fill in your workbook

Read the teaching and complete workbook instructions. Choose, write or draw; Answer list offers larger controls. Trace code precisely and distinguish predictions from actual tests. Review designs, explanations and drawings with a grown-up.

Compression, reconstruction and purpose7 student pages · original artwork

Opening your PDF…

Swipe sideways across the worksheet on a small screen, or use “Answer list” for larger controls.

TAKE YOUR PRACTICE OFFLINE

3. Download the student worksheet

All 7 original A4 student pages, ready for pencil-and-paper practice. Choose Review Answers to check your work on this webpage.

Student worksheet only · PDF · 8.0 MiB · No answer key included

Download worksheet PDF ↓

TRY FIRST, THEN CHECK TOGETHER

Download the student worksheet →

4. Answers & guidance

Finished your try? Open the guide and compare one worksheet at a time. Your own words may be different and still explain the right idea.

Shown on this webpage only. There is no answer-key download, and this guide is left out when printing the page.

Show answers for all 7 worksheets

Worksheet 1

  1. Question 1: What is the aim of compression? represent the data using fewer bits or bytes

Worksheet 2

  1. Question 2: Which word belongs in position 4? boat
  2. Question 3: Why are the word counts alone insufficient? they do not say where each occurrence belongs

Worksheet 3

  1. Question 4: What must remain separate in AABAA? the two A runs, because B separates them

Worksheet 4

  1. Question 5: Original repeated message bytes 15
  2. Question 6: Encoded repeated message bytes 8
  3. Question 7: Bytes saved by this RLE representation 7
  4. Question 8: Original ABCD bytes 4
  5. Question 9: Encoded ABCD bytes 8

Worksheet 5

  1. Question 10: Which claim is supported by our examples? RLE saves space on some data but can expand other data

Worksheet 6

  1. Question 11: Which exact message does 2A1B3C reconstruct? AABCCC
  2. Question 12: How many bytes larger is 1A1B1C1D than ABCD under our model? 4
  3. Question 13: Which check best supports a lossless reconstruction? compare every reconstructed character and its order with the original
  4. Question 14: For actual saved files, what else must a fair size comparison consider? the complete file representation, including relevant overhead

Worksheet 7

  1. Question 15: Create one uppercase A-to-Z message with repeated consecutive runs and another with little repetition. Show each original, its RLE encoding, its exact reconstruction and its original/encoded byte counts under our one-byte-per-character convention. State the saving or expansion in each case and explain one suitable storage or transfer purpose. Give your encoding and rule to a partner to reconstruct; retain the actual comparison or mark it Pending. Explain why the word dictionary needs positions, note our ignored overhead, and record one correction or next step. Require two complete original examples with ordered consecutive runs, decimal count plus uppercase letter even for singletons; exact round trips and independently counted original/encoded characters. Correct savings or expansion, acknowledging that no saving is guaranteed. Explain positions preserve word order, and real-file overhead plus transfer conditions limit the model. Actual partner reconstruction evidence or Pending. Retain work and one correction/next step; no numeric grading. Grown-up review; personal evidence is required.
Back to my workbook ↑

Curriculum & workbook reference

Computing for your homeschool day

Explore Compression, reconstruction and purpose with this free Grade 8 Computing lesson. Read one idea together, try the fillable workbook and return to review at your own pace. Download the same student worksheet PDF for pencil-and-paper practice.

Fit learning around your family’s day. There is no timer and no sign-up is needed to use the lesson. An optional account saves your lesson position and completion across devices. Workbook responses and drawings stay in this tab; save a copy of your responses before leaving.

Understand your results

Closed answers are checked in your browser. Drawings and written explanations need grown-up review and are shown separately from the automatic score. Check your work, then use “Retry answers to practise” to revisit mistakes while keeping correct responses.

Choose Review Answers after trying the activity. The guide stays on the webpage; the worksheet download contains only the student pages.

For programme background, visit the Cambridge Lower Secondary Computing overview. PaxaKids provides independent original companion practice.

Book page references identify the related teaching topic. File-management and responsible-data preparation are original PaxaKids material; orientation or contents pages are not presented as teaching citations for those skills. The explanations, characters, programs and exercises here are original PaxaKids companion practice. Practical tasks require the appropriate editor and, where applicable, suitable equipment. A design or paper trace is not a verified hardware result. Only completed, reviewed lessons are listed.

Explore the Cambridge Lower Secondary Computing curriculum for programme background. PaxaKids is an independent learning resource.