channyfilthy9896 channyfilthy9896
  • 21-08-2019
  • Computers and Technology
contestada

In the ADT graph the methid addVertex has efficiency

A. O(1)

B.O(n)

C.O(logn)

D.O(n2)

Respuesta :

ExieFansler ExieFansler
  • 03-09-2019

Answer:

In ADT graph the efficiency of addVertex has efficiency O(logn).

Explanation:

The time complexity of the method addvertex in ADT graph is O(logn). addVertex method has time complexity of O(logn) because it has to divide the list in half and add the vertex according to the place where the needs to be added.

hence we conclude that the answer is O(logn).

Answer Link

Otras preguntas

Use the Distributive Property to solve the equation t + 3 = 1.
A line passes through (1,-1) and (3,5) . What is the equation of the line in slope-intercept form? A.) Y = x-2 B.) Y = 3x-5 C.) Y = 3x-4 D.) Y = 2x-3
Mr. Lockwood, your new tenant, sir. I do myself the honour of calling as soon as possible after my arrival, to express the hope that I have not inconvenienced y
15. The Salton Trough has an elevation of 69 meters below sea level. The dead Sea Depression is almost 6 times deeper. Write and find the value of an expressio
Which of the following elements would most likely form an ion with a +2 charge?Si.C.Mg.Na.P.
what is a example of a population​
negative 1 over 2 x + 1 = −x + 8
An electromagnetic wave has a frequency of 6.00x10^8 Hz. What is the wavelength?
Mary earns $16 an hour plus $20 an hour for every hour of overtime. Overtime hours are any hours more than 30 hours for the week. Part A: Create an equation tha
27. (-2 + √-8) + (5 - √-50) standard form ?​