Overview
Shannon-Fano Coding is a compression method that reduces data size through coding, prediction, transform, or dictionary structure. It works best when the data matches the model, code table, predictor, or transform being used.
Shannon-Fano Coding assigns compact codes to symbols or integers.
Compact metadata for implementation and discovery.
Shannon-Fano Coding is a compression method that reduces data size through coding, prediction, transform, or dictionary structure. It works best when the data matches the model, code table, predictor, or transform being used.
Quick facts
Runtime and memory behavior at a glance.
Best
O(n)
Average
O(n)
Worst
O(n log n)
Space
O(n)
Show symbols being mapped into codes, dictionary entries, residuals, or transform coefficients.
Shannon-Fano Coding operates in O(n) time and O(n) space within the Compression family. Often compared with Huffman Coding and LZ77.
What each reference supports for this entry.
Compression textbook support for Shannon-Fano Coding's coding model, decoder behavior, and implementation tradeoffs.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Shannon-Fano Coding uses a different compression model or code representation than Huffman Coding.