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

can you tell me what Is Pleonasm?
The boy was penitent and _______ to the store clerk for stealing candy.a-bragged b-apologizedc-talked d-cordial
What is the scientific name of 'touch me not' plant? can you give an explanation about its mechanism?
sue stacked one box onto another. the bottom had the height of 2 1/3 feet and the top box had the height of 3 2/3 feet. how tall were the stacked boxes?
what is a dangling modifier?
What are the functions of:Salivary Glands...Gallbladder...Liver...Pancreas..
Our body needs iron. Certain foods are rich in iron and iron tablets are usually recommended by doctors. but neither the food nor tablets are hard like iron? Wh
what is the possessive case?
how reliable are grammar checkers?
Insert 2 irrational numbers between 2/5 and 3/4