Data Structures Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Describe three differences between static and dynamic data structures

A

Static data structures have a storage size determined at compile time
// Dynamic data structures can change size during run time

Static data structures can waste memory if the number of data items is small compared to the size of the structure

Dynamic data structures require memory to store pointers to the next item

Static data structures store data in consecutive memory locations

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

In a circular queue, which pointer are items removed and read from?

A

The front pointer

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