Search Header Logo

12. Time complexity

Computers

University

Used 214+ times

12. Time complexity
AI

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

Media Image

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

Media Image

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

Media Image

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

Media Image

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

Media Image

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?