Question 4

AQA Computer Science November 2020 Paper 1 (7517/1)A level10 marks

On the specification

4.1
4.2 Fundamentals of data structures
4.2
4.2 Fundamentals of data structures
4.3
4.2 Fundamentals of data structures
Question text

4 Priority queues and linear queues are examples of data structures. 4.1 A data structure can be implemented as a dynamic data structure or as a static data structure. Discuss the advantages and disadvantages of dynamic data structures compared to static data structures. [4 marks] 4.2 Describe the steps involved in adding an item to a linear queue that has been implemented as a static data structure using an array. Your answer should include a description of how any pointers are used and changed. [3 marks] 4.3 For a priority queue, the process to determine where a new item should be added is more complex than it is with a linear queue. Describe the steps involved when adding an item to a priority queue, implemented as a static data structure using an array, that were not required when adding an item to a linear queue. [3 marks] You are advised to spend no more than 20 minutes on this section. Enter your answers to Section B in your Electronic Answer Document. You must save this document at regular intervals. The question in this section asks you to write program code starting from a new program/project/file. You are advised to save your program at regular intervals.