1.3 Data Structures Flashcards

1
Q

From the perspective of memory management, give one advantage and one disadvantage of using dynamic data structures.

A

Advantage: Lower memory usage as dynamic data structures only use as much memory as needed to store the data.

Disadvantage: Higher overhead as each insertion or deletion will involve memory allocation or deallocation.

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