O'Reilly logo

Design and analysis of Algorithms, 2nd Edition by Himanshu B Dave

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

7

Design by Proof Rules

Objectives

After reading this chapter, you should understand:

  • How to design correct programs using proof rules
  • The importance of pre- and post-conditions in arguing about programs
  • How to select appropriate program statement types based on proof rules
  • The correct design of program Loops using proof rules
  • The implications of strict, ordinary and complete pre-conditions

In a room full of top software designers, if any two of them agree, that’s a majority.

—Bill Curtis

Computers do not solve problems, they execute solutions.

—Laurent Gasser

Chapter Outline

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required