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

Last week Rachel walked 2 3/5 miles per day on each of the 7 days. During the same week, she also jogged 5 3/4 miles per day on 4 days. What was the total numbe
What is the unit rate of 1.94 foor 4 pounds of bananas?
What was the purpose of cia operations in iran and guatemala during the 1950s?
Write 103/10 as a mixed number
A runner went from 6 m/s to 2 m/s in 2 seconds, what was the acceleration?
What is 51600 to the nearest whole number?
What is a drawback of using nuclear fusion for energy?
how does the author illustrate the careful and creative ways Elizabeth Van Lew used to send messages to General Grant in the story spies in petticoats
Which two countries had conflicting ambitions and policies in the balkins?
How do you factor 24xy 16x??