Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. You work at the emergency room at a hospital. Patients come in and you evaluate the severity of their injury by assigning a real

image text in transcribed

2. You work at the emergency room at a hospital. Patients come in and you evaluate the severity of their injury by assigning a real number from1 to 100. Whoever has the highest number (and in case of ties, whoever arrived first) sees the doctors first. When a doctor is available, no time should be wasted; you want to identify the person who goes next as quickly as possible (minimize the worst case) (a) How will you handle the data, to automate this process? (b) How much time will it take to send the next patient to the doctors, assuming you've had time to set up properly? (c) How long will it take to reorganize after a patient is sent through to the doctors? (d) How long will it take to reorganize after a new patient arrives and you have evalu- ated their injury? (e) Someone in the wait room gets worse, and you assign a new number for them. How do you reorganize and how long does it take? (f) Someone miraculously gets all better and leaves (after letting you know). How do you reorganize and how long does it take? (g) Now suppose that all of the assessment numbers are values that get rounded to the first decimal (e.g., 23.6, 63.9, 44.1, etc). How do you handle the data and how does it affect the time complexity of the above situations

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Object Databases The Essentials

Authors: Mary E. S. Loomis

1st Edition

020156341X, 978-0201563412

More Books

Students also viewed these Databases questions

Question

How do Excel Pivot Tables handle data from non OLAP databases?

Answered: 1 week ago