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

In a linked chain implementation of a queue, the performance of the enqueue operation

A. O(1)

B.O(n)

C.O(logn)

D.O(n2)

Respuesta :

Cetacea
Cetacea Cetacea
  • 26-08-2019

Answer:B) O(n)

Explanation: Linked chain is the type of the chain that gets created through the linking of the objects.This is done by the link established between the  objects/elements with the consecutive attachment. In this chain, enqueue is the operation that functions for the insertion/addition of the elements in the queue.So, while enqueuing operation takes place in a chain, it requires the O(n) time.

Answer Link

Otras preguntas

3. How did Nazi Germany gradually isolate, segregate, impoverish, and incarcerate Jews and persecute other perceived enemies of the state between 1933-19397 PL
What’s the missing word?? The bond between the atoms in graphite's are ...
what are 3 reasons that support montag argument about why books should not be destroyed
I would like to get some examples of Newtons 1st,2nd, and 3rd Law
I ____ the idea of bugs crawling on my skin! A. Abhor B. Óbviate C. Implicate D. Inter
How does electronegativity affect bonding? (Think about ionic vs covalent).
Which of the Mathematical sentences below is/are equations?I. X – 7 = 4 ii. 7x - 3 = 21 iii. 2x – 5 > 13 iv. 6x -3 < 8
2x+3y=5×-y missing value
solve m the propotion m−15=9?
PLS PLS PLS PLS PLS ANSWER THIS CORRECTLY PLS ITS A QUIZZZZZZ