Search Header Logo

Quiz on Algorithm Analysis

Authored by Dr.P.Shanmuga Dept

English

University

Used 4+ times

Quiz on Algorithm Analysis
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which notation is used to describe the upper bound of an algorithm's growth rate?

Theta Notation

Big-Oh Notation

Big-Omega Notation

Little-Oh Notation

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does 'Worst case complexity' refer to?

The minimum time an algorithm can take to complete

The maximum time an algorithm can take to complete

The best possible scenario for an algorithm

The average performance of an algorithm

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a type of asymptotic notation?

Linear Notation

Little-Omega Notation

Big-Oh Notation

Tilde Notation

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many passes does an insertion sort algorithm consist of?



a) N

b) N-1

c) N+1

d) N2

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the average case running time of an insertion sort algorithm?

O(N)

O(NlogN)

O(logN)

O(N2)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the running time of an insertion sort algorithm if the input is pre-sorted?


O(N2)


O(N log N)

O(N)

O(M log N)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

For the following question, how will the array elements look like after second pass?
34, 8, 64, 51, 32, 21

8, 21, 32, 34, 51, 64

8, 32, 34, 51, 64, 21


8, 34, 51, 64, 32, 21


8, 34, 64, 51, 32, 21

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?