English

Minimax Trees in Linear Time

Data Structures and Algorithms 2009-01-28 v2

Abstract

A minimax tree is similar to a Huffman tree except that, instead of minimizing the weighted average of the leaves' depths, it minimizes the maximum of any leaf's weight plus its depth. Golumbic (1976) introduced minimax trees and gave a Huffman-like, \Ohnlogn\Oh{n \log n}-time algorithm for building them. Drmota and Szpankowski (2002) gave another \Ohnlogn\Oh{n \log n}-time algorithm, which checks the Kraft Inequality in each step of a binary search. In this paper we show how Drmota and Szpankowski's algorithm can be made to run in linear time on a word RAM with (\Omega (\log n))-bit words. We also discuss how our solution applies to problems in data compression, group testing and circuit design.

Keywords

Cite

@article{arxiv.0812.2868,
  title  = {Minimax Trees in Linear Time},
  author = {Pawel Gawrychowski and Travis Gagie},
  journal= {arXiv preprint arXiv:0812.2868},
  year   = {2009}
}
R2 v1 2026-06-21T11:52:18.083Z