Skip to main content
Log in

Proof of algorithms by general snapshots

  • Published:
BIT Numerical Mathematics Aims and scope Submit manuscript

Abstract

A constructive approach to the question of proofs of algorithms is to consider proofs that an object resulting from the execution of an algorithm possesses certain static characteristics. It is shown by an elementary example how this possibility may be used to prove the correctness of an algorithm written in ALGOL 60. The stepping stone of the approach is what is called General Snapshots, i.e. expressions of static conditions existing whenever the execution of the algorithm reaches particular points. General Snapshots are further shown to be useful for constructing algorithms.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

Bibliography

  • The basic question of proof has so far been ignored in data processing to an incredible degree. A review of recent work is given in: J. McCarthy,Problems in the Theory of Computation, Proc. IFIP Congress 65, Vol. 1, 1965, pp. 219–222.

    Google Scholar 

  • Most of the work described there is heavily oriented towards the basic theoretical problems of computation. The General Snapshots of the present chapter are related to the state vectors of J. McCarthy: J. McCarthy,A Formal Description of a Subset of ALGOL, Proc. of a Conference on Formal Language Description Languages, Vienna, 1964.

  • However, the present approach, which is directly applicable in proving and constructing practical programs, is believed to be new. Similar concepts have been developed independently by Robert W. Floyd (unpublished paper, communicated privately).

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

About this article

Cite this article

Naur, P. Proof of algorithms by general snapshots. BIT 6, 310–316 (1966). https://doi.org/10.1007/BF01966091

Download citation

  • Issue Date:

  • DOI: https://doi.org/10.1007/BF01966091

Key words

Navigation