Big O notation
Prove or disprove the following statements.
n≤C⋅nSuppose C=1 and n0=1n≤1⋅n⟹n≤nThus, the statement is true.
5n≤C⋅nSuppose C=5 and n0=15n≤5⋅n⟹5n≤5nThus, the statement is true.
10n+3≤C⋅nSuppose C=13 and n0=110n+3≤13n⟹10n+3≤10n+3n⟹3≤3nThus, the statement is true.
n≤C⋅nSuppose C=1 and n0=1n≤n⋅n⟹1≤nThus, the statement is true.
2n2+7≤C⋅n3Suppose C=9 and n0=12n2+7≤9n3Thus, the statement is true.
2n2+7≤C⋅n2Suppose C=9 and n0=12n2+7≤9⋅n2⟹2n2+7≤9n2Thus, the statement is true.
Big Ω Notation
Prove or disprove the following statements.
3n+2≥C⋅nSuppose C=3 and n0=13n+2≥3nThus, the statement is true.
n2+13n≥C⋅nSuppose C=1 and n0=1n2+13n≥nThus, the statement is true.
n2+13n≥C⋅n3Suppose C=1,000,000 and n0=1n2+13n≥1,000,000nThus, the statement is false.
n2+13n≥C⋅n2Suppose C=1 and n0=1n2+13n≥n2Thus, the statement is true.
Big Θ Notation
Prove or disprove the following statements.
13n+2=O(n) is true13n+2=Ω(n) is trueThus, the statement is true.
13n+2=O(n2) is true13n+2=Ω(n2) is falseThus, the statement is false.
13n+2=O(n) is false13n+2=Ω(n) is trueThus, the statement is false.
Comparing Growth Rates
Prove or disprove the following statements.
L=n→∞limn2n2+7=n→∞limnn(2n+n7)=n→∞lim(2n+n7)=∞Since L=∞⟹g(n)>f(n),2n2+7 is asymptotically larger than nThus, the statement is false.
L=n→∞limn32n2+7=n→∞lim3n24n=n→∞lim3n4=∞4=0Since L=0⟹g(n)<f(n),n3 is asymptotically larger than 2n2+7Thus, the statement is true.
L=n→∞limn22n2+7)=n→∞lim2n4n=2Since L=C=2>0⟹g(n)=f(n),2n2+7 and n2 have the same growth rate Thus, the statement is true.