

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The answers to question 1 to 6 of the cs1050 homework 6. It includes the use of telescoping sums and big o notation. The homework covers finding sums using telescoping series, showing that x^3 is o(x^4) but x^4 is not o(x^3), and determining if x^3 is o(g(x)) for different functions g(x).
Typology: Assignments
1 / 2
This page cannot be seen from the preview
Don't miss anything!


a) ( 1 +(− 1 )j j= 0 8
b) ( 3 j j= 0 8
j (^) ) = 3 j j= 0 8
j j= 0 8
c) ( 2 ⋅ 3 j j= 0 8
j ) = 2 ⋅ 3 j j= 0 8
j j= 0 8
39 − 1 2 ⎡ ⎣⎢ ⎤ ⎦⎥^
j ) = 2 9 − 2 0 = 511. a) (i −j) j+ 1 j= 1 2
i = 1 3
i = 1 3
i= 1 3
ak = − 1 (k + 1 ) . an −a 0 = − 1 (n + 1 )
k= 1 n
n 2 − 0 = ( 2 k − 1 ) k = 1 n
**CS1050 HW 6 Answer Key There are 130 points total over the entire homework.
b) ( 3 i + 2 j) j= 0 2
i= 0 3
i= 0 3
i= 0 3
c) j j= 0 2
i= 1 3
i = 1 3
i = 1 3
d) i 2 j 3 j= 0 3
2 ⋅ 0 +i 2 ⋅ 1 +i 2 ⋅ 8 +i 2 ⋅ 27 i= 0 2
i= 0 2
= 36 i 2 i = 0 2
k= 1 k(k^ +^1 ) n
k
(k + 1 )
k = 1 ⎦⎥ n
(k + 1 )
k
k= 1 ⎦⎥ n
( 2 k − 1 ) =n 2 k= 1 n
5) [20 points] Show that x^3 is O(x^4 ) but that x^4 is not O (x^3 ). First, we show that x^3 is O(x^4 ). We must show that constants C N and k R such that x^3 C x^4 whenever x>k. Since x^3 x^4 , it is sufficient to choose k = 1 and C = 1. Now we will show that x^4 is not O (x^3 ). We shall do a proof by contradiction. In order for x^4 to be O (x^3 ), it must be true that constants C N and k R such that x^4 C x^3 whenever x>k. By dividing both sides by x^3 , we get xC. But since x can grow without bound, there must be a k such that x>C for a given C. This contradicts our assumption; thus we conclude that x^4 is not O (x^3 ). 6) [5 points each] Is it true that x^3 is O(g(x)) if g is the given function? a. g(x) = x^2 F b. g(x) = x^3 T c. g(x) = x^2 + x^3 T d. g(x) = x^2 + x^4 T e. g(x) = 3x^ T f. g(x) = x^3 /2 T