Question
Indicate which structure would be a more suitable choice for each of the following applications by marking them as follows: A. Stack B. Queue C.
Indicate which structure would be a more suitable choice for each of the following applications by marking them as follows:
A. Stack
B. Queue
C. Binary search tree
1. | A bank simulation of its teller operation to see how waiting times would be affected by adding another teller. |
2. | A program to receive data that is to be saved and processed in the reverse order. |
3. | An electronic address book ordered by name. |
4. | A dictionary of words used by a spelling checker to be built and maintained. |
5. | A program to keep track of patients as they check into a medical clinic, assigning patients to doctors on a first-come, first-served basis. |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started