We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:


Current browse context:


Change to browse by:


References & Citations

DBLP - CS Bibliography


(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo ScienceWISE logo

Computer Science > Programming Languages

Title: A greedy algorithm for dropping digits (Functional Pearl)

Abstract: Consider the puzzle: given a number, remove $k$ digits such that the resulting number is as large as possible. Various techniques were employed to derive a linear-time solution to the puzzle: predicate logic was used to justify the structure of a greedy algorithm, a dependently-typed proof assistant was used to give a constructive proof of the greedy condition, and equational reasoning was used to calculate the greedy step as well as the final, linear-time optimisation.
Subjects: Programming Languages (cs.PL)
Cite as: arXiv:2101.09700 [cs.PL]
  (or arXiv:2101.09700v1 [cs.PL] for this version)

Submission history

From: Shin-Cheng Mu [view email]
[v1] Sun, 24 Jan 2021 12:20:59 GMT (71kb,D)

Link back to: arXiv, form interface, contact.