Asymptotic notation (Big-O, Big-Theta, Big-Omega) - Discrete Math
- Consider functions and . If we define , which asymptotic bound correctly characterizes ? Answer: because logarithmic bases convert multiplicatively in products First, by the identity . Therefore . Choice B incorrectly treats as remaining in the exponent. Choice C gives an unrelated expression. Choice D incorrectly doubles the original exponent.
- If and , which asymptotic relationship holds between and ? Answer: because both functions have as the dominant term When comparing asymptotic growth rates of functions with multiple exponential terms, you need to identify which term dominates and then compare the dominant terms between functions. Let's analyze each function's growth. For , as grows large, the term will dominate because grows much faster than . We can rewrite this as , showing that for large . For , the dominant term is clearly . Since both functions are dominated by terms proportional to , we have . Specifically, for sufficiently large , and , confirming the theta relationship. Choice A is correct because both functions indeed have as their dominant term. Choice B incorrectly suggests grows slower than , missing that 's term dominates its term. Choice C makes the opposite error, suggesting grows slower due to misunderstanding which term dominates in . Choice D incorrectly focuses on the different exponential bases without recognizing that dominates in both functions. Study tip: When comparing functions with multiple exponential terms, always identify the fastest-growing term first—exponentials with larger bases will always eventually dominate those with smaller bases.
- Let and . Which statement correctly compares their asymptotic growth rates? Answer: and because grows faster Using Stirling's approximation, n! ≈ √(2πn). Comparing with , we get n!/ ≈ √(2πn)/ → 0 as n → ∞. Therefore f(n) = o(g(n)), which implies f(n) = O(g(n)) and g(n) ≠ O(f(n)). Choice A is wrong about factorials being slower than all exponentials. Choice B is incorrect because they're not asymptotically equivalent. Choice C reverses the relationship.
- Consider functions where and . If , what is the tightest upper bound we can guarantee for ? Answer: No finite upper bound can be guaranteed without more information about the functions Since g(n) = Ω(n log n), g(n) could grow arbitrarily fast (e.g., g(n) = ). Even though f(n) = O(n²), the product f(n)·g(n) could be as large as O(n²)· = O() or even larger. Without an upper bound on g(n), we cannot establish any finite upper bound for h(n). Choice A assumes g(n) = O(n log n). Choice B makes the same error. Choice C misunderstands how Ω works in products.
- Which of the following statements about the function is correct? Answer: for any constant but Since = = , this function grows faster than any polynomial (because (log n)² → ∞), but slower than (because (log n)² = o(n)). Therefore f(n) = ω() for any constant k, and f(n) = o(). Choice A is wrong because f(n) grows super-polynomially. Choice B has the wrong asymptotic equivalence. Choice D is incorrect because n! grows much faster than .
- Let and . Which statement correctly describes the relationship between and ? Answer: and , so Using integral approximation, ∑(i=1 to n) i log i ≈ ∫(1 to n) x log x dx. By integration by parts, this integral equals (n² log n)/2 - n²/4 + C, which is Θ(n² log n). Since h(n) = n² log n, we have g(n) = Θ(h(n)). Choice B is wrong because g(n) = Ω(h(n)). Choice C is wrong because g(n) = O(h(n)). Choice D is wrong because both relationships hold.
- Consider the function . Which asymptotic characterization is most precise for ? Answer: because the logarithmic term in the largest summand affects the total Using integral approximation: . Using integration by parts: . Evaluating from 1 to : the dominant term is . Choice A misses the logarithmic factor. Choice C incorrectly computes the effect of the summation limit. Choice D gives the right answer but the reasoning about "throughout" is imprecise.
- Consider the function . Which of the following statements about the asymptotic behavior of is correct? Answer: and The dominant term in f(n) is 3n² log n. The function f(n) = Θ(n² log n) because both 3n² log n and 2n log n contribute to the n² log n growth, while 5n² grows slower. Since n² log n = o(n³), we also have f(n) = O(n³). Choice A is wrong because f(n) grows faster than n². Choice C is wrong because f(n) = O(n² log n). Choice D is wrong because f(n) grows faster than n².
- If and , what can be concluded about ? Answer: because dominates asymptotically Since f(n) = Θ(n³), there exist constants c₁, c₂ such that c₁n³ ≤ f(n) ≤ c₂n³ for large n. Since g(n) = O(n² log n) and n² log n = o(n³), g(n) becomes negligible compared to f(n). Therefore h(n) = f(n) + g(n) = Θ(n³). Choice A is wrong because h(n) = Ω(n³). Choice B uses incorrect notation. Choice D is wrong because h(n) = Θ(n³).
- Consider the recurrence relation with . Using the Master Theorem, what is the asymptotic complexity of ? Answer: because dominates In the Master Theorem with T(n) = aT(n/b) + f(n), we have a = 3, b = 2, f(n) = n². The critical exponent is log₂ 3 ≈ 1.585. Since f(n) = n² and 2 > log₂ 3, we're in case 3 of the Master Theorem. We need to verify that f(n) = Ω() for some ε > 0, which holds, and the regularity condition af(n/b) ≤ cf(n), which also holds. Therefore T(n) = Θ(n²). Choice A confuses the comparison direction. Choice C applies the wrong case. Choice D uses incorrect reasoning.