DSA 4: Run-Time & Big-O

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

Exponential

Identify the order of complexity that is denoted by this big-O notation: O(2ⁿ)

Linear

Identify the order of complexity that is denoted by this big-O notation: O(n)

Quadratic

Identify the order of complexity that is denoted by this big-O notation: O(n²)

Constant

What order of complexity does O(1) represent?

Exponential

What order of complexity does O(2ⁿ) represent?

Logarithmic

What order of complexity does O(log n) represent?

Log-Linear

What order of complexity does O(n log n) represent?

Linear

What order of complexity does O(n) represent?

Quadratic

What order of complexity does O(n²) represent?

O(1)

Which big-O notation represents a constant order of complexity?

O(n)

Which big-O notation represents a linear order of complexity?

O(log n)

Which big-O notation represents a logarithmic order of complexity?

O(1)

Which of the following runtime complexity categories would represent the best asymptotic performance? • O(1) • O(n²) • O(n) • O(log n)

O(log n)

Which of the following runtime complexity categories would represent the best asymptotic performance? • O(n) • O(n²) • O(log n) • O(n log n)

O(n²)

Which of the following runtime complexity categories would represent the worst asymptotic performance? • O(n²) • O(1) • O(n) • O(n log n)

O(2ⁿ)

Which of the following runtime complexity categories would represent the worst asymptotic performance? • O(n²) • O(n log n) • O(2ⁿ) • O(n)


Ensembles d'études connexes

Sports Medicine Chapter 1- Careers in Sports Medicine

View Set

Chapter 2: How computers Find Each Other on Networks

View Set

hunanities: King Hezekiah of Judah

View Set

Honors Biology Unit 1 Test Study Guide

View Set

Bus 140 Operations Supply Chain Ch 6 Processes and Technology

View Set

Restaurant management ch 5 and 6

View Set

This passage is excerpted from Charlotte Bronte, Villette. Originally published in 1853. In this chapter, the narrator and her host, Mrs. Bretton, are trying to occupy a young girl, Paulina, who is staying with them

View Set

Ceutics case study practice questions exam 2

View Set