Jump to content

Recommended Posts

Posted

I'm aware of a number of algorithms for working with arbitrary-precision (i.e. bignum) numbers, like Schonhage-Strassen, Karatsuba, and Toom-Cook, (and a few others), but for a simple bignum implementation to solve a problem (I can't use IntX) which set of algorithms is the simplest?

 

I only operations I'll need to perform are the major arithmetic operations (addition, subtraction, multiplication, division, and possibly exponentiation with natural powers, but that's just multiplication on steroids), oh, and Modulo (as in, remainder-of-division).

 

I'm after the algos which are the simplest to implement in a C-style language (pointers are okay), I'm not after the tightest BigO performance figures, this is just to prove something.

 

And I need to have it done within a week too :)

 

 

More...

 

View All Our Microsoft Related Feeds

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...