![]() |
|
|
#23 | |||
|
∂2ω=0
Sep 2002
República de California
103·113 Posts |
Ross, sorry for the brief thread-hijack, but by way of a Friday Humor respite, I'd like to point out that while you may not have anything suitable for the math literature in this thread yet, you probably have material for a half-dozen patents.
I happened to do an online search related to mod-inverse just now, and found myself appalled by the trivial garbage that has been patented in this and related areas, "because of its tremendous relevance to cryptography". Check out the following "groundbreaking methematical researshes!" which have been patented - these were just from clicking on 4 such links, of which I summarize 3: Converting mathematical functions to power series Quote:
Method for calculating arithmetic inverse over finite fields for use in cryptography Impressive-sounding title, no? Someone has discovered an algorithm better than the eGCD, from the sound of it. Only ... not so much: Quote:
Lastly - I'm too nauseated to delve further into this cesspit than this - JasonP and other NFS-implementers may be surprised to to find that if they have ever coded up a small-prime sieve, they may very well be violating the following revolutionary and highly non-obvious invention by several IBM researchers: Accelerated prime sieving using architecture-optimized partial prime product table Quote:
Number of zeros increases each iteration? There's a patent. 3q^2 sometimes has more than 5 good bits? There's a patent. 3q can be evaluated as 3*x or - check this out, it's frickin' brilliant - as x+x+x? There's a patent. I'm sure you can can come up with at least 2-3 more. :) |
|||
|
|
|
|
|
#24 |
|
"Gang aft agley"
Sep 2002
375410 Posts |
Anyone could. I am a regular reader of Groklaw and the patent insanity is often discussed there. I hate the current mess. It is a patent troll paradise and the tech world is increasingly entering alignments resembling cold war mutually assured destruction brinkmanship. As for all the craptastic patents out there -- it's sickening. It seems like everything that ever has been done is somehow patentable again if you throw the words "electronics" or "with a computer" at it. Taking a number to use a toilet was a patent IBM was trying for at one point. The whole system needs a big flush.
Last fiddled with by only_human on 2012-08-04 at 02:04 Reason: missing verb |
|
|
|
|
|
#25 |
|
"Gang aft agley"
Sep 2002
2×1,877 Posts |
Now the meat of the iterations.
I'm going to try to show it in very basic notation with very few words starting from the qinv value of 1. x = 2z q = x+1 qinv =1 any iteration:{ t = q*qinv; qinv = qinv * (2-t) } a few steps through it: iteration 1: t = (x+1)*1 = x + 1 2-t = -x + 1 qinv = qinvprev*(2-t) = -x + 1 Iteration 2: t = q * qinv = - x2 + 1 2-t = x2 + 1 qinv = qinvprev*(2-t) = - x3 + x2 - x + 1 Iteration 3: 2-t = x4 + 1 qinv = qinvprev * (2-t) = - x7 + x6- x5 + x4 - x3 + x2 - x + 1 What happens with t is all the inner terms vanish leaving only the first and last terms. In this iteration I show t in detail Iteration 4: t = q * qinv = (x + 1) * qinv = (x + 1) * (- x7 + x6- x5 + x4 - x3 + x2 - x + 1) = - x8 + x7- x6 + x5 - x4 + x3 - x2 + x +(- x7 + x6- x5 + x4 - x3 + x2 - x + 1) = -x8 + 1 2-t = x8 + 1 qinv = (2-t) * qinvprev = (x8 + 1)*(- x7 + x6- x5 + x4 - x3 + x2 - x + 1) = - x15 + x14. . . -x + 1 I've hidden a factor of two inside x for convenience. xn is the same as 2nzn. The sign changing caused by 2-t could be simplified by using a precomputed -q instead of q when t is calculated and then just adding 2 but at best removes a single neg instruction. Sigma notation would be better but this will do for now. Looking at this offers hints to extending to multiword computations. Last fiddled with by only_human on 2012-08-05 at 20:26 |
|
|
|
|
|
#26 | |
|
Tribal Bullet
Oct 2004
67258 Posts |
Quote:
|
|
|
|
|
|
|
#27 |
|
"Gang aft agley"
Sep 2002
375410 Posts |
x=2z
q=x+1 if qinv is started with a value of 1, successive iterations of this mod inverse algorithm are equal to longer and longer forms of this expression: (1 - x)(x2 + 1)(x4 + 1)(x8 + 1). . . Each evaluation of (2-q*qinv) is used compute the next factor to multiply qinv by to get a next value of qinv. These values can skip the lowest factors of the expression above when the initial qinv is greater than one; the factors would be different but the end result will have same functionality because the algorithm retains the values in the low bit positions of qinv that will result in 00..001 when q is multiplied by qinv. |
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Inverse of Smoothness Probability | paul0 | Math | 6 | 2017-07-25 16:41 |
| mi64: inverse does not exist | wreck | NFS@Home | 1 | 2016-05-08 15:44 |
| Inverse of functions | Raman | Math | 5 | 2011-04-13 23:29 |
| Inverse Laplace Transform | flouran | Math | 1 | 2010-01-18 23:48 |
| Google.com's unhealthy obsession with famous mathematical constants | ewmayer | Lounge | 3 | 2005-08-21 18:09 |