Question: Q 1 ) You are writing a program that simulates a hospital emergency department's triage. Two tasks that need to be performed efficiently are: a

Q1) You are writing a program that simulates a hospital emergency department's triage. Two tasks that
need to be performed efficiently are:
a) inserting a new patient's 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.
A. Regular Queue
B. Stack
C. Heap-Sort Tree
D. BST (balanced)
Explain why by how quickly a) and b) can be accomplished by it in terms of O-notations where N is the
number of patients.
a) can be done per patient in 0
b) can be done per patient in O :
 Q1) You are writing a program that simulates a hospital emergency

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 Databases Questions!