Ask Question

In the ADT graph the method clear has efficiency

A. O (1)

B. O (n)

C. O (logn)

D. O (n2)

+1
Answers (1)
  1. 22 November, 00:41
    0
    The efficiency of ADT graph method clear is option A. O (1)

    Explanation:

    The clear method in ADT graph is used to delete the graph from the memory or simply delete the graph. Since we just have to remove the all the vertices or we can say that we have to delete the container which contains the list of vertices which takes O (1) time we don't have to traverse over anything we can simply delete it in O (1) time.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “In the ADT graph the method clear has efficiency A. O (1) B. O (n) C. O (logn) D. O (n2) ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers