Overview
Prediction by Partial Matching builds context models of different lengths and uses them to drive entropy coding.
Compresses by predicting the next symbol from recent context.
Compact metadata for implementation and discovery.
Prediction by Partial Matching builds context models of different lengths and uses them to drive entropy coding.
Quick facts
Runtime and memory behavior at a glance.
Best
O(n)
Average
O(nk)
Worst
O(nk)
Space
O(km)
P(symbol | context) = count(context + symbol) / count(context)Estimates the next-symbol probability from recent matching context, with shorter-context fallback in practice.
Show recent characters selecting a probability model for the next symbol.
Prediction by Partial Matching operates in O(nk) time and O(km) space within the Statistical Compression family. Key governing relation: P(symbol | context) = count(context + symbol) / count(context). Often compared with Arithmetic Coding and Brotli.
What each reference supports for this entry.
Original reference for prediction by partial matching, adaptive contexts, and arithmetic-coded symbol probabilities.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Compression · Foundation
PPM models context probabilities rather than only static symbol frequencies.
Compare with thisPPM commonly uses arithmetic coding to encode context probabilities.
PPM models context probabilities rather than only static symbol frequencies.