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.