Search Header Logo

Analysis Algorithms Introduction

Authored by Mert Büyükdede

Computers

University

Used 17+ times

Analysis Algorithms Introduction
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

26 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

What is the correct Big O notation for an algorithm where the number of operations (steps) can be expressed as:

4n3 +3n log⁡2n  + 2734n^3\ +3n\ \log_2n\ \ +\ 273   n is the size of the input.

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

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

O(log⁡2n)O\left(\log_2n\right)  

O(273)O\left(273\right)  

O(n3)O\left(n^3\right)  

2.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Media Image

What is the big-Oh runtime of A()?

O(nlog⁡n)O\left(n\log_{ }n\right)

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

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

O(10⋅n)O\left(10\cdot n\right)

3.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

What is true for f(n)=log⁡nf\left(n\right)=\log_{ }n and g(n)=ng\left(n\right)=n ?

f(n)=O(g(n))f\left(n\right)=O\left(g\left(n\right)\right)

f(n)=θ(g(n))f\left(n\right)=\theta\left(g\left(n\right)\right)

f(n)=Ω(g(n))f\left(n\right)=\Omega\left(g\left(n\right)\right)

4.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

What is the maximum number of comparisons that a binary search will apply for an array of length 30.

30

15

5

3

2

5.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Media Image

What is the big-Oh runtime of B()?

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

O(n3)O\left(n^3\right)

O(30⋅n)O\left(30\cdot n\right)

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

6.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Which of these is true for f(n)=5n3+7n+13f\left(n\right)=5n^3+7n+13 and g(n) = n5g\left(n\right)\ =\ n^5 ?

f(n)=θ(g(n))f\left(n\right)=\theta\left(g\left(n\right)\right)

f(n)=Ω(g(n))f\left(n\right)=\Omega\left(g\left(n\right)\right)

f(n)=O(g(n))f\left(n\right)=O\left(g\left(n\right)\right)

7.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Media Image

What is the big-Oh runtime of C(n)?

O(10)O\left(10\right)

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

O(n2)O\left(\frac{n}{2}\right)

O(log⁡n)O\left(\log_{ }n\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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?