Ask Question
24 January, 01:38

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. 24 January, 03:56
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers