Shannon–Fano coding

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
 
Line 3: Line 3:
 
|subcat=Compression
 
|subcat=Compression
 
}}
 
}}
'''Shannon–Fano coding''' is a general-purpose data compression algorithm. It is similar to [[Huffman coding]].
+
'''Shannon–Fano coding''' is an algorithm for constructing a bit-oriented ''prefix code'', for use in data compression. It is analogous to [[Huffman coding]].
  
[[ZIP]]'s #6 "implode" compression method, and [[PKWARE DCL Implode]], are both said to make use of Shannon–Fano coding.
+
From a file format perspective, most formats that purportedly use Shannon–Fano coding do not actually rely on any particular algorithm, so you can often think of Shannon–Fano coding as a synonym for [[Huffman coding]]. An exception would be if a format uses ''adaptive'' Shannon–Fano coding.
  
 
== Links ==
 
== Links ==
 
* [[Wikipedia:Shannon–Fano coding|Wikipedia article]]
 
* [[Wikipedia:Shannon–Fano coding|Wikipedia article]]

Latest revision as of 16:34, 28 January 2022

File Format
Name Shannon–Fano coding
Ontology

Shannon–Fano coding is an algorithm for constructing a bit-oriented prefix code, for use in data compression. It is analogous to Huffman coding.

From a file format perspective, most formats that purportedly use Shannon–Fano coding do not actually rely on any particular algorithm, so you can often think of Shannon–Fano coding as a synonym for Huffman coding. An exception would be if a format uses adaptive Shannon–Fano coding.

[edit] Links

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox