Hostname: page-component-6766d58669-nqrmd Total loading time: 0 Render date: 2026-05-22T09:32:17.452Z Has data issue: false hasContentIssue false

Certified, total serialisers with an application to Huffman encoding

Published online by Cambridge University Press:  12 December 2023

RALF HINZE*
Affiliation:
RPTU Kaiserslautern-Landau, Germany
Rights & Permissions [Opens in a new window]

Extract

The other day, I was assembling lecture material for a course on Agda. Pursuing an application-driven approach, I was looking for correctness proofs of popular algorithms. One of my all-time favourites is Huffman data compression (Huffman, 1952). Even though it is probably safe to assume that you are familiar with this algorithmic gem, a brief reminder of the essential idea may not be amiss.

Information

Type
Functional Pearl
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2023. Published by Cambridge University Press
Figure 0

Fig. 1. A codec for natural numbers.

Supplementary material: File

Hinze supplementary material

Hinze supplementary material

Download Hinze supplementary material(File)
File 62.1 KB
Submit a response

Discussions

No Discussions have been published for this article.