Showing posts with label Correct. Show all posts
Showing posts with label Correct. Show all posts

Friday, September 25, 2015

The Design of Well-Structured and Correct Programs (Monographs in Computer Science) [Repost]




The Design of Well-Structured and Correct Programs (Monographs in Computer Science) by Suad Alagic


English | Mar. 28, 1978 | ISBN: 0387902996 | 292 Pages | DJVU | 2.37 MB




The major goal of this book is to present the techniques of top-down program design and verification of program correctness hand-in-hand. It thus aims to give readers a new way of looking at algorithms and their design, synthesizing ten years of research in the process. It provides many examples of program and proof development with the aid of a formal and informal treatment of Hoare"s method of invariants. Modem widely accepted control structures and data structures are explained in detail, together with their formal definitions, as a basis for their use in the design of correct algorithms. We provide and apply proof rules for a wide range of program structures, including conditionals, loops, procedures and recur­ sion. We analyze situations in which the restricted use of gotos can be justified, providing a new approach to proof rules for such situations. We study several important techniques of data structuring, including arrays, files, records and linked structures. The secondary goal of this book is to teach the reader how to use the programming language Pascal. This is the first text to teach Pascal pro­ gramming in a fashion which not only includes advanced algorithms which operate on advanced data structures, but also provides the full axiomatic definition of Pascal due to Wirth and Hoare. Our approach to the language is very different from that of a conventional programming text.