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

How do you make a sound proof box?
In how many ways can a teacher arrange 6 students in the front row of a classroom with a total of 20 students?
if A=bh, and if b=12 and h=8, what does A equal?
what moves in or out of a substance during a change of state?
find all real number x such that 6x-21≥3 or 14x+11≤-7
When a speeding truck hits a stationary car, the car is deformed and heat is generated. What can you say about the kinetic energy of the system after the collis
What is 194 in radical form
on a weather map places that have the same temperature are joined with lines called
If the voltage is110 volts and the total resistance is 10, what is the measure of the current in the circuit?
Which is greater 7/9 or 85/100. Please help