subject
Mathematics, 06.05.2020 00:18 neptunesx

The conventional way of multiplying two n-bit integers requires O(n2) time. There are much better ways of multiplying long integers, based on a divide-and-conquer approach. For example, we can break each n-bit integer into n/2-bit halves, and produce the result by making 3 recursive calls to n/2-bit multiplications (which are themselves done in this clever way) and several additions of n/2-bit integers. Since addition of n-bit numbers only requires O(n) time, you get a recurrence for the running time of T(n) = 3T(n/2) + cn for some constant c (which, asymptotically, doesn't matter). This algorithm is sometimes referred to as the "Karatsuba-Ofman (KO) Algorithm." Hypothetically, we can beat the KO approach if we can break our two n-bit numbers into y pieces of length n/y, and perform the multiplication of n-bit numbers by using x recursive multiplications of n/y bit numbers plus any constant number of additions of n/y-bit numbers. What is the relationship between x and y that would make this hypothetical algorithm have a lower running time than the KO Algorithm? Identify one such pair below. Note, because the exact calculation requires the computation of logarithms, you may wish to find and use a scientific calculator of some sort.

ansver
Answers: 2

Another question on Mathematics

question
Mathematics, 21.06.2019 13:40
Show algebraically that f and g are inverse functions f(x)=x^2/-6; g(x)=square root of 2x+12
Answers: 1
question
Mathematics, 21.06.2019 14:30
Abcd is a parallelogram find the valuse of x
Answers: 1
question
Mathematics, 21.06.2019 21:50
Aparticular telephone number is used to receive both voice calls and fax messages. suppose that 25% of the incoming calls involve fax messages, and consider a sample of 25 incoming calls. (a) what is the expected number of calls among the 25 that involve a fax message?
Answers: 1
question
Mathematics, 22.06.2019 00:00
Afarmer has decided to divide his land area in half in order to plant soy and corn. calculate the area of the entire area so he knows how much soil is needed. each bag of soil covers 20 square yards. how many bags should the farmer purchase? (4 points) 1 bag 2 bags 3 bags 4 bags
Answers: 2
You know the right answer?
The conventional way of multiplying two n-bit integers requires O(n2) time. There are much better wa...
Questions
question
Mathematics, 18.08.2019 17:30
question
Mathematics, 18.08.2019 17:30
question
Social Studies, 18.08.2019 17:30
Questions on the website: 13722362