Question

In: Computer Science

Prove that 2n+10 +n is O(2n)

Prove that 2n+10 +n is O(2n)

Solutions

Expert Solution

because 2n+10 +n is O(2n) doesn't makes sense

1)
f(n) = O(g(n)) means there are positive constants c and n0, such that 0 ≤ f(n) ≤ cg(n) for all n ≥ n0

2^(n+10) + n = O(2^n)
=>  2^(n+10) + n <= c(2^n)
Let's assume c = 1025
=>  2^(n+10) + n <= c(2^n)
=>  2^(n+10) + n <= 1025(2^n)
=>  2^10*2^n + n <= 1025(2^n)
=>  1024(2^n) + n <= 1025(2^n)
=>  n <= (2^n)
it's true for all n >= 1

so, 2^(n+10) + n = O(2^n) given c = 1025 and n0 = 1

2)
In case if it is just 2n+10 +n is O(2n), use this
f(n) = O(g(n)) means there are positive constants c and n0, such that 0 ≤ f(n) ≤ cg(n) for all n ≥ n0

2n+10 +n is O(2n)
=>  3n+10 is O(2n)
=>  3n+10 <= c(2n)
Let's assume c = 2
=>  3n+10 <= c(2n)
=>  3n+10 <= 2(2n)
=>  3n+10 <= 4n
=>  10 <= n
it's true for all n >= 10

so, 2n+10 +n is O(2n) given c = 2 and n0 = 10

Related Solutions

1.)Prove that f(n) = O(g(n)), given: F(n) = 2n + 10; g(n) = n 2.)Show that...
1.)Prove that f(n) = O(g(n)), given: F(n) = 2n + 10; g(n) = n 2.)Show that 5n2 – 15n + 100 is Θ(n2 ) 3.)Is 5n2 O(n)?
Prove the upper and lower bound of T(n) = T(n/3) + T(2n/3) + O(n)
Prove the upper and lower bound of T(n) = T(n/3) + T(2n/3) + O(n)
Prove the following by induction: 2 + 4 + 6 + …+ 2n = n(n+1) for...
Prove the following by induction: 2 + 4 + 6 + …+ 2n = n(n+1) for all integers n Show all work
Algorithm problem 4 [3.1-4] Is (2^(n+1))∈O(2^n)? Is (2^(2n))∈O(2^n)?
Algorithm problem 4 [3.1-4] Is (2^(n+1))∈O(2^n)? Is (2^(2n))∈O(2^n)?
5. Without using the method of mathematical induction, prove that 5^n − 3^n + 2n is...
5. Without using the method of mathematical induction, prove that 5^n − 3^n + 2n is divisible by 4 for all natural n.
Prove these scenarios by mathematical induction: (1) Prove n2 < 2n for all integers n>4 (2)...
Prove these scenarios by mathematical induction: (1) Prove n2 < 2n for all integers n>4 (2) Prove that a finite set with n elements has 2n subsets (3) Prove that every amount of postage of 12 cents or more can be formed using just 4-cent and 5-cent stamps
For f: N x N -> N defined by f(m,n) = 2m-1(2n-1) a) Prove: f is...
For f: N x N -> N defined by f(m,n) = 2m-1(2n-1) a) Prove: f is 1-to-1 b) Prove: f is onto c) Prove {1, 2} x N is countable
Let x, y be integers, and n be a natural number. Prove that x ^(2n) −...
Let x, y be integers, and n be a natural number. Prove that x ^(2n) − y ^(2n) is divisible by x + y
(1)Prove 6^(2n)-4^(2n) must be a mutiple of 20 (2)Prove 6^(2n)+4^(2n)-2 must be a multiple of 50
(1)Prove 6^(2n)-4^(2n) must be a mutiple of 20 (2)Prove 6^(2n)+4^(2n)-2 must be a multiple of 50
(5.1.24) Prove that 1/(2n) ≤ [1 · 3 · 5 · · · · · (2n...
(5.1.24) Prove that 1/(2n) ≤ [1 · 3 · 5 · · · · · (2n − 1)]/(2 · 4 · · · · · 2n) whenever n is a positive integer
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT