Indicate whether each of the following applications would be suitable for a queue. 1. An ailing company

Question:

Indicate whether each of the following applications would be suitable for a queue.

1. 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).

2. 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.

3. 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.
4. An inventory of parts is to be processed by part number.
5. An operating system is to process requests for computer resources by allocating the resources in the order in which they are requested.
6. 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.
7. A dictionary of words used by a spelling checker is to be initialized.
8. Customers are to take numbers at a bakery and be served in order when their numbers come up.
9. Gamblers are to take numbers in the lottery and win if their numbers are picked.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

C++ Plus Data Structures

ISBN: 9781284089189

6th Edition

Authors: Nell Dale, Chip Weems, Tim Richards

Question Posted: