levo

Data Compression

Dictionary and Huffman coding

  • 3 things to know
  • Component 1
Start revising · £5/month

Overview

Principle of dictionary compression, widely used dictionary compression algorithm and principle of Huffman coding.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

Explain the principle of dictionary compression.

Key term

Name a widely used dictionary compression algorithm.

Key term

Why does a dictionary method suit natural language text?

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    Explain the principle of dictionary compression.

    Model answer

    Dictionary compression replaces a repeated sequence with a short reference to an entry in a dictionary. The dictionary is built from the data itself as it is read.

  2. 2

    Name a widely used dictionary compression algorithm.

    Model answer

    LZW, the Lempel-Ziv-Welch algorithm, is a widely used dictionary method. GIF and TIFF both use it.

  3. 3

    Why does a dictionary method suit natural language text?

    Model answer

    Natural language repeats whole words and phrases constantly. Each repeat is replaced by one short code.

  4. 4

    Does the dictionary have to be sent with the compressed file? Explain.

    Model answer

    An adaptive dictionary method sends nothing extra. The decoder rebuilds the identical dictionary as it reads the compressed stream.

  5. 5

    Explain the principle of Huffman coding.

    Model answer

    Huffman coding gives the most frequent symbols the shortest bit codes and the rarest symbols the longest. The total number of bits falls below a fixed-length encoding.

  6. 6

    Is Huffman coding lossless?

    Model answer

    Huffman coding is lossless. Every symbol maps to a unique code that decodes back to the original.

Other ways to work this

The same content, four other ways.

Everything in your subscription

Runs, plus a mode for every other kind of session.

1Flash
2Imposter
3Fade
4Brain dump

Learn every subtopic in runs of four questions

Facts flash and fade, a wrong word hides in some of them, and a brain dump decides which questions are locked in.

Data Structures: Arrays, Records and Hash Tables
Stacks, Queues, Linked Lists and Trees
Boolean Logic and Simplification
Algorithms, Pseudo-Code and Programming Constructs

Cram the night before, weakest topic first

A quick scan finds your weakest topics. Recall each fact you missed three times in a row.

KDW to HAT.
decryptsencryptscompresses

Blank Blitz consolidates the facts

Rapid timed gap-fills on the terms and numbers you need to recall without thinking.

✓What it iscovered
~Why it happenspartly there
How long it lastsnot there yet

Explain It tests your understanding

Explain a concept in your own words and see which of its points you covered.

Backup means the copy of the data.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The faults are the mistakes students make most often.

721941163128510

Brain Breaks between sessions

Short focus games to reset attention, so the next set lands better than the last.

Every question in Data Compression, on a schedule.

Learn it in runs of four questions, each ending on a brain dump against the clock. Every question you lock in comes back the next day, then at longer gaps, each time just before you would forget it.

Or £46 a year, about £3.83 a month. Cancel anytime.