a) For each of the following scenarios choose the “best" data structure from the following list or a combination of data structures: an unsorted array, linked list, DLL, circular LL, stack, queue, BST, Heap, Graph. In each case, justify your answer briefly. i. When the developer needs constant time for insertion and deletion and Insert the element in any position of the list. ii. Implement the Most Recently Used (MRU) list. iii. Find the name in the phone book. iv. Implement Priority Queue with efficient time complexity Find the optimized route between the cities. v.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter17: Linked Lists
Section: Chapter Questions
Problem 5PE
icon
Related questions
Question
For each of the following scenarios choose the “best" data structure from the following list or a
combination of data structures: an unsorted array, linked list, DLL, circular LL, stack, queue,
BST, Heap, Graph. In each case, justify your answer briefly.
i.
2
a)
When the developer needs constant time for insertion and deletion and Insert the element
in any position of the list.
ii.
Implement the Most Recently Used (MRU) list.
Find the name in the phone book.
Implement Priority Queue with efficient time complexity
Find the optimized route between the cities.
iii.
iv.
v.
Transcribed Image Text:For each of the following scenarios choose the “best" data structure from the following list or a combination of data structures: an unsorted array, linked list, DLL, circular LL, stack, queue, BST, Heap, Graph. In each case, justify your answer briefly. i. 2 a) When the developer needs constant time for insertion and deletion and Insert the element in any position of the list. ii. Implement the Most Recently Used (MRU) list. Find the name in the phone book. Implement Priority Queue with efficient time complexity Find the optimized route between the cities. iii. iv. v.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning