Answered step by step
Verified Expert Solution
Question
1 Approved Answer
P 1 . [ 3 pts ] Use the method illustrated in class ( recursion trees in the textbook ) to derive the solution to
P pts Use the method illustrated in class recursion trees in the textbook to derive the solution to the following recurrence. Show your work. draw the recursion tree
TnTn
P pts Describe a divide and conquer algorithm to compute the square of an ndigit integer in Otime, by reducing to the squaring of three ndigit integers. Adding two numbers with k digits, and shifting a number with k digits take Ok time.
Your submission should include the following points:
Problem statement. You need not provide an example.
The main idea of the algorithm. Argue the correctness of your algorithm here,
by showing how the algebraic derivations are used by your algorithm.
Algorithm pseudocode.
Running time analysis. You can directly use the solution of the recurrence
relation worked in class aka Master Theorem recursion trees section in the
text show all the steps for the points
Hint: use the identity xy
P pts Describe a divide and conquer algorithm to compute the square of an ndigit integer in Otime, by reducing to the squaring of six ndigit integers.
Include the same points in your submission as for Problem P Is this algorithm
asymptotically faster that your algorithm from P
Hint: use the expression for
show all the steps for this question from
P ptsBONUS Describe a divide and conquer algorithm to compute the square of an ndigit integer in Otime, by reducing to the squaring of five ndigit integers. To simplify the analysis, we assume that the numbers in the recursive calls do not require more bits than the terms that make up these numbers. This means thatthe number of digits of the integers passed to the recursive calls do not exceed n
Include the same points in your submission as for Problem P Is this algorithm
asymptotically faster that your algorithm from P
Hint: investigate the expression x y zx y z
Please show all the steps for this question from P
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started