Click to See Complete Forum and Search --> : Help with algorithm


rafael_josem
August 16th, 2006, 03:41 PM
Hi, I need help with the following exercise.

x and y are two positive integers numbers of n digits. Write an algorithm of O(nlogn) complexity that calculates z = x.y


Thanks

Yves M
August 16th, 2006, 07:31 PM
Check out Karatsuba
http://en.wikipedia.org/wiki/Multiplication_algorithm