a. An ailing company wants to evaluate employee records so that it can lay off s
ID: 3652679 • Letter: A
Question
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 ptients as they check into a clinic, assigning them to doctor 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 want to run a simulation to see how 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 number comes up.
i. Gamblers take numbers in the lottery and win if their numbers are picked
Explanation / Answer
a) we can use queue b) we can use queue c) No we use stack d) we can use queue e) we use priority queue f) we can use queue g) no we can't use queue f) we can use queue i) no we don't use queue
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.