Show the evolution of the line in the first 10 minutes

Assignment Help Data Structure & Algorithms
Reference no: EM13691687

Question: Assume you are at the airport, waiting for security check.  There is one line(which is a FIFO queue), and 5 security check gates.  Each person reaching the front of the queue is checked by the first available security gate.  Each security check gate has its pace of handling passengers, as follows:  gate #1, 1 person/minute, gates #2 and #3, 2 persons/minutes, and gates #4 and #5, 3 persons/minutes.  Assume that initially there are 20 people in the line; moveover, each minute other 10 person are coming to the line.  Show the evolution of the line in the first 10 minutes.  For this use a queue to model the line, add the initial passengers (give them names Passenger 1 to Passenger 10), and start distributing them to the security check gates every minute.  In each minute (for 10 minutes), show the status as follows:

- Content of the line (the queue) at the beginning, and at end of the given minute(remember that each minute other 10 passengers enter the line);

Content in the last minute (that is people checked during that minute) of each of the 5 security check gates.

Can you solve this problem? You have to satisfy the requirements specified in the instruction.

Reference no: EM13691687

Questions Cloud

Calculate the change in internal energy : Calculate the change in internal energy of the following system: a 100.0-g bar of gold is heated from 25 ?C to 50 ?C during which it absorbs 322 J of heat. Assume the volume of the gold bar remains constant.
List the six steps in the problem solving methodology : List the six steps in the problem solving methodology described in the text to be applied to computer programming assignments?
Calculate the number of joules in a btu : Problem- The use of the British thermal unit (Btu) is common in much engineering work. ABtu is the amount of heat required to raise the temperature of 1 lb of water by 1?F. Calculate the number of joules in a Btu.
What mass of naoh is needed to precipitate the cd2+ ions : Problem- What mass of NaOH is needed to precipitate the Cd2+ ions from 34.0mL of 0.510M Cd(NO3)2 solution
Show the evolution of the line in the first 10 minutes : Assume you are at the airport, waiting for security check.  There is one line(which is a FIFO queue), and 5 security check gates.  Each person reaching the front of the queue is checked by the first available security gate.
Calculate the heat of atomization to convert a molecule : Problem- Calculate the heat of atomization (the heat required to convert a molecule in the gas phase into its constituent atoms in the gas phase) ofC2HCl, using the average bond energies in the following table:
Implement a stack adt by writing a class called stack : Implement a stack ADT by writing a class called Stack. Use a static array to hold stack elements.  Instantiate the Stack class in the main function and provide a user loop and a menu so that all the Stack class member-functions, push, pop, etc.,
Calculate q for the dilution process : Problem- The starship enterprise is caught ni a time warp and Mr. Spock is forced to use the primitive technique of the 21st century to power the spaceship. He foolishly decides to generate heat energy by diluting pure sulfuric acid with water to ..
Calculate the change in ph when 4.00 ml of hcl : Problem- Calculate the change in pH when 4.00 mL of 0.100 M HCl(aq) is added to 100.0 mL of a buffer solution that is 0.100 M in NH3(aq) and 0.100 M in NH4Cl(aq).

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd