Question: Time complexity questions. I feel like 6 not right. Please help. Average time throw me off 6. Suppose we need to write an efficient program

Time complexity questions. I feel like 6 not right. Please help. Average time throw me off

Time complexity questions. I feel like 6 not right. Please help. Average

6. Suppose we need to write an efficient program to store N employee records for ABC Inc where each employee record is identified by unique employee id. Consider the following ways to store the records. 1. An array list sorted by employee id 2. A linked list sorted by employee id 3. A linked list not sorted 4. A balanced binary search tree with employee id as key For data structure 1-4, what is the average time to find an employee record given employee id as a key? O O O O(log N), O(N), O(N), O(log N) O(N), O(log N), O(N), O(1) O(log N), O(log N), O(N), O(log N) O(log N), O(log N), O(log N), O(1) O(log N), O(log N), O(N), 0(1) 7. In the previous question, for data structure 1-4, what is the average time to insert a new employee record given employee id as a key? O(N), O(N), O(1), O(log N) O O(N), O(log N), O(N), O(1) O O(log N),O(N), O(log N), O(log N) O O(N), O(log N), O(log N), O(1) Odlog N), O(log N), 0(1), 0(1)

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!