Results 1 to 3 of 3
- 03-14-2011, 06:48 AM #1
Member
- Join Date
- Mar 2011
- Posts
- 1
- Rep Power
- 0
Recursive multiplication and Karatsuba
Hey everyone, I've got a question where I'm sort of stuck on writing a java code for a recursive "school method" multiplication where we have input 'n' and two n digit numbers 'a' and 'b' where the output is m=a.b. I also have to use an array representation for representing numbers. Could anyone please help me out? Thanks
The basic format is a=a1.B^(k) + a0 and b=b1.B^(k) + b0 where a.b=a1.b1.B^(2k)+(a1.b0+a0.b1).B^(k)+a0.b0 and k=floor(n/2)
Also then how would you use this and implement a Karatsuba multiplication if say n>3.
- 03-14-2011, 01:24 PM #2
-
Similar Threads
-
need help with multiplication
By dakid2 in forum New To JavaReplies: 10Last Post: 03-08-2011, 03:41 AM -
Multiplication code
By bomboy in forum EclipseReplies: 2Last Post: 12-28-2010, 01:11 PM -
Multiplication table
By rjones215 in forum New To JavaReplies: 3Last Post: 10-19-2009, 04:34 PM -
Help with Multiplication
By phil028 in forum New To JavaReplies: 1Last Post: 12-06-2007, 07:39 PM -
Help with multiplication table
By Albert in forum New To JavaReplies: 1Last Post: 07-10-2007, 04:44 PM


LinkBack URL
About LinkBacks

Bookmarks