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 15:00
The lee family bought their home for $220,000 this year. the equation =220,000(1.038) v = 220 , 000 ( 1 . 038 ) x can be used to find the value, v, of their home after x years. which will be the value of the lee family's home in 5 years?
Answers: 1
question
Mathematics, 21.06.2019 18:30
In the following diagram it is given that dec,ab || dc, ad || eb, and ad is congruent to bc. a)why isn't abc a parallelogram even though it has a pair of parallel sides and a pair of congruent sides b)explain why be must be congruent to bc. further explain what type of triangle this makes triangle abc and what it tells you about angle 1 and angle 2c) finally why must angle 3 be congruent to angle 1? further, explain why we know that angle 3 is congruent to angle 2
Answers: 1
question
Mathematics, 21.06.2019 19:30
Complete the solution of the equation. find the value of y when x equals to 6 4x+y=20
Answers: 2
question
Mathematics, 21.06.2019 21:30
He ! a group of farmers planned to clean 80 acres of wheat per day to finish the work on schedule. right before the work started, they received a new piece of machinery that them clean 10 more acres per day than originally planned. as a result of increased productivity in the last day before the deadline they only had to clean 30 acres. how many acres of wheat did the group of farmers have to clean?
Answers: 1
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, 03.03.2020 01:50
question
Mathematics, 03.03.2020 01:50
Questions on the website: 13722359