Question: Bob is a software engineer for ABC Hospital Network. This network contains multiple clinics and hospitals in the Minneapolis metro area. Bob keeps a linked
Bob is a software engineer for ABC Hospital Network. This network contains multiple clinics and hospitals in the Minneapolis metro area. Bob keeps a linked list of Strings of hospital addresses so he can continually add or remove from the list as clinics get built or shutdown, even though this is not common. When a new location is built, Bob creates a new linked list of doctors and a new array for each doctor's patient. The linked list of doctors that work at a location is named as the location's address. For example, the linked list called "123_This_St_Brooklyn_Park" is a linked list of doctors that work at the Brooklyn Park clinic. Similarly, the array "John_Doe" lists all patient names (strings) that are treated by John Doe. Explain the structure Bob should use to model the hospital system and why. List 4 limitations of his implementation and explain how yours would improve the program. Think about things like execution time, data duplication, referencing data, memory usage, desired data (do we really only care about patient names? What happens if we want more info?), etc. You may include code snippets if it aids your explanation. You must compare one element between your implementation and Bob's implementation in regards to space/time complexity. Clearly number your 4 critiques and improvements or write 4 clear paragraphs. You must include both a critique of Bob's implementation and proposed solution. For example, I cannot say "Bob shouldn't use a linked list" and expect to earn full points. I would need to say "Bob shouldn't use a linked list because [insert reason here]. Instead, Bob should [insert recommendation here] because [insert logic behind recommendation here]". Responses should be no more than 2 pages long
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
