Chapter 16 of 22 Part IV: Data, Media & Machine Intelligence

Making Big Things Small

Each chapter features three guided investigations aligned with the book and Interactive Lab. Work through them in order, record predictions, and test edge cases.

Project 1 of 3 · v1-c16-p01

Run-length encoding

Lab section: 01 | Run-length encoding · Related code: block-01.js, block-04.js, block-07.js

Objective: Investigate "Run-length encoding" experimentally in the Chapter 16 Interactive Lab and connect the observed behavior to the chapter's underlying rule.

Procedure

  1. Open the Chapter 16 Interactive Lab and select "01 | Run-length encoding".
  2. Record a prediction in your notebook before changing any controls, then run at least three distinct test inputs.
  3. Inspect the corresponding JavaScript snippet(s) on the Chapter 16 Code page and trace how the algorithm computes the output.
  4. Test a boundary or failure case (for example, invalid input, noise, or an extreme parameter) and explain why the system behaves as it does.
Sample Input: Baseline preset in "01 | Run-length encoding" followed by one modified parameter or boundary test case.
Expected Observation: Deterministic visual/numeric state update in the lab panel matching the mathematical model for Chapter 16.
Show Hint & Extension Challenge

Hint: Check the worked example and equation in the Chapter 16 Lesson before testing edge cases.

Extension Challenge: Design an adversarial or edge-case input that exposes a limit of the model in "Run-length encoding" and document what real-world standard addresses it.

Reflection Question: What real-world constraint or trade-off did "Run-length encoding" make visible that you would not notice from using a finished app?

Project 2 of 3 · v1-c16-p02

Huffman coding

Lab section: 02 | Huffman coding · Related code: block-02.js, block-05.js

Objective: Investigate "Huffman coding" experimentally in the Chapter 16 Interactive Lab and connect the observed behavior to the chapter's underlying rule.

Procedure

  1. Open the Chapter 16 Interactive Lab and select "02 | Huffman coding".
  2. Record a prediction in your notebook before changing any controls, then run at least three distinct test inputs.
  3. Inspect the corresponding JavaScript snippet(s) on the Chapter 16 Code page and trace how the algorithm computes the output.
  4. Test a boundary or failure case (for example, invalid input, noise, or an extreme parameter) and explain why the system behaves as it does.
Sample Input: Baseline preset in "02 | Huffman coding" followed by one modified parameter or boundary test case.
Expected Observation: Deterministic visual/numeric state update in the lab panel matching the mathematical model for Chapter 16.
Show Hint & Extension Challenge

Hint: Check the worked example and equation in the Chapter 16 Lesson before testing edge cases.

Extension Challenge: Design an adversarial or edge-case input that exposes a limit of the model in "Huffman coding" and document what real-world standard addresses it.

Reflection Question: What real-world constraint or trade-off did "Huffman coding" make visible that you would not notice from using a finished app?

Project 3 of 3 · v1-c16-p03

Quantization

Lab section: 03 | Quantization · Related code: block-03.js, block-04.js, block-05.js, block-06.js, block-07.js

Objective: Investigate "Quantization" experimentally in the Chapter 16 Interactive Lab and connect the observed behavior to the chapter's underlying rule.

Procedure

  1. Open the Chapter 16 Interactive Lab and select "03 | Quantization".
  2. Record a prediction in your notebook before changing any controls, then run at least three distinct test inputs.
  3. Inspect the corresponding JavaScript snippet(s) on the Chapter 16 Code page and trace how the algorithm computes the output.
  4. Test a boundary or failure case (for example, invalid input, noise, or an extreme parameter) and explain why the system behaves as it does.
Sample Input: Baseline preset in "03 | Quantization" followed by one modified parameter or boundary test case.
Expected Observation: Deterministic visual/numeric state update in the lab panel matching the mathematical model for Chapter 16.
Show Hint & Extension Challenge

Hint: Check the worked example and equation in the Chapter 16 Lesson before testing edge cases.

Extension Challenge: Design an adversarial or edge-case input that exposes a limit of the model in "Quantization" and document what real-world standard addresses it.

Reflection Question: What real-world constraint or trade-off did "Quantization" make visible that you would not notice from using a finished app?