Problem 3.) Given to integers x, y such that the x, and y are n digits long each, for example if 202 is 3 digits long. Provide a divide and conquer algorithm based on the idea that Given X = XX where X₁ = x[1..] and X = X + 1...] and similarly you can breakup Y R n/2 R /2 Then X * Y = (x * 10"/ + x)(Y₂* * 10" + Y)

icon
Related questions
Question

 Please solve the following computer science problem (keep in mind we use c++ psuedo code in the course) 

Problem 3.) Given to integers x, y such that the x, and y are n digits long each, for example if
202 is 3 digits long. Provide a divide and conquer algorithm based on the idea that
Given X = XX where X₁ = x[1..] and X = X + 1...] and similarly you can breakup Y
R
n/2
R
/2
Then X * Y = (x * 10"/ + x)(Y₂* * 10" + Y)
Transcribed Image Text:Problem 3.) Given to integers x, y such that the x, and y are n digits long each, for example if 202 is 3 digits long. Provide a divide and conquer algorithm based on the idea that Given X = XX where X₁ = x[1..] and X = X + 1...] and similarly you can breakup Y R n/2 R /2 Then X * Y = (x * 10"/ + x)(Y₂* * 10" + Y)
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer