Search Header Logo

Design and Analysis of Algorithms Lab Quiz

Authored by Rajesh Tripathi

Computers

University

Used 12+ times

Design and Analysis of Algorithms Lab Quiz
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

30 sec • 1 pt

What is best case complexity of Insertion Sort?

Ω(n2)\Omega\left(n^2\right)

Ω(n)\Omega\left(n\right)

Ω(nlog2n)\Omega\left(n\log_2n\right)

Ω(1)\Omega\left(1\right)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the worst case complexity of Quick Sort?

O(n2)O\left(n^2\right)

O(nlog2n)O\left(n\log_2n\right)

O(n)O\left(n\right)

O(1)O\left(1\right)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the worst case complexity of Merge Sort?

O(n2)O\left(n^2\right)

O(nlog2n)O\left(n\log_2n\right)

O(n)O\left(n\right)

O(1)O\left(1\right)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the best case complexity of Bubble sort?

Ω(n2)\Omega\left(n^2\right)

Ω(n)\Omega\left(n\right)

Ω(nlog2n)\Omega\left(n\log_2n\right)

Ω(n2log2n)\Omega\left(n^2\log_2n\right)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the worst case complexity of selection sort?

O(n2)O\left(n^2\right)

O(nlog2n)O\left(n\log_2n\right)

O(n)O\left(n\right)

O(1)O\left(1\right)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the complexity of Quick sort while data is already sorted in increasing order?

O(1)O\left(1\right)

O(n)O\left(n\right)

O(nlog2n)O\left(n\log_2n\right)

O(n2)O\left(n^2\right)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the worst case complexity of Merge Sort while data is already sorted in increasing order?

O(1)O\left(1\right)

O(n)O\left(n\right)

O(nlog2n)O\left(n\log_2n\right)

O(n2)O\left(n^2\right)

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?