Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

2. indicate whether a queue would be a suitable data structure to use in each of

ID: 3690877 • Letter: 2

Question

2. indicate whether a queue would be a suitable data structure to use in each of the following applications.

a. an ailing company wants to evaluate employee records so that it can 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 solove 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 average customer wiat 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 number comes up.

I. Gamblers take numbers in the lottery and win if their numbers are picked.

Explanation / Answer

Answer for Question:

queue is a First-In First-Out (FIFO)

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.

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 average customer wiat time would be affected by changing the number of checkout lines in its stores.

h. customers are to take numbers at a bakery and be served in order when their number comes up.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at drjack9650@gmail.com
Chat Now And Get Quote