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

what is the correct form of verb in parenthesis? nosotros (tener) sueno A. tienes B. tienen C. tenemos D. tengo
solve all 1.) the associated or secondary meaning of a word or expression A: 2) the leading character, hero, or heroine of a drama or other literary work A: 3)
Match each excerpt from Emily Dickinson's "Because I Could Not Stop for Death" to the type of rhyme used. TILES= Or rather – He passed us – The Dews drew quiv
3x + 2y = 8. isolate y....... whats the answer ?
Who was the first whig president
12 divided by 5/6 find the quotient
equation for a parabola with vertex at (-3,-4) and y intercept at 8
How would you go about strengthening political parties in the united states?
What teeth are the most smallest and most symmetrical of all teeth
vivaldis "La Primavera" is an example of a A. solo concerto B. concerto grosso C. suite D. sonata