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

HELPPPPP ME PLZZ ITS EASYYYY JUST NEED A LIL HELP
Need help asap with math question! Offering double points!
Random selection enhances ________ and random assignment enhances ________.
Which number(s) below belong to the solution set of the equation? Check all that apply. 18x = 198 A. 21 B. 19 C. 11 D. 9 E. 22 F.
Eq-45 what type of boat requires navigation lights?
the value of the square root of -4 is not -2 because?
Which became the first area of the United States to grant women the right to vote?
A construction crew has just finished building a road. The crew worked for 14.4 days. If they built 3.5 kilometers of road each day, find the total length of ro
North America has about? A. 350 million people B. 529 million people C. 1 billion people -Multiple Choice-
Find the value of x in the equation 2√ x + 20 = 15 + 3√ x . A. 1 B. 25 C. 16 D. –5