Design & Analysis of Algorithms

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/17

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 11:43 PM on 8/31/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

18 Terms

1
New cards


Asymptotic Order of Growth

Big oh, Omega, and Theta

2
New cards

What does it mean for t(n) to be in O(g(n))?

t(n) is bounded above by some constant multiple of g(n) for all sufficiently large n.

3
New cards

What does the set O(g(n)) actually represent?

g(n) must grow at least as fast as t(n) — g(n) is an asymptotic upper bound on t(n).

4
New cards

In t(n) ≤ c·g(n) for all n ≥ n0, what do c and n0 represent?

c is a positive constant multiplier; n0 is the point after which the inequality holds for all larger n

5
New cards

To prove 100n + 5 ∈ O(n²), what's the key inequality chain?

100n + 5 ≤ 100n + n (for n ≥ 5) = 101n ≤ 101n²

Since 101n ≤ 101n² for n ≥ 1, chaining the two inequalities proves the bound.

6
New cards

What values of c and n0 does that proof give for 100n + 5 ∈ O(n²)?

c = 101, n0 = 5

7
New cards

Are the constants c and n0 in a Big-O proof unique?

No — the definition allows freedom in choosing c and n0; multiple valid pairs can work

Different valid inequality chains can lead to different but equally correct (c, n0) pairs.

8
New cards

What's an alternate pair of constants proving 100n + 5 ∈ O(n²), using 100n + 5 ≤ 100n + 5n (for n ≥ 1) = 105n?

c = 105, n0 = 1

9
New cards

In plain terms, what must be true of g(n) relative to t(n) for t(n) ∈ O(g(n))?

g(n) must grow at least as fast as t(n) — it's an asymptotic upper bound

Big-O captures an upper bound on growth rate, not an exact match.

10
New cards

What does it mean for t(n) to be in Ω(g(n))?

t(n) ≥ c·g(n) for all n ≥ n0, for some positive constant c and nonnegative integer n0

This is the formal definition of Big-Omega: t(n) is bounded below by a constant multiple of g(n) for all sufficiently large n.

11
New cards

What does the set Ω(g(n)) actually represent?

g(n) must be slower than (or equal to) t(n) in terms of order of growth — Big-Omega gives a lower bound.

12
New cards

How does the growth-rate relationship in Ω(g(n)) contrast with O(g(n))?

In O(g(n)), g(n) must be faster (or equal); in Ω(g(n)), g(n) must be slower (or equal)

Big-O gives an upper bound (g grows at least as fast as t); Big-Omega gives a lower bound (g grows no faster than t).

13
New cards

What's the key inequality used to prove n³ ∈ Ω(n²)?

n³ ≥ n² for all n ≥ 0

Since n³ grows at least as fast as n² for every n ≥ 0, the inequality holds with no lower bound needed on n.

14
New cards

What values of c and n0 prove n³ ∈ Ω(n²)?

c = 1, n0 = 0

Since the inequality n³ ≥ n² holds for every n ≥ 0, we can pick the smallest possible constants: c = 1 and n0 = 0.

15
New cards

What does it mean for t(n) to be in Θ(g(n))?

c2·g(n) ≤ t(n) ≤ c1·g(n) for all n ≥ n0, for some positive constants c1, c2 and nonnegative integer n0

This is the formal definition of Big-Theta: t(n) is sandwiched between two constant multiples of g(n) for all sufficiently large n.

16
New cards

In c2·g(n) ≤ t(n) ≤ c1·g(n) for all n ≥ n0, how do c1, c2, and n0 work together?

c2 sets the lower bound and c1 sets the upper bound, both holding from the same n0 onward

Both bounds must hold using the same n0 — t(n) is bounded both above and below by positive constant multiples of g(n).

17
New cards

What does the set Θ(g(n)) actually represent?

All functions that have the same order of growth as g(n), up to a constant multiple, as n → ∞

Θ(g(n)) is the "tight bound" set — it combines both O(g(n)) and Ω(g(n)).

18
New cards

Every quadratic function an² + bn + c with a > 0 belongs to which Theta class?

Θ(n²)

The an² term dominates for large n, and with a>0 the function is both upper- and lower-bounded by constant multiples of n² — a tight bound.