Chapter Opener Photo

8 ABSTRACT DATA TYPES AND SUBPROGRAMS

In the programming layer, we have moved from the concreteness of machine language, to assembly language, to pseudocode, to expressing algorithms. We then went from algorithms using simple variables to algorithms using arrays.

Now we take a step up in abstraction and talk about abstract containers: composite structures for which we do not know the implementation. In computing circles, these abstract containers are called abstract data types. We know their properties and operations and we understand which types of values they can contain, but we have no information about their internal structure or implementation. That is, we know what the operations are and what they do, but we do not know how the operations are implemented.

The algorithm design we have been using is a top-down model, in which we break a task into smaller pieces. We conclude this chapter with more about subprogram statements, which are both a way to make the code mirror the design and the way that algorithms and subalgorithms communicate.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.138.223