1.5 Abstract Data Types Flashcards
1
Q
What is an abstract datatype?
A
This is a mathematical implementation of data where the impletion is hidden and only the interface is exposed.
2
Q
What are the key characteristics of ADTs?
A
- Encapsulation of data
- Operations defined independent of the implementation
3
Q
What are the advantages of ADT’s?
A
- Abstraction: So it simplifies design by focusing only on the important details while ignoring the implementation
- Modilarity: The promote separation of concerns
- Reusability: ADTs can used in multiple applications without modification
4
Q
What are the components of ADTs?
A
Domain: Specifies the type of data the ADT can work with
Operations: The set of operations defined for the ADT
Implementation; How operations are performed
5
Q
List some common ADTs
A
list
sets
linked list
queues
stacks