The Countdown Problem
Data(s) |
01/11/2002
|
---|---|
Resumo |
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. |
Formato |
application/pdf |
Identificador |
http://eprints.nottingham.ac.uk/226/1/countdown.pdf Hutton, Graham (2002) The Countdown Problem. Journal of Functional Programming, 12 (6). pp. 609-616. |
Idioma(s) |
en |
Publicador |
Cambridge University Press |
Relação |
http://eprints.nottingham.ac.uk/226/ |
Tipo |
Article PeerReviewed |