Sciweavers

JFP
2002

The countdown problem

13 years 11 months ago
The countdown problem
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.
Graham Hutton
Added 22 Dec 2010
Updated 22 Dec 2010
Type Journal
Year 2002
Where JFP
Authors Graham Hutton
Comments (0)