August 2026
Intermediate
144 pages
4h 23m
English
Recall that we usually obtain algorithms by weakening the postconditions. The objective of this chapter is to illustrate the wide variety of postcondition-weakening approaches. We’ll use sorting as the vehicle for this purpose, and we’ll see how classical sorting algorithms (e.g., insert sort, radix sort) arise from a selected postcondition weakening. We often rely on the ability to sort, such as when sorting products for sale or files in a directory ...
Read now
Unlock full access