Massively Parallel Algorithms for Huffman Coding
Masoud Seddighin, Saeed Seddighin
Key points
From the paper's conclusion- We give the first nontrivial \MPC algorithm for Huffman coding that bypasses both limitations.
Abstract
Huffman coding is one of the oldest and most fundamental problems in computer science. Given a string of length $\TextLength$ over a general alphabet, the goal is to assign a binary codeword to each character so that no codeword is a prefix of another and the total encoded length of the string is minimized. Huffman coding is widely used in practical compression systems, including file compression. As modern datasets continue to grow, it is natural to study whether a Huffman code can be constructed efficiently in the massively parallel computation (\MPC) model. The celebrated Huffman coding algorithm admits two straightforward \MPC implementations: for any constant $\epsilon\in(0,1)$, one uses $O(\TextLength^\epsilon)$ memory per machine but requires $\Theta(\log \TextLength)$ rounds, while the other runs in $O(1)$ rounds but requires $\Theta(\sqrt{\TextLength})$ memory per machine. We give the first nontrivial \MPC algorithm for Huffman coding that bypasses both limitations. For every constant $\epsilon>0$, our algorithm uses $O_\epsilon(\log\log \TextLength)$ rounds and $\softO(\TextLength^\epsilon)$ memory per machine, while its total memory and total computation are $\softO(\TextLength)$. This provides a rare example in which an exact solution to a problem whose classical algorithm is sequential in nature can be obtained in a sublogarithmic number of \MPC rounds.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Binary Huffman Coding with Unequal Letter Costs Is NP-CompletearXiv · 2026
- Geometric Hashing in MPC with Applications to Clustering and Stochastic EmbeddingsarXiv · 2026
- First-Order Entropic Sampling of Words with Prescribed Letter Counts in Linear TimearXiv · 2026
- Computation-Friendly Compression of Matrices: Speeding up Linear and Boolean AlgebraarXiv · 2026
- Approximate Hamming Convolution via Rectangular Matrix MultiplicationarXiv · 2026
- Engineering Lightweight Burrows-Wheeler Transform Construction on the GPU via Prefix-Free ParsingarXiv · 2026