levo

Data Compression

Dictionary and Huffman coding

  • 3 things to know
  • Component 1

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.

What is inside Levo

Six ways to work the same material.

1Closed book
2Open book
3Closed book

The 3-step method, run for you

Answer cold, learn it, then prove it stuck. Levo tracks the jump between your first attempt and your last.

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

Cram a whole paper in one sitting

Sort every topic into what you know and what you do not, then drill only the weak ones.

KDW to HAT.
decryptsencryptscompresses

Blank Blitz makes facts automatic

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

AThe two are not the same.
BOpen source refers to the availability of the code.
CMuch open source software is free of charge.

Build It gets the exam shape right

Assemble a full-mark answer from its marking points, in the order an examiner wants them.

Backup means the copy of the data.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The traps are the mistakes students actually make.

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.

Attempt a question from memory, write the correct version, then attempt it again. Levo records the jump between your first attempt and your last, and brings each question back on the day you are due to forget it.

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