.. _sphx_glr_api_gallery_information_theory_source_coding:
Source coding
-------------
Lossless compression: from the typical set to Huffman, arithmetic, and Lempel-Ziv codes.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /api/gallery/information_theory/source_coding/images/thumb/sphx_glr_plot_01_source_coding_theorem_typical_set_thumb.png
:alt:
:doc:`/api/gallery/information_theory/source_coding/plot_01_source_coding_theorem_typical_set`
.. raw:: html
Shannon's source coding theorem: the typical set (1948)
.. raw:: html
.. only:: html
.. image:: /api/gallery/information_theory/source_coding/images/thumb/sphx_glr_plot_02_shannon_fano_coding_thumb.png
:alt:
:doc:`/api/gallery/information_theory/source_coding/plot_02_shannon_fano_coding`
.. raw:: html
Shannon-Fano coding (1948-1949)
.. raw:: html
.. only:: html
.. image:: /api/gallery/information_theory/source_coding/images/thumb/sphx_glr_plot_03_kraft_mcmillan_inequality_thumb.png
:alt:
:doc:`/api/gallery/information_theory/source_coding/plot_03_kraft_mcmillan_inequality`
.. raw:: html
The Kraft-McMillan inequality (1949, 1956)
.. raw:: html
.. only:: html
.. image:: /api/gallery/information_theory/source_coding/images/thumb/sphx_glr_plot_04_huffman_coding_thumb.png
:alt:
:doc:`/api/gallery/information_theory/source_coding/plot_04_huffman_coding`
.. raw:: html
Huffman coding (1952)
.. raw:: html
.. only:: html
.. image:: /api/gallery/information_theory/source_coding/images/thumb/sphx_glr_plot_05_elias_gamma_code_thumb.png
:alt:
:doc:`/api/gallery/information_theory/source_coding/plot_05_elias_gamma_code`
.. raw:: html
Elias' universal code for the integers (1975)
.. raw:: html
.. only:: html
.. image:: /api/gallery/information_theory/source_coding/images/thumb/sphx_glr_plot_06_arithmetic_coding_thumb.png
:alt:
:doc:`/api/gallery/information_theory/source_coding/plot_06_arithmetic_coding`
.. raw:: html
Arithmetic coding (1976)
.. raw:: html
.. only:: html
.. image:: /api/gallery/information_theory/source_coding/images/thumb/sphx_glr_plot_07_lempel_ziv_compression_thumb.png
:alt:
:doc:`/api/gallery/information_theory/source_coding/plot_07_lempel_ziv_compression`
.. raw:: html
Lempel-Ziv compression (1977-1978)
.. thumbnail-parent-div-close
.. raw:: html
.. toctree::
:hidden:
/api/gallery/information_theory/source_coding/plot_01_source_coding_theorem_typical_set
/api/gallery/information_theory/source_coding/plot_02_shannon_fano_coding
/api/gallery/information_theory/source_coding/plot_03_kraft_mcmillan_inequality
/api/gallery/information_theory/source_coding/plot_04_huffman_coding
/api/gallery/information_theory/source_coding/plot_05_elias_gamma_code
/api/gallery/information_theory/source_coding/plot_06_arithmetic_coding
/api/gallery/information_theory/source_coding/plot_07_lempel_ziv_compression