Question: This exercise will test you to see if you can apply what we have learned in this course, and thus it will prepare you for

This exercise will test you to see if you can apply what we have learned in this course, and thus it will
prepare you for the final.
Q1) You are writing a program that simulates a hospital emergency departments triage. Two tasks that
need to be performed efficiently are:
a) inserting a new patients information into the waiting list when they arrive (which patient is
next seen by a doctor is determined by the severity of their ailment.)
b) removing the patient information from the waiting list.
Which of the following data structures should be used to store this waiting list? A,B,C or D. Fill in the
blank. [2pts]
A. Regular Queue
B. Stack
C. Heap-Sort Tree
D. BST (balanced

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!