For each of the 2 pairs of functions I need to figure out the following:
- g(n) = Θ(h(n))?
- g(n) = O(h(n))?
- g(n) = Ω(h(n))?
- g(n) = o(h(n))?
- g(n) = ω(h(n))?
Pair one g(n) = (64)(n/4), h(n) = 256(n/8)
Pair two g(n) = n1024, h(n) 2(lg(n)*lg(n)), lg is base 2
For pair one, I have the limit as n->inf for g(n)/h(n) = inf. Therefore:
- g(n) = Θ(h(n)). No, given g(n) = O(h(n)) is not true
- g(n) = O(h(n)). No, if g(n)/h(n) headed towards 0 and not infinity
- g(n) = Ω(h(n)). Yes, given g(n) completely overtakes h(n) in speed as n increases
- g(n) = o(h(n)). No, given g(n) should never be below h(n) for some n0 > 0.
- g(n) = ω(h(n)). I think yes, given g(n) = Ω(h(n)) is true but g(n) = O(h(n)) is not. Which was the same logic for o(h(n)) in pair one.
So for pair two, I have the limit as n->inf for g(n)/h(n) = 0. Therefore:
- g(n) = Θ(h(n)). No, given g(n) = Ω(h(n)) is not true
- g(n) = O(h(n)). Yes, given g(n) completely overtaken by h(n) in speed
- g(n) = Ω(h(n)). No, if g(n)/h(n) headed towards infinity and not 0
- g(n) = o(h(n)). Yes, given g(n) = O(h(n)) is true but g(n) = Θ(h(n)) is not
- g(n) = ω(h(n)). I'm thinking no, same reasoning as g(n) = Ω(h(n)) being no
Made edits based on user plop comments.