Tags

prefix code

A prefix code is a type of code in which no code word is a prefix of any other code word.

Prefix codes are useful because a prefix-encoded string can be 1. smaller than its source string and 2. decoded unambiguously in time. As a result, prefix codes are ubiquitous in compression schemes.

Author: Nicholas Coltharp (mail@heraplem.xyz)

Last modified: 2026-05-18 Mon 17:22

Emacs 30.2 (Org mode 9.7.11)

Validate