

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This document from the spring 2007 semester of cmsc 433 introduces the concept of data abstraction, explaining it as the combination of objects and operations. Different categories of operations, including constructors, mutators, and observers. The abstraction function is discussed as the specification for an abstract data type's representation, and the importance of having one is emphasized. The document also covers representation invariants, their role in ensuring well-formed instances of abstract data types, and methods for implementing and checking them.
Typology: Study notes
1 / 2
This page cannot be seen from the preview
Don't miss anything!


Feb. 27, 2007Abstraction
Specification for data structure is abstract
Implementation of data structure is concrete
spec?How do you know if implementation meets the
Abstraction function : concrete abstract
class (^) IntSet (^) { int[] elts; ... (^) }
Part of the (internal) specification
public Interesting idea: Write a function to check the rep (^) boolean repOK() (^) { ...check (^) for duplicates in (^) elts... }
Cost?