Quiz on Algorithm Analysis

Quiz on Algorithm Analysis

University

10 Qs

quiz-placeholder

Similar activities

ABC

ABC

KG - University

12 Qs

ABC's

ABC's

KG - University

12 Qs

AI vs HI

AI vs HI

University

8 Qs

References: APA 7th ED

References: APA 7th ED

University

10 Qs

The Turing test: Can a computer pass for a human?| 4/11截止

The Turing test: Can a computer pass for a human?| 4/11截止

University

6 Qs

Structure

Structure

4th Grade - University

10 Qs

Quiz on Algorithm Analysis

Quiz on Algorithm Analysis

Assessment

Quiz

English

University

Medium

Created by

Dr.P.Shanmuga Dept

Used 4+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?