Abstract
Using the Quicksort Algortihm, given by van Emden, an analysis is made how Hoare's method of program verification can be applied to already existing programs. Changes to these programs become necessary to adopt them to the proving method and to the existing axioms. The interdependencies between these changes and the verification method are discussed and conclusions are draw about the applicability of Hoare's Methods for proving already existing programs.
Zusammenfassung
Die vorliegende Arbeit analysiert die Erfahrungen, die bei der Durchführung formaler Korrektheitsbeweise an schon exsiterenden Programmen gemacht wurden. Mit Hilfe der Hoareschen Methode der Programmverfikation wurde der von an Emden angegebene Quicksort Algorithmus als richtig bewiesen. Dafür was es jedoch notwendig, eine Reihe von Veränderungen an dem Algorithmus vorzunehmen, um ihn an das Beweisverfahren und die existierenden Axiome anzupassen. Die gegenseitige Einflußnahme der Veränderungen und des Beweisverfahrens werden analysiert und Schlüse über die Verwendbarkeit des Hoareschen Verifikationsverfahrens für existierende Programme werden gezogen.
Similar content being viewed by others
Explore related subjects
Discover the latest articles, news and stories from top researchers in related subjects.References
Clint, M., Hoare, C. A. R.: Program Proving: Jumps and Functions. Acta Informatica1, 214–224 (1972).
van Emden, M. H.: Increasing the Efficiency of Quicksort. CACM13, 563–567 (1970).
van Emden, M. H.: Algorithm 402: Increasing the Efficiency of Quicksort. CACM13, 693–694 (1970).
Foley, M., Haore, C. A. R.: Proof of a Recursive Program: Quicksort. The Computer Journal14, 391–395 (1971).
Hoare, C. A. R.: An axiomatic Basis for Computer Programming. CACM12, 576–580, 583 (1969).
Hoare, C. A. R.: Procedures and Parameters: An Axiomatic Approach. Symposium on the Semantics of Algorithmic Languages (Engeler, E., ed.), pp. 102–116. (Lecture Notes in Mathematics, 188.) Berlin-Heidelberg-New York: Springer 1971.
Hoare, C. A. R.: Proof of a Program: Find. CACM14, 39–45 (1971).
Studer, R.: An Application of Hoare's Method of Program Verification. Master Thesis, Institute of Computer Science, University of Stuttgart, 1974.
Author information
Authors and Affiliations
Rights and permissions
About this article
Cite this article
Neuhold, E.J., Studer, R. The use of Hoare's method of program verfification for the quicksort algorithm. Computing 18, 281–293 (1977). https://doi.org/10.1007/BF02244016
Received:
Issue Date:
DOI: https://doi.org/10.1007/BF02244016