Search for question
Question

For each of the following scenarios, indicate whether you'd choose a STACK, a QUEUE, a LIST,or a TREE in its implementation: (a) A program to receive data that is to be saved and processed in reverse order. (b) A program to keep track of family relationships. (c) A program to keep track of the progress of a knock-out tournament in a sports league. (d) A program to keep track of patients as they check into a medical clinic, assigning patients to doctors on a first-come, first-served basis. (e) A program which enables you to perform undo and redo actions. (f) A program which prioritises assignment submission marking based on timestamp.

Fig: 1

Fig: 2

Fig: 3

Fig: 4

Fig: 5

Fig: 6

Fig: 7