Question: Describe a divide and conquer algorithm to compute the square of an n - digit integer in O ( n ^ log 2 3 )
Describe a divide and conquer algorithm to compute the square of an ndigit
integer in Onlog time, 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
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
