Mathematics
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.

answer
Answers: 2

Other questions on the subject: Mathematics

image
Mathematics, 21.06.2019 16:20, maritzamartinnez
Two lines parallel to the same plane are parallel to eachother
Answers: 1
image
Mathematics, 21.06.2019 18:00, kcarstensen59070
Question: a) does the given set of points represent a linear function? how do you know? b) assume that the point (-2,4) lies on the graph of a line. what y-values could complete this set of ordered pairs that lie on the same line: (- (hint: there are several correct answ
Answers: 2
image
Mathematics, 21.06.2019 18:30, ashleytellez
41/17 as a decimal rounded to the nearest hundredth
Answers: 1
image
Mathematics, 22.06.2019 00:00, Jasoncookies23
Awindow has the shape of a rectangle with a semi circle at the top. find the approximate area of the window using the dimensions shown. 4ft by 8ft
Answers: 1
Do you know the correct answer?
The conventional way of multiplying two n-bit integers requires O(n2) time. There are much better wa...

Questions in other subjects: