jacquiii8772 jacquiii8772
  • 22-08-2019
  • Computers and Technology
contestada

)in the link based implementation of the ADT sorted list what is the worst case time efficiency of the remove method?

A. O(1)

B.O(logn)

C.O(n)

D.O(n2)

Respuesta :

ExieFansler ExieFansler
  • 27-08-2019

Answer:

C.O(n).

Explanation:

The worst case time complexity of remove method in linked list based implementationof  ADT  sorted list  is O(n) . The worst  case would be  when you  have to remove the  element that is placed at the end.So we have to traverse  the whole  list and reach upto that node then remove that node or element.

Answer Link

Otras preguntas

Which prefix can you add to the base word substantial to create an antonym? Write the word. A. in- B. Con-
which country has had all of these forms of government in the last 100 years?
Can any1 tell if my answer is right
A system of equations is graphed below. Which point represents the solution to this system?
why did Georgias legislature decide to make louisville the state capital in 1796
What was the main result of the Northwest Ordinance of 1787? 1. It outlawed slavery in all U.S. states 2. It created a system for creating new states 3. It set
Explain how data is represented in the Computer​
when rounding to estimate this sum, what do you do first? 389+190= A. Add the digits in the hundreds place B. round the addition problems 400+200 C. round the a
- Make a word that means "likely to do things."
Which of the following correctly defines the word coursed as it is used here? to direct one's path to move swiftly over to chase or follow to gallop or run.