Free Republic
Browse · Search
General/Chat
Topics · Post Article

Skip to comments.

This Guy Just Found a Faster Way to Multiply
www.popularmechanics.com ^ | By David Grossman Oct 18, 2019

Posted on 10/21/2019 2:51:31 PM PDT by Red Badger

Because the method you learned in middle school is ridiculously slow.

Multiplying large numbers is hard. In 1971, two German professors predicted an algorithm that would make it easier, but no one ever proved it. Until now. Mathematicians from Australia and France say their algorithm can make multiplication and other kinds of arithmetic much more efficient.

================================================================

From grade school onward, complex multiplication has been a headache. But an assistant professor from the University of New South Wales Sydney in Australia has developed a new method for multiplying giant numbers together that's more efficient than the "long multiplication" so many are taught at an early age.

“More technically, we have proved a 1971 conjecture of Schönhage and Strassen about the complexity of integer multiplication,” associate professor David Harvey says in the video below.

VIDEO AT LINK

The Schönhage–Strassen algorithm, developed by two German mathematicians, was actually the fastest method of multiplication from 1971 through 2007. Although a faster method was developed in 2007, it's rarely used today.

Schönhage and Strassen predicted that an algorithm multiplying n-digit numbers using n * log(n) basic operations should exist, Harvey says. His paper is the first known proof that it does.

Harvey picks the example of 314 multiplied by 159—a large equation, sure, but much larger ones are used every day in real-life scenarios. To solve the problem, most people are taught to multiply each individual number together, and then add up the sums:

9 is multiplied by 4, 1, and 3; then 5 is multiplied by 4, 1, and 3, and so on. The result ends up with 9 digit-by-digit products.

This method is called n2 or n squared, because one must multiple n by n a number of times. It will get the correct answer, but Schönhage and Strassen designed a faster method. It was able to move beyond n2 and into something smaller, but a challenge still presented itself in the form of n * log(n).

For some, seeing a word in the middle of a math problem might be enough to make their eyes glaze over like they did in algebra class. As a refresher: log is short for logarithm, which helps people decipher exponents that make numbers squared or cubed or even something higher. So 2⁵ is 32, but expressed logarithmically, it would look like log₂(32)=5. While it may seem like a mouthful, logarithms are crucial when numbers get much larger.

The Schönhage-Strassen method is very fast, Harvey says. If a computer were to use the squared method taught in school on a problem where two numbers had a billion digits each, it would take months. A computer using the Schönhage-Strassen method could do so in 30 seconds.

But if the numbers keep rising into the trillions and beyond, the algorithm developed by Harvey and collaborator Joris van der Hoeven at École Polytechnique in France could find solutions faster than the 1971 Schönhage-Strassen algorithm.

“It means you can do all sorts of arithmetic more efficiently, for example division and square roots," he says. "You could also calculate digits of pi more efficiently than before. It even has applications to problems involving huge prime numbers.

“People have been hunting for such an algorithm for almost 50 years," he continues. It was not a forgone conclusion that someone would eventually be successful. It might have turned out that Schönhage and Strassen were wrong, and that no such algorithm is possible.

“But now we know better,” he says.


TOPICS: Business/Economy; Computers/Internet; Education; History
KEYWORDS: math; multiplication
Navigation: use the links below to view more comments.
first previous 1-2021-36 last
To: Red Badger

Faster than I can punch the numbers into a calculator?


21 posted on 10/21/2019 3:43:20 PM PDT by Tallguy (Facts be d@mned! The narrative must be protected at all costs!)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Songcraft
Augustus the Strong, Elector of Saxony, later King of Poland and Grand Duke of Lithuania (1670-1733), supposedly had 365 illegitimate children (and one legitimate child, a son).

So he knew how to multiply. How fast, I don't know. If spread out evenly over his adult life that would be only about 9 kids a year.

22 posted on 10/21/2019 3:50:02 PM PDT by Verginius Rufus
[ Post Reply | Private Reply | To 16 | View Replies]

To: Tallguy

“Faster than I can punch the numbers into a calculator?”

You didn’t read the article!


23 posted on 10/21/2019 3:53:32 PM PDT by TexasGator (Z1z)
[ Post Reply | Private Reply | To 21 | View Replies]

To: Red Badger

This same method came to me in 10th grade in 1972, in an epiphany. I showed my teacher, but we were entering the period of calculators so it was useless.


24 posted on 10/21/2019 3:56:24 PM PDT by tired&retired (Blessings)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Red Badger

Is it faster than The Trachtenberg Speed of speed math? Remember all those ads in magazines back in the 1960s?


25 posted on 10/21/2019 4:26:12 PM PDT by Ruy Dias de Bivar
[ Post Reply | Private Reply | To 1 | View Replies]

Schönhage–Strassen algorithm

https://en.wikipedia.org/wiki/Sch%C3%B6nhage%E2%80%93Strassen_algorithm


26 posted on 10/21/2019 4:59:30 PM PDT by lurked_for_a_decade (Imagination is more important than knowledge! ( e_uid == 0 ) != ( e_uid = 0 ). I Read kernel code.)
[ Post Reply | Private Reply | To 25 | View Replies]

To: lurked_for_a_decade

It’s not a very clear explanation.
I figured it out though.


27 posted on 10/21/2019 5:31:04 PM PDT by scrabblehack
[ Post Reply | Private Reply | To 26 | View Replies]

To: Red Badger

The fastest multiplication is done by illegals.


28 posted on 10/21/2019 5:36:32 PM PDT by Joe Bfstplk (No real problem has a solution.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Red Badger

Too bad he doesn’t demonstrate it. We’d all like to see how fast it works.


29 posted on 10/21/2019 5:50:31 PM PDT by GOP_Party_Animal
[ Post Reply | Private Reply | To 1 | View Replies]

To: Verginius Rufus

How did that legitimate one slip through the cracks there?

Augustus the Strong must have had trouble doing the math when trying to keep track of all those offspring.   He could have done that math a bit faster if he had just had more fingers and toes to work with...


       
       

30 posted on 10/21/2019 6:08:44 PM PDT by Songcraft
[ Post Reply | Private Reply | To 22 | View Replies]

To: steve86
Software engineer here.

The way I just solved the problem in my head was like this: 1) 314 X 1.5 (one and a half of 314) and I get 450 + 21 which is 471. But since it's 150 instead of 1.5, make that 47,100.

2) 314 X 9 = 314 X 3 X 3 = 942 X 3 = 2826.

3) 47,100 + 2826 = 49,926. Each one of those steps is fairly easy to do in your head -- a heck of lot easier than figuring out logarithms.

31 posted on 10/21/2019 6:17:02 PM PDT by Tell It Right (1st Thessalonians 5:21 -- Put everything to the test, hold fast to that which is true.)
[ Post Reply | Private Reply | To 13 | View Replies]

To: Red Badger

Except computers don’t multiply digit by digit.


32 posted on 10/21/2019 6:19:03 PM PDT by CodeToad (Arm Up! They Are!)
[ Post Reply | Private Reply | To 1 | View Replies]

To: TexasGator

I need an algorithm to help me read faster.


33 posted on 10/21/2019 6:27:18 PM PDT by MPJackal ("From my cold dead hands.")
[ Post Reply | Private Reply | To 14 | View Replies]

To: Republic_Venom

I don’t usually monkey around with Riemann zeta functions but...I do remember about Ramanujan and the taxicab number!

A much better explanation and fun too!
https://plus.maths.org/content/infinity-or-just-112

The trick
So how did the people in the Numberphile video “prove” that the natural numbers all add up to -1/12? The real answer is that they didn’t. Watching the video is like watching a magician and trying to spot them slipping the rabbit into the hat.


34 posted on 10/21/2019 7:06:27 PM PDT by DUMBGRUNT
[ Post Reply | Private Reply | To 9 | View Replies]

To: Songcraft

Hallmark loved him...366 kids, that’s a birthday card a day to buy.


35 posted on 10/21/2019 7:27:47 PM PDT by Verginius Rufus
[ Post Reply | Private Reply | To 30 | View Replies]

To: Red Badger

Back in the day you used your slide rule to do calcutions or resorted to tables of logarithms. Multiplication is accomplished by adding the logarithms of the numbers then looking up the antilog of the sum in another set of tables. I still have my old slide rule and also kept a well worn book of logs. My grandkids will someday be amused. Intetesting the Saturn V moon rocket was designed with this technology.


36 posted on 10/21/2019 8:18:32 PM PDT by The Great RJ ("Socialists are happy until they run out of other people's money." Margaret Thatcher)
[ Post Reply | Private Reply | To 1 | View Replies]


Navigation: use the links below to view more comments.
first previous 1-2021-36 last

Disclaimer: Opinions posted on Free Republic are those of the individual posters and do not necessarily represent the opinion of Free Republic or its management. All materials posted herein are protected by copyright law and the exemption for fair use of copyrighted works.

Free Republic
Browse · Search
General/Chat
Topics · Post Article

FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson