Indicate whether each of the following applications would be suitable for a queue. a. An ailing company wants to evaluate employee records so as to lay off some workers on the basis of service time (the most recently hired employees are laid off first). b. A program is to keep track of patients as they check into a clinic, assigning them to doctors on a first come, first served basis. c. A program to solve a maze is to backtrack to an earlier position (the last place where a choice was made) when a dead-end position is reached. d. An inventory of parts is to be processed by part number. e. An operating system is to process requests for computer resources by allocating the resources in the order in which they are requested. f. A grocery chain wants to run a simulation to see how the average customer wait time would be affected by changing the number of checkout lines in its stores. g. A dictionary of words used by a spelling checker is to be initialized. h. Customers are to take numbers at a bakery and be served in order when their numbers come up. i. Gamblers are to take numbers in the lottery and win if their numbers are picked.
3. Indicate whether each of the following applications would be suitable for a queue.
a. An ailing company wants to evaluate employee records so as to lay off some workers
on the basis of service time (the most recently hired employees are laid off first).
b. A program is to keep track of patients as they check into a clinic, assigning them to
doctors on a first come, first served basis.
c. A program to solve a maze is to backtrack to an earlier position (the last place where a
choice was made) when a dead-end position is reached.
d. An inventory of parts is to be processed by part number.
e. An operating system is to process requests for computer resources by allocating the
resources in the order in which they are requested.
f. A grocery chain wants to run a simulation to see how the average customer wait time
would be affected by changing the number of checkout lines in its stores.
g. A dictionary of words used by a spelling checker is to be initialized.
h. Customers are to take numbers at a bakery and be served in order when their numbers
come up.
i. Gamblers are to take numbers in the lottery and win if their numbers are picked.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps