COT 3400 - Week 2 (Mon): Growth of Functions & Big-O (Lecture Notes)

0.0(0)
studied byStudied by 0 people
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/9

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering growth of functions and Big-O concepts from the notes.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

10 Terms

1
New cards

Growth of Functions

Study of how an algorithm's running time grows with input size n, focusing on asymptotic behavior rather than exact times.

2
New cards

Big-O Notation (O(g(n)))

A representation of an upper bound on f(n) such that f(n) ≤ c·g(n) for all n ≥ n0, with constants c > 0 and n0 ≥ 0.

3
New cards

Asymptotic Growth

The behavior of a function as n grows large, ignoring constant factors and lower-order terms.

4
New cards

Upper Bound

An upper limit on the growth rate of a function; Big-O provides this bound.

5
New cards

c (positive constant in Big-O)

A positive constant used in the Big-O inequality f(n) ≤ c·g(n).

6
New cards

n0 (threshold in Big-O)

A nonnegative threshold from which the Big-O bound holds for all n ≥ n0.

7
New cards

Drop constants and lower-order terms

In Big-O analysis, ignore constant factors and terms of lower order than the leading term when comparing growth rates.

8
New cards

Dominant (leading) term

The term with the highest growth rate in f(n) as n → ∞; determines the Big-O classification.

9
New cards

Example f(n) = 3n2 + 5n + 7

This function is in O(n2) but not in O(n).

10
New cards

Activity: Classification of f(n) = n3 + 2n - O(n2) - O(n3) - O(n4)

A practice problem to identify the appropriate Big-O bound by focusing on the dominant growth term.