Deductive synthesis of sorting programs*

https://doi.org/10.1016/S0747-7171(89)80040-9Get rights and content
Under an Elsevier user license
open archive

Using the deductive synthesis framework developed by Manna and Waldinger we have derived a wide variety of recursive sorting programs. These derivations represent the first application of the deductive framework to the derivation of nontrivial algorithms. While the programs given were derived manually, we ultimately hope that a computer implementation of the system (of which none currently exists) will find similar programs automatically. Our derivations are intended to suggest this possibility; the proofs are short in relation to program complexity (on the order of 40 steps per program) and individual derivation steps are uncontrived. We also present a new rule for the generation of auxiliary procedures, a common “eureka” step in program construction.

Cited by (0)

*

This research was supported in part by the National Science Foundation under grants MCS-82-14523 and MCS-81-05565, by DARPA under Contract N00039-84-C-0211, by the United States Air Force Office of Scientific Research under Contract AFOSR-81-0014, by the Office of Naval Research under Contract N00014-84-C-0706, and by a contract from the International Business Machines Corportation.