Overview
Asymmetric Numeral Systems coding maintains an integer state and maps symbols into and out of that state according to their frequencies.
Encodes symbols near entropy limits using a single integer state machine.
Compact metadata for implementation and discovery.
Asymmetric Numeral Systems coding maintains an integer state and maps symbols into and out of that state according to their frequencies.
Quick facts
Runtime and memory behavior at a glance.
Best
O(n)
Average
O(n)
Worst
O(n)
Space
O(k)
bits(symbol) ~= -log2(probability(symbol))Describes the target bit cost that entropy coders try to approach.
Show symbols changing a single integer state while bits are emitted to keep it bounded.
Practical ANS implementations depend on careful table construction and bitstream ordering.
What each reference supports for this entry.
Reference for ANS entropy-coding states, symbol probabilities, and normalization behavior.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Both assign compact codes according to symbol probabilities.
ANS and range coding are modern entropy coding methods with different implementation tradeoffs.