Abstract Data Types (ADTs) Flashcards

1
Q

What is an Abstract Data Type (ADT)?

A

A conceptual model defining a data structure’s operations without specifying implementation.

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

What are the fundamental ADTs?

A

List, Stack, Queue, Deque, Set, Map, Graph, Tree.

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

Why are ADTs important?

A

They provide a high-level abstraction, allowing programmers to focus on usage rather than implementation details.

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

How does a Set differ from a List?

A

A Set does not allow duplicate elements, whereas a List does.

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

What is a Deque

A

Double-Ended Queue: allows you to insert and. remove elements from both the front and back

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