Use the Substitution Method to prove that the solution to T(n) = 2T(n/3) + n is O(n).
In this question, you will use dynamic programming to determ…
In this question, you will use dynamic programming to determine the longest common subsequence of and . Step 3. Provide the length of the longest common subsequence: Also give the longest common subsequence: Format: If is your answer for the longest common subsequence, you would enter your answer in all caps with no spaces: RJQ
In this question, you will construct the max heap that resul…
In this question, you will construct the max heap that results from using BUILD-MAX-HEAP to create a heap from the following array: . Steps 1-5 were performed above, yielding the finished max heap in Step 5. Now fill in the array A to give the array representation of the max heap. A A A A A A A A A A A
In this question, you will find the maximum subarray of the…
In this question, you will find the maximum subarray of the array A = using the θ(nlog(n)) divide and conquer algorithm discussed in class. Step 1: Give the algorithm FIND-MAXIMUM-SUBARRAY(A, low, high) which finds the maximum subarray of A from starting index “low” to ending index “high”, and returns the maximum sum. That is, complete the code following the right brace “{“: FIND-MAXIMUM-SUBARRAY(A, low, high){
Use the Substitution Method to prove that the solution to T…
Use the Substitution Method to prove that the solution to T(n) = 2T(n/3) + n is O(n).
A point (4, -3) on the terminal side of angle θ is given. Fi…
A point (4, -3) on the terminal side of angle θ is given. Find the exact value of the indicated trigonometric function. Find cos θ and csc θ.
This Bonus Question is worth 10 points if answered correctly…
This Bonus Question is worth 10 points if answered correctly, and will be added to any final score which you earn from the base 100 points possible. If you choose not to attempt it, then it will not take any points away from the base 100 points which you can earn (i.e. it will add “0”, as listed on Canvas). Give a linear time algorithm for the maximum subarray problem. Also justify the correctness and time complexity, at least informally. Hint: Solve A using information from the solution of A. You may need more than just the optimum solution for A.
In this question, you will construct the max heap that resul…
In this question, you will construct the max heap that results from using BUILD-MAX-HEAP to create a heap from the following array: . Step 1 is constructing the initial heap. Fill in tree which results after constructing the initial heap below. / \ / \ / \ / \ / \
Use the Master Theorem to give tight asymptotic bounds for t…
Use the Master Theorem to give tight asymptotic bounds for the following recurrence: T(n) = 3T(n/2) + n2log(n)
In this question, you will find the maximum subarray of the…
In this question, you will find the maximum subarray of the array A = using the θ(nlog(n)) divide and conquer algorithm discussed in class. Step 6: Use Master Theorem to demonstrate how the asymptotic bound θ(nlog(n)) is achieved for T(n) given in Step 5. (Note: T(n) must be correct in order to receive credit in this step.)