paperbot · PL 论文追踪

RSS

An optimal, purely functional implementation of the Garsia–Wachs algorithm

JFP vol.302020引用 2
RICHARD S. BIRD

尚未生成 AI 速览(可能缺少 API key 或等待下次运行补跑)。

原文摘要(Abstract)

The Garsia–Wachs algorithm is an algorithm for building a binary leaf tree whose cost is as small as possible. The problem and the algorithm are described in more detail below, but the task is essentially the same as that of building a Huffman coding tree with the added constraint that the fringe of the tree has to be exactly the given list of inputs (in Huffman coding, the fringe of the tree can be any permutation of the input). As we will show below, the Garsia–Wachs algorithm can be implemented with a linearithmic running time—a running time of O ( n log n ) steps for an input of length n , the same time bound as for Huffman coding.

链接与引用

DOI 原文 · PDF(开放获取) · DBLP

BibTeX
@article{Bird20,
  title = {An optimal, purely functional implementation of the Garsia–Wachs algorithm},
  author = {RICHARD S. BIRD},
  journal = {Journal of Functional Programming},
  volume = {30},
  year = {2020},
  doi = {10.1017/s0956796819000194}
}