Big O Notation and Related Concepts (Lecture Notes)

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

1/23

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering Big O notation, Landau symbols, and algorithmic time complexity concepts from the lecture notes.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

24 Terms

1
New cards

Big O notation

A notation describing the upper bound on the growth rate of a function as input size grows; used in complexity theory, computer science, and mathematics; ignores constants and lower-order terms.

2
New cards

Landau symbol

Another name for Big O notation; named after Edmund Landau; used to describe asymptotic growth.

3
New cards

O(g(n)) formal definition (x → ∞)

There exist constants N and C such that |f(x)| ≤ C|g(x)| for all x > N.

4
New cards

O(g(x)) for x → a

There exist constants d > 0 and C > 0 such that |f(x)| ≤ C|g(x)| for all x with |x − a| < d.

5
New cards

O(1)

Constant time; the growth is bounded by a fixed constant, independent of input size.

6
New cards

O(log n)

Logarithmic growth; time grows proportionally to the logarithm of n.

7
New cards

O((log n)^c) (polylogarithmic)

Polylogarithmic growth; the log term is raised to a constant power c.

8
New cards

O(n)

Linear time; growth proportional to n.

9
New cards

O(n^2)

Quadratic time; growth proportional to n squared.

10
New cards

O(n^c)

Polynomial time; growth proportional to n raised to the power c (c > 0).

11
New cards

O(c^n)

Exponential time; growth proportional to a constant base c raised to the power n.

12
New cards

Difference between O(n^c) and O(c^n)

O(n^c) is polynomial growth; O(c^n) is exponential growth and dominates for large n.

13
New cards

Superpolynomial

Growth faster than any polynomial n^k for fixed k, but not necessarily exponential.

14
New cards

Subexponential

Growth slower than exponential c^n but faster than any polynomial.

15
New cards

Dominant term

In a sum of functions, the fastest-growing term dictates the overall order as n grows (assuming a constant number of terms).

16
New cards

Log bases equivalence

Logarithms with different bases differ by a constant factor, so O(log n) = O(log(n^c)).

17
New cards

Worst-case time

The maximum number of operations that might be performed for a given problem size.

18
New cards

Problem size / input size

The size of the problem, typically denoted n, used as the argument of complexity expressions.

19
New cards

Basic operation

A minimal unit of work such as one arithmetic operation, one assignment, one test, one read, or one write.

20
New cards

Theta notation

A tight bound: f(n) = Θ(g(n)) means f(n) is both O(g(n)) and Ω(g(n)).

21
New cards

Omega notation

A lower bound: f(n) = Ω(g(n)) means f grows at least as fast as g(n) up to a constant factor for large n.

22
New cards

Little o notation

f(n) = o(g(n)) means f grows much slower than g; formally, lim_{n→∞} f(n)/g(n) = 0 (when g(n) > 0).

23
New cards

Little omega notation

f(n) = ω(g(n)) means f grows faster than g by more than a constant factor; equivalently, g(n) = o(f(n)).

24
New cards

Time complexity

The relationship between input size and resource usage (time/space) of an algorithm, typically described with O-notation.