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 the Freedom of Information Act?
what is the most likely outcome for a cell that is not allowed to divide?
what is the square root of 500?
Why were the European nations interested in controlling the Muslim lands?
A coverslip should be slowly lowered from a 45° angle onto a slide in order to (1) prevent the slide from being scratched (2) stop the loss of water from
x^2 - 4x - 77 = 0 Factor and check
SAM now has 30ml of pop to share equally into glasses. he wants an axact, whole of mls in each. Work out the different ways he can share his pop. what fraction
What were the positive and negative effects of the Columbian Exchange?
What purpose should a well-crafted plot serve?
Which of the following is not a major economic activity of the Outback? a. Agriculture b. Tourism c. Fishing d. Mining