mkidgellmas2432 mkidgellmas2432
  • 07-03-2020
  • Computers and Technology
contestada

Assume that you multiply the two two-digit numbers 36 and 52 using the method that does only three atomic multiplies. Show that steps of the algorithm on this example.

Respuesta :

zuwairahdahir
zuwairahdahir zuwairahdahir
  • 07-03-2020

Answer:

We can use Karatsuba algorithm to achieve the required goal as follows:

let the two numbers be X = 36 and Y = 52,

let X = X0X1 and Y = Y0Y1 ( for given example)

so, X0 = 3, X1 = 6 and Y0 = 5, Y1 = 2

Now, product of two numbers be:-

X * Y = X0X1 * Y0Y1

= 100 ( X0*Y0) + 10 (X0 * Y1 + X1 * Y0) + X1 * Y1

36 * 52 = 100 ( 3 * 5) + 10 (3 * 2 + 6 * 5) + (6 * 2)

= 1500 + 360 + 12

= 1872

by doing this we only need 3 atomic multiplications to multiply two 2-digit numbers.

Answer Link

Otras preguntas

Which type of fault is under compression?O A TransformB. Reversec. Strike slipO D. Normal​
If the geometric mean of a and 15 is 9√15, find the value of a.
3. What two characteristics do you need to include when defining a force? (a) speed and direction (b) strength and direction (c) acceleration and time (d) dista
Can someone please help!! ****This problem is multiple choice!
What is the value of x? 7 7 square root 2 14 14 square root 2
PLS ANSWER I WILL GIVE BRAINLIST AND A THANK YOU!!!!
The miss Petra psychic hotline charges 5$ For the first minute and 2$ for each additional minute. Give an equation the describes the situation
10. Write the two likely errors carried out while using ruler during measuring length of anywhy did to like me process carried out while using a ruler during me
PLEASE HELP- MATH simplify the fraction 5bc/10b^2
What is (-i)^6 ? Please don’t guess. Thanks