litaltwizer8834 litaltwizer8834
  • 23-08-2019
  • Computers and Technology
contestada

In a doubly linked chain implementation of a queue, what is the performance when the dequeue operation

A. O(1)

B.O(n)

C.O(logn)

D.O(n2)

Respuesta :

Cetacea
Cetacea Cetacea
  • 28-08-2019

Answer:A) O(1)

Explanation:While dequeuing operation takes place,that is the elimination of the front element from the queue.In doubled linked list/chain, the dequeue operation operates at the consecutive elements lined in the chain with O(1) time period for the eliminating the item  or returning the last value from the link along with the reference.from the chain link.Therefore, the correct option is option(A).

Answer Link

Otras preguntas

what is thoreau’s purpose in the passage from walden
How did the Americans earn a victory at Yorktown?
Solve for x 8x + 11 - 3x = 2x +1
what are welding beeds
To test Newton's law of gravity, Ben and Jerry climbed the football stadium at school and dropped an egg from the very top of the bleachers. Their egg drop data
What is a reasonable estimate for 3/2 x 5 1/4
Most people, even those who exercise regularly at low to average intensity (1 hour at the gym or a 2- to 3-mile walk several times per week), do not need an inc
Factor and find god p² - 14p
what is. the square of the number obtained when multiplied by 4A.6B.36C.72D.1296​
As the years of experience increases what is happening to the income ? Plz explain I need help !