Abstract Data Types (ADT) Flashcards

1
Q

Wat is een abstract data type?

A

Een Abstracte Data Type (ADT) is een high-level mathematical model voor datastructuren dat een reeks * operations* en het gedrag van die operations definieert zonder de daadwerkelijke implementatiedetails te specificeren.

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

Wat gebruikten programmeurs voordat het concept van Abstracte Data Types (ADTs) formeel werd geïntroduceerd?

A

Voor het formele concept van Abstracte Data Types (ADTs) in de informatica ontstond, werkten programmeurs doorgaans met datastructuren en algoritmen op een minder abstracte en gestructureerde manier.

Hier is wat gebruikelijk was vóór de expliciete toepassing van ADTs:

1 primitive datatypes: (integers, floating-point, karakters)
2 Custom Data Structures

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

Noem 5 ADT voorbeelden

A

Stack, Queue, List, Dictionary of Map, Set

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

Wat is een stack en noem 2 methodes.

A

An ADT that supports two main operations, “push” to
add an element to the top of the stack and “pop” to remove
an element from the top of the stack.

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

Wat is een queue en noem 2 methodes

A

An ADT that supports “enqueue” to add an element
to the back of the queue and “dequeue” to remove an
element from the front of the queue.

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

Wat is een List en noem 2 operaties

A

An ADT that allows for adding, removing, and accessing
elements in a linear sequence

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

Wat is een dictionary of map? 2 operaties

A

An ADT that stores key-value pairs and
supports operations like inserting, retrieving, and deleting
values based on their keys.

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

Wat is een set, 2 operaties

A

An ADT that represents a collection of unique elements
and supports operations like adding, removing, and testing
for membership.

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

Welke 2 components heeft een ADT

A

An ADT typically consists of 2 main components:
1. Data: This is the underlying information that the ADT
represents. It can be any type of data, such as integers,
strings, or more complex data structures.
2. Operations: These are the functions or methods that can be
performed on the data. Operations define how you can
interact with the data, including creating, modifying, and
accessing it.

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