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

find the area of the shaded region of circle y below. Round your answer to the nearest tenth if necessary
I NEED HELP PLEASE, THIS IS DUE TOMORROW
help!! im stuck on delta aghh
Solve the following absolute value equations. Show the solution set and check your answers. |0.3-3/5k|-0.4=1.2
What is the name of the piece above?
Ac-225 has a half-life of 10 days. A sample has been on a shelf for a month. About how much of the sample is still radioactive?
Which statement best describes how the author introduces Owen's character in paragraph 1
Why was the legal status of Berlin in the time of its occupation after WW2 complicated?
Find three examples of advertisements with different tones and from different types of media. Complete the organizer below. You may use print or video ads, but
Which of the following elements had the smallest atomic number ?