Understanding Big O Notation

Understanding Big O Notation

Assessment

Interactive Video

Computers, Mathematics

9th - 12th Grade

Practice Problem

Hard

Created by

Emma Peterson

FREE Resource

Gayle Laakmann McDowell introduces Big O notation, explaining its importance in algorithmic efficiency. She uses a humorous story about data transfer via carrier pigeon to illustrate constant time (O(1)) versus linear time (O(n)). The video covers basic Big O concepts with code examples, including O(n^2) for nested loops. A real-world example of mowing a lawn demonstrates different ways to express Big O. Four key rules are discussed: adding steps, dropping constants, using different variables for different inputs, and dropping non-dominant terms. The video concludes with a call to practice Big O for interviews.

Read more

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What was the main point of the story involving a carrier pigeon and internet data transfer?

To illustrate the concept of constant time complexity.

To show that pigeons are faster than the internet.

To highlight the importance of media coverage.

To demonstrate the inefficiency of internet service providers.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Big O notation, what does O(n) represent?

Logarithmic time complexity.

Quadratic time complexity.

Constant time complexity.

Linear time complexity.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How is the complexity of printing all pairs of values in an array described?

O(n)

O(n^2)

O(1)

O(log n)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When mowing a square plot of land, which Big O notation could describe the runtime?

Both O(a) and O(s^2)

O(a)

O(s^2)

O(s)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the first rule of Big O mentioned in the video?

Add up the steps.

Drop constants.

Use different variables for different inputs.

Drop non-dominant terms.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why do we drop constants in Big O notation?

To focus on the dominant term.

Because they are irrelevant.

To simplify the expression.

To make calculations easier.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When dealing with multiple inputs, what should you do in Big O notation?

Use the same variable for all inputs.

Use different variables for different inputs.

Ignore all but one input.

Add the inputs together.

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?