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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the key characteristics of ADTs?

A
  • Encapsulation of data
  • Operations defined independent of the implementation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the advantages of ADT’s?

A
  1. Abstraction: So it simplifies design by focusing only on the important details while ignoring the implementation
  2. Modilarity: The promote separation of concerns
  3. Reusability: ADTs can used in multiple applications without modification
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

List some common ADTs

A

list
sets
linked list
queues
stacks

How well did you know this?
1
Not at all
2
3
4
5
Perfectly