Question: Imagine you have two tasks: Task A: Build a database of employees of a large company, with a functionality to quickly search for employee record

Imagine you have two tasks: Task A: Build a database of employees of a large company, with a functionality to quickly search for employee record based on his/her phone number. Task B: Build a database of friends, with a functionality to find a friend by his/her birthday, and once the friend is found, having the ability to find who among friends has his/her birthday next. What data structure (Hash/BST/BTree/Heap) would you use for Task A/B? Justify your choice.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!