Complexity Analysis Station [1]

Complexity Analysis Station [1]

University

7 Qs

quiz-placeholder

Similar activities

Innovacion

Innovacion

University - Professional Development

10 Qs

EVALUACION GLOBAL 8

EVALUACION GLOBAL 8

1st Grade - University

10 Qs

DKB4213 K1.2 Active Directory

DKB4213 K1.2 Active Directory

12th Grade - University

11 Qs

Programacion Orientada a Objetos

Programacion Orientada a Objetos

12th Grade - University

10 Qs

Condicionales en Racket

Condicionales en Racket

University

10 Qs

WN-CELLULAR CONCEPT

WN-CELLULAR CONCEPT

University

10 Qs

Taller de desarrollo de SW

Taller de desarrollo de SW

University

10 Qs

การใช้อินเทอร์เน็ตสืบค้นข้อมูลเพื่องานอาชีพ

การใช้อินเทอร์เน็ตสืบค้นข้อมูลเพื่องานอาชีพ

University

10 Qs

Complexity Analysis Station [1]

Complexity Analysis Station [1]

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Dareen Hussein

Used 38+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the execution time of g(n) in the following function?

execution time g(n) = n . execution time of f()

execution time g(n) = n^2 . execution time of f()

execution time g(n) = n log n . execution time of f()

execution time g(n) = n^2 log n . execution time of f()

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the given options provides the increasing order of asymptotic complexity of functions f1, f2, f3 and f4?

f1(n) = 2^n

f2(n) = n^(3/2)

f3(n) = nLogn

f4(n) = n^(Logn)

f3, f2, f4, f1

f3, f2, f1, f4

f2, f3, f1, f4

f2, f3, f4, f1

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the time complexity of this code

O(N)

O(Sqrt(N))

O(N / 2)

O(log N)

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the execution time of g(n) in the following function?

execution time g(n) = n^2 . execution time of f()

execution time g(n) = n log n . execution time of f()

execution time g(n) = n^2+n . execution time of f()

execution time g(n) = (n^2+n)/2 . execution time of f()

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the execution time complexity of sorting a vector?

O(n)

O(n log n)

O(log n)

O(n^2Logn)

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is asymptotic complexity in the following void function?

O(n^2)

O(n^2logn)

O(n+m)

O((n+m)^2)

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

The complexity of Binary search algorithm is

O(n)

O(log n)

O(n2)

O(n log n)

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?