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

Guys help I got 22 minutes left please
How many carcinogens are in marijuana?
Joshua needed to get his computer fixed. He took it to the repair store. The technician at the store worked on the computer for 5 hours and charged him $138 for
what are 3 negative impacts about pollution
Please help I will mark BRAINLIST
The religions of Santeria and Vodou are examples of O A. the impact of tourism on the Caribbean. o B. the influence of Creole on Caribbean languages. O C. the s
It is not possible to calculate the theoretical probability of making a basketball shot, because there are too many factors involved. But you can use experiment
They've .....................to go on a trip to Landan. a) to decide b) decided c) deciding d) decide
Neville Chamberlain - Savior of the Nation or Fool of the Decade? The Munich Agreement was signed on 29 September 1938, by Britain, France, Italy and Germany.
What results will the scientist most likely obtain when placing drops of indicator on the leaves