Let \(π(π)\) and \(π(π)\) be asymptotically non-negative functions. Whichβ¦
2015
LetΒ \(π(π)\)Β andΒ \(π(π)\)Β be asymptotically non-negative functions. Which of the following is correct ?
- A.
\(π(π(π)βπ(π))=πππ(π(π),π(π)) \) - B.
\(π(π(π)βπ(π))=πππ₯(π(π),π(π)) \) - C.
\(π(π(π)+π(π))=πππ(π(π),π(π)) \) - D.
\(π(π(π)+π(π))=πππ₯(π(π),π(π))\)
Attempted by 474 students.
Show answer & explanation
Correct answer: D
Answer: For asymptotically non-negative functions f(n) and g(n), Ξ(f(n)+g(n)) = Ξ(max(f(n), g(n))).
Proof outline:
Let h(n) = max(f(n), g(n)).
Since h(n) is at least each of f(n) and g(n), we have h(n) β€ f(n) + g(n).
Also f(n) + g(n) β€ h(n) + h(n) = 2Β·h(n).
Combining these inequalities gives h(n) β€ f(n)+g(n) β€ 2Β·h(n), so by the definition of Ξ we conclude f(n)+g(n) = Ξ(h(n)) = Ξ(max(f(n), g(n))).
Notes on the incorrect statements:
Claims relating Ξ(f(n)*g(n)) to min(f(n), g(n)) or to max(f(n), g(n)) are false in general. For example, f(n)=n and g(n)=n give f(n)*g(n)=n^2 while min and max are n.
The claim that Ξ(f(n)+g(n)) equals min(f(n), g(n)) is false: for f(n)=n^2 and g(n)=n the sum is Ξ(n^2) while the minimum is Ξ(n).