Ask Question
11 February, 06:42

In the ADT graph the method clear has efficiency

A. O (1)

B. O (n)

C. O (logn)

D. O (n2)

+5
Answers (1)
  1. 11 February, 09:43
    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?
Get 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 there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers