Paper 1 2017 And Others Flashcards
1
Q
Explain the difference between dynamic and static structures
A
Static structures have a fixed size which is determined before compile time .
Whereas
Dynamic structures size can grow and shrink during run time
2
Q
Explain two differences between dynamic and static structures
A
Size
Memory - memory needed for dynamic as they pointers which are used for this and static don’t need memory.
3
Q
Static implementation is less efficient than dynamic implementation explain why?
A
This is because dynamic implementation uses a pointer which makes it easy to insert data quickly.