
12. Time complexity
Computers
University
Used 214+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What is the worst case running time of the above pseudo code?
O(2)
O(n)
O(n-2)
O(n2)
2.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What is the worst case running time of the above pseudo code?
O(n)
O(log n)
O(n log n)
O(n2)
3.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What is the worst case running time of the above pseudo code?
O(n)
O(log n)
O(n log n)
O(n2)
4.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What is the worst case running time of the above pseudo code?
O(n)
O(n log n)
O(n2)
O(n3)
5.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What is the worst case running time of the above pseudo code?
O(n)
O(n log n)
O(n2)
O(n3)
6.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
The number of elements in the adjacency matrix of a graph having 6 vertices is __________.
7
14
36
49
7.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
For an adjacency matrix of an undirected graph, time complexity to find if there is an edge between 2 particular vertices is _________.
O(V)
O(E)
O(1)
O(V+E)
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?