# Your input is therefore m and a string of numbers

• Notes
• 5

This preview shows page 2 - 4 out of 5 pages.

Your input is therefore M and a string of numbers such as D=c(3456,4444,0909,…). Your job this time is to build W from D. Everything else remains the same.

Subscribe to view the full document.

Question 2 – This is copied from Assignment 2/3 You may use the solutions from the last assignment. Please tell the markers you have done so. In simulating an ER, there are 3 stages (3 stages was sufficient, so stage 4 will not be applied): 1. Assessment. The patient is assessed by a clerk at a desk and given a priority of 0 (lowest priority) to 4 (highest priority). 2. Re-assessment. The patient is seen by a nurse who re-assesses the given priority. 3. Procedure. The patient sees a doctor and a procedure is performed. The priority given is binomial with probability 0.2. The arrivals to (1) are exponential with mean 20. The departures from (1) are exponential with mean 16. 15% of priorities are changed during the reassessment stage by the nurse. There is a 50% chance the reassessment will be to a higher priority. Priorities are never outside of the range 0 to 4. The time between departing (1) and arriving at (2) is exponential with mean 10. The departures from (2) are exponential with mean 12. The time between departing (2) and arriving at (3) is exponential with mean 8. The departures from (3) are exponential with mean 4. This code will be continued in Assignment 4. For assignment 2, I would like you to code an MM1 queue for stage 1. In assignment 2, I will ask for a GM1 for stage 2. You may use my code online. For assignment 3, I would like you to code a priority queue for Stage 2. Please assume that each code ends at a time T, defined by the TAs and anyone left in the system is ignored. Stage 1 – FINISHED! Assignment 2 Input: Arrival Rate, Departure rate, T. Output: A matrix of data that gives: a) The time person i entered the queue. b) The time person i was assessed. c) The priority given to person i.
• Spring '09
• ChristianeLemieux
• TA, Grammatical number

{[ snackBarMessage ]}

###### "Before using Course Hero my grade was at 78%. By the end of the semester my grade was at 90%. I could not have done it without all the class material I found."
— Christopher R., University of Rhode Island '15, Course Hero Intern

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern