paperbot · PL 论文追踪

RSS

A greedy algorithm for dropping digits

JFP vol.312021
RICHARD BIRD, SHIN-CHENG MU

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

原文摘要(Abstract)

Abstract Consider the following puzzle: given a number, remove k digits such that the resulting number is as large as possible. Various techniques are employed to derive a linear-time solution to the puzzle: we justify the structure of a greedy algorithm by predicate logic, give a constructive proof of the greedy condition using a dependently typed proof assistant and calculate the greedy step as well as the final, linear-time optimisation by equational reasoning.

链接与引用

DOI 原文 ·

BibTeX
@article{paperbot1225,
  title = {A greedy algorithm for dropping digits},
  author = {RICHARD BIRD and SHIN-CHENG MU},
  journal = {Journal of Functional Programming},
  volume = {31},
  year = {2021},
  doi = {10.1017/s0956796821000198}
}