Question

For simplicity in typesetting, I will use 0.59 as a stand-in for (log2(3) − 1), since...

For simplicity in typesetting, I will use 0.59 as a stand-in for (log2(3) − 1), since that is its approximate value.

Suppose that mn. The standard (grade school) algorithm for integer multiplication multiplies an n digit number by an m digit number in time O(nm).

To use the divide-and-conquer algorithm on numbers of unequal size, we can just pad out the smaller number to the same number of digits as the larger number by adding leading 0's. Then the divide-and-conquer algorithm would take time O(n1.59), independent of the smaller value m.

Explain how to hybridize the grade school algorithm and the divide-and-conquer algorithm to get an algorithm that multiplies an n digit number by an m digit number in time (with m < n) O(n m0.59). Explain your algorithm clearly and show that it has the desired time bound.

0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
For simplicity in typesetting, I will use 0.59 as a stand-in for (log2(3) − 1), since...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT