Metraipolis › archive › dc_b43204b0842f
Asymmetric numeral systems — Wikipedia (en)
- Source
- Wikipedia (en)
- Original
- https://en.wikipedia.org/wiki/Asymmetric_numeral_systems
- License (as archived)
- CC-BY-SA-4.0
- Archived
- 2026-11-10T05:38:39.796Z
- SHA-256 of the archived text
8d4b97016b920d19d11d8c13b9b781a37d780e8bb93c6909bac3c0de2dcda301- Stable URL of this page
https://metraipolis.com/documento/dc_b43204b0842f
How to cite
Asymmetric numeral systems — Wikipedia (en) — Wikipedia (en), https://en.wikipedia.org/wiki/Asymmetric_numeral_systems (CC-BY-SA-4.0); archived copy: https://metraipolis.com/documento/dc_b43204b0842f (Metraipolis archive dc_b43204b0842f, sha256 8d4b97016b920d19d11d8c13b9b781a37d780e8bb93c6909bac3c0de2dcda301)
BibTeX
@misc{dcb43204b0842f,
title = {Asymmetric numeral systems — Wikipedia (en)},
howpublished = {Wikipedia (en)},
url = {https://en.wikipedia.org/wiki/Asymmetric_numeral_systems},
note = {License CC-BY-SA-4.0; archived copy https://metraipolis.com/documento/dc_b43204b0842f; sha256 8d4b97016b920d19d11d8c13b9b781a37d780e8bb93c6909bac3c0de2dcda301},
year = {2026}
}Archived text
Reproduced under CC-BY-SA-4.0. Attribution: Wikipedia (en), https://en.wikipedia.org/wiki/Asymmetric_numeral_systems. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Asymmetric numeral systems (ANS) is a family of entropy encoding methods introduced by Jarosław (Jarek) Duda from Jagiellonian University, used in data compression since 2014 due to improved performance compared to previous methods. ANS combines the compression ratio of arithmetic coding (which uses a nearly accurate probability distribution), with a processing cost similar to that of Huffman coding. In the tabled ANS (tANS) variant, this is achieved by constructing a finite-state machine to operate on a large alphabet without using multiplication. Among others, ANS is used in the Facebook Zstandard compressor (also used e.g. in Linux kernel, Google Chrome browser, Android operating system, was published as RFC 8478 for MIME and HTTP), Apple LZFSE compressor, Google Draco 3D compressor (used e.g. in Pixar Universal Scene Description format) and PIK image compressor, CRAM DNA compressor from SAMtools utilities, NVIDIA nvCOMP high speed compression library, Dropbox DivANS compressor, Microsoft DirectStorage BCPack texture compressor, long-term JPEG XL and learning-based JPEG AI image compressors. The basic idea is to encode information into a single natural number x. In the standard binary number system, we can add a bit s∈{0,1} of information to x by appending s at the end of x, which gives us x′=2x+s. For an entropy coder, this is optimal if Pr(0)=Pr(1)=1/2. ANS generalizes this process for arbitrary sets of symbols s∈S with an accompanying probability distribution (ps)s∈S. In ANS, if the information from s is appended to x to result in x′, then x′≈x⋅ps−1. Equivalently, log2(x′)≈log2(x)+log2(1/ps), where log2(x) is the number of bits of information stored in the number x, and log2(1/ps) is the number of bits contained in the symbol s. For the encoding rule, the set of natural numbers is split into disjoint subsets corresponding to different symbols – like into even and odd numbers, but with densities corresponding to the probability distribution of the symbols to encode. Then to add information from symbol s into the information already stored in the current number x, we go to number x′=C(x,s)≈x/p being the position of the x-th appearance from the s-th subset. There are alternative ways to apply it in practice – direct mathematical formulas for encoding and decoding steps (uABS and rANS variants), or one can put the entire behavior into a table (tANS variant). Renormalization is used to prevent x going to infinity – transferring accumulated bits to or from the bitstream.
Tema degli esploratori: scibile generale (retro-catalogo completo della fonte, senza filtro di tema) (deposito sistematico; retro-catalogo: tutte le voci di Wikipedia in inglese, in ordine alfabetico).
Fonte: Wikipedia in inglese, voce «Asymmetric numeral systems» — https://en.wikipedia.org/wiki/Asymmetric_numeral_systems
Wikidata Q28132900: «Enthropy coding methods» (dati Wikidata in CC0 1.0) — https://www.wikidata.org/wiki/Q28132900
Autori: i contributori di Wikipedia (cronologia: https://en.wikipedia.org/wiki/Asymmetric_numeral_systems?action=history).
Licenza: Creative Commons Attribuzione-Condividi allo stesso modo 4.0 (CC BY-SA 4.0) — https://creativecommons.org/licenses/by-sa/4.0/. Il riuso richiede attribuzione e stessa licenza.
Estratto dell'introduzione non modificato nel contenuto; revisione 1363605770, consultata il 2026-11-10T05:35:36.217Z tramite l'API ufficiale di Wikipedia. Impronta SHA-256 dell'estratto: e456e0461ee84524a4874842547b877982d82621752f2d2ad0c375971f31f0a4