Efficiency of Algorithms - Part 2 Flashcards
What do data structure courses actually mean when they say Big-O?
Big-Ø
Big-Omega is essentially the ____ of Big-O
opposite
big-omega defines a ___ ___
partial order
What is the difference in the definitions of Big -O and Big-Omega?
where we had f of n less than or equal to g of n before, we now have f of n greater than or equal to g of n.
T/F: Big-Theta is defined using both Big-O and Big-Omega
True
Big-Theta is the ____ of Big-Omega and Big-O
intersection
Why isn’t Big-O unique?
it is just an ordering
Rather than ___ ___ Big-Theta defines an ___ ___
partial order
equivalence relation
What does an equivalence relation mean?
when some function f is in Big-Theta of g, both functions grow at the same rate
When do we say that f and g are equivalent?
When Big-Theta of f is equal to Big-Theta of g
T/F: n and 2n are equal according to Big-Theta.
True
T/F: n and n2 are equal according to Big-Theta
False. not equal
Big-Theta groups functions into ____ ____
equivalence classes
What do all members of an equivalence class have in common?
They grow at the same rate
list the axioms required for a relation to be an equivalence relation
reflexive
Symmetric
Transitive