Search Header Logo

ALDA - Week 03 Complexity

Authored by Team Informatica

Computers

University

Used 618+ times

ALDA - Week 03 Complexity
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 SELECT QUESTION

45 sec • 1 pt

What kind of complexities are we interested in?

Time

Space

Running time

Cognitive

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is measured with time complexity?

The time from start to end

Number of elementary operations

Only loops

CPU cycles

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Algorithm A has a complexity O(n log(n))

Algorithm B has complexity O(n)

Does this mean that algorithm B is always faster than A?

Yes

No

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

We have the following list of numbers: 10 4 1 23 2 23 5 9 7

We want to find the number 9, which algorithm should we use?

Linear search: O(n)

Binary search: (logn)

Linear search

Binary search

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following answers has the time complexities in the correct order from faster to slowest?

O(1), O(logn), O(n), O(nlogn), O(n^2), O(2^n), O(n!)
O(n!), O(2^n), O(n^2), O(nlogn), O(n), O(logn), O(1)
O(n), O(logn), O(1), O(n^2), O(2^n), O(nlogn), O(n!)

O(1), O(logn), O(n), O(nlogn), O(n^2), O(n!), O(2^n)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the complexity of this algorithm?

O(n)

O(n^2)

O(n*logn)

O(logn)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the complexity of this algorithm?

O(n)

O(2n)

O(2^n)

O(nlogn)

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?