Skip to content

An exercise in translating Karatsuba Multiplication to code.

Notifications You must be signed in to change notification settings

jwp23/karatsuba-multiplication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Karatsuba Multiplication

This is an exercise done as part of an algorithm course.

The intention is that I could use this exercise to write the algorithm in other languages I want to learn, e.g. Haskell or whatever.

The lesson learned in the php implementation is the GMP library is needed to handle numbers larger than float or integer can handle. That means we had to work with the numbers as strings.

PHP implementation

From the command line php karmultiplication.php <number> <number>

About

An exercise in translating Karatsuba Multiplication to code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages