Previous in Forum: Image of Black Hole   Next in Forum: 6 Volt Lamp in Series with MOV
Close
Close
Close
9 comments
Rate Comments: Nested
Guru

Join Date: Oct 2006
Location: 44.56024"N 15.307971E
Posts: 8277
Good Answers: 270

New Way to Multiply Large Numbers

04/13/2019 10:19 PM

Here is an interesting way to simplify the multiplication of large numbers: https://www.quantamagazine.org/mathematicians-discover-the-perfect-way-to-multiply-20190411/ Will it ever replace the old school way?

__________________
"A man never stands so tall as when he stoops to help a child." "Never argue with a stupid person.They will drag you down to their level and beat you with experience" "To create an apple pie from scratch, first you must create a universe"
Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Guru

Join Date: Apr 2010
Location: About 4000 miles from the center of the earth (+/-100 mi)
Posts: 9910
Good Answers: 1141
#1

Re: New Way to Multiply Large Numbers

04/14/2019 12:57 PM

Thanks, that's fascinating. Never thought there was an easier way to multiply!

https://www.quantamagazine.org/mathematicians-discover-the-perfect-way-to-multiply-20190411/

Register to Reply Score 1 for Good Answer
Guru

Join Date: May 2016
Posts: 1746
Good Answers: 87
#2

Re: New Way to Multiply Large Numbers

04/15/2019 10:20 AM

Interesting that the article fails to demonstrate how the process actually works.

Register to Reply
Guru

Join Date: Apr 2010
Location: About 4000 miles from the center of the earth (+/-100 mi)
Posts: 9910
Good Answers: 1141
#5
In reply to #2

Re: New Way to Multiply Large Numbers

04/16/2019 10:51 AM

It looks like multiplying units x units and tens x tens is the same for both methods. Calculating the cross products (tens x units) is what is different.

Traditional Method: (10a+b)(10c+d)=100ac+10ad+10bc+bd.

The cross product terms are 10(ad+bc).

Karatsuba Method:

Cross product terms are 10((a+b)(c+d)-ac-bd)=

10(ac+ad+bc+bd-ac-bd)=10(ad+bc)

Register to Reply
Power-User

Join Date: Jul 2010
Location: North Carolina, USA
Posts: 423
Good Answers: 9
#8
In reply to #5

Re: New Way to Multiply Large Numbers

04/17/2019 9:25 AM

But this isn't algorithm the article eventually asserts is the most efficient. I expect that is because although it takes fewer single digit calculations that one not as easy to explain in the number of words allowed.

Still interesting. I think this may be part of the basis (and confusion) of how math is taught now. There are multiple paths to the correct answer and which one is taken is not as rigidly held as the only best one.

Register to Reply
Guru

Join Date: Apr 2010
Location: About 4000 miles from the center of the earth (+/-100 mi)
Posts: 9910
Good Answers: 1141
#9
In reply to #8

Re: New Way to Multiply Large Numbers

04/17/2019 10:27 AM

You're right, the method described, Karatsuba, is not the most efficient, and it took a little head scratching to figure out what they were doing. It would be interesting to see if the other methods also optimize the cross products.

It looks like the efficiency is best if both numbers have the same number of digits and the length is 2N, as is the case with the Fast Fourier Transform (FFT).

Lots of times a particular problem can be solved more easily by a variety of tricks. There are books that describe math shortcuts. For example, in this case, 25 x 63, 25 is 1/4 of 100 and 63 is 4 x 15 with 3 left over, so the product is 1500+75.

Register to Reply
Guru
Engineering Fields - Electrical Engineering - Been there, done that. Engineering Fields - Control Engineering - New Member

Join Date: Dec 2008
Location: Long Island NY
Posts: 15601
Good Answers: 981
#3

Re: New Way to Multiply Large Numbers

04/15/2019 11:02 AM

I wonder if this will have an effect on encryption security?

__________________
"Don't disturb my circles." translation of Archimedes last words
Register to Reply
Guru
Engineering Fields - Optical Engineering - Member Engineering Fields - Engineering Physics - Member Engineering Fields - Systems Engineering - Member

Join Date: Apr 2010
Location: Trantor
Posts: 5363
Good Answers: 647
#4

Re: New Way to Multiply Large Numbers

04/16/2019 9:00 AM

It seems to me that with computers the process requires many fewer steps. Each decimal number is converted to binary, then the numbers are ‘multiplied’ using the add+shift method.

__________________
Whiskey, women -- and astrophysics. Because sometimes a problem can't be solved with just whiskey and women.
Register to Reply
Guru

Join Date: Feb 2013
Posts: 2004
Good Answers: 31
#6

Re: New Way to Multiply Large Numbers

04/16/2019 1:33 PM

There are much better ways than what has been offered here. Quickest is a calculator. After all, we have all been trained be lazy and to embrace Ai, so why not make it work.

https://www.youtube.com/watch?v=ounv5h5wjDw

A real cool calculator in this link.

https://www.youtube.com/watch?v=e4PTvXtz4GM

Register to Reply
Active Contributor

Join Date: Dec 2017
Posts: 19
Good Answers: 1
#7

Re: New Way to Multiply Large Numbers

04/16/2019 4:33 PM

Different but not better. It's like the new math they teach in elementary school now. Is this it? It's the only method my kids were taught before being handed a calculator. It's probably to discourage them from ever using a pencil and paper to multiply or divide. Try 81 x 72. Which is easier, carrying over or adding sideways in your head.

Register to Reply
Register to Reply 9 comments

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Copy to Clipboard

Users who posted comments:

IQ (1); Jpfalt (1); JRiversW (1); redfred (1); Rixter (3); Ronald Budge (1); Usbport (1)

Previous in Forum: Image of Black Hole   Next in Forum: 6 Volt Lamp in Series with MOV

Advertisement