Skip to main content
Article thumbnail
Location of Repository

The Countdown Problem

By Graham Hutton

Abstract

We systematically develop a functional program that solves the countdown problem, a numbers game in which the aim is to construct arithmetic expressions satisfying certain constraints. Starting from a formal specification of the problem, we present a simple but inefficient program that solves the problem, and prove that this program is correct. We then use program fusion to calculate an equivalent but more efficient program, which is then further improved by exploiting arithmetic properties

Publisher: Cambridge University Press
Year: 2002
OAI identifier: oai:eprints.nottingham.ac.uk:226
Provided by: Nottingham ePrints

Suggested articles

Citations

  1. (1990). A Functional Theory of Exceptions. doi
  2. (1988). An Introduction to Functional Programming. doi
  3. (2001). Haskell 98: A Non-strict, Purely Functional Language. Available from www.haskell.org.
  4. (1993). Lazy Imperative Programming.

To submit an update or takedown request for this paper, please submit an Update/Correction/Removal Request.