Discrete logs vs. factoring - MathOverflow most recent 30 from http://mathoverflow.net2013-05-23T02:05:51Zhttp://mathoverflow.net/feeds/question/3922http://www.creativecommons.org/licenses/by-nc/2.5/rdfhttp://mathoverflow.net/questions/3922/discrete-logs-vs-factoringDiscrete logs vs. factoringHarrison Brown2009-11-03T11:21:14Z2010-07-29T22:01:47Z
<p>One thing that I've never quite understood is why computing discrete logarithms (in the multiplicative group mod p) and factoring seem to be so closely related. I don't think that there's a reduction in either direction, at least when p is prime (although a quick literature search tells me that there's a <em>probabilistic</em> reduction in one direction), but there are a huge number of nontrivial similarities:</p>
<ul>
<li>Neither of them are believed to have a classical polynomial-time algorithm, but essentially the same quantum algorithm works for both.</li>
<li>Both of them serve as an easy basis for public-key cryptography, while other problems (for instance, lattice-based problems) are much more difficult to turn into working cryptosystems, and some (graph isomorphism, computing the permanent) seem to have no hope whatsoever of being useful in crypto.</li>
<li>Many of the classical algorithms for one of them are closely related to a classical algorithm for the other -- number field sieve and function field sieve, Pollard's rhos, baby-step giant-step vs. Fermat-type methods, and so on.</li>
</ul>
<p>Is there a simple reason why, even though in theory they aren't reducible to each other, in practice they behave as though they were?</p>
<p>Edit: To clarify further, as Rune points out, both factoring and discrete log can be seen as versions of the hidden subgroup problem over an abelian group. I understand why there are quantum algorithms for this, and some of the obstacles to quantum algorithms for nonabelian HSP, and even to a degree why HSP is good to base a public-key system around. My question is essentially why "they share a much closer bond that isn't seen with other abelian HSPs."</p>
http://mathoverflow.net/questions/3922/discrete-logs-vs-factoring/3941#3941Answer by Steve Flammia for Discrete logs vs. factoringSteve Flammia2009-11-03T14:53:05Z2009-11-03T23:18:04Z<p>I think the reason is that the underlying group structure in both cases is that of an Abelian group. This is indeed why Shor's algorithm can be applied to both. Specifically, when you have access to an efficient "period-finding" subroutine (such as a quantum Fourier transform), then you can solve both problems. </p>
http://mathoverflow.net/questions/3922/discrete-logs-vs-factoring/3945#3945Answer by Ilya Nikokoshev for Discrete logs vs. factoringIlya Nikokoshev2009-11-03T15:03:01Z2009-11-03T15:03:01Z<p>Actually, they <em>are</em> directly related sometimes: </p>
<blockquote>
<p>Suppose you have <code>N = pq</code> without knowing the decomposition. Now finding the order of <code>(Z/NZ)^*</code>, which is <code>(p-1)(q-1)</code>, is equivalent to factorizing <code>N</code>.</p>
</blockquote>
http://mathoverflow.net/questions/3922/discrete-logs-vs-factoring/4017#4017Answer by Rune for Discrete logs vs. factoringRune2009-11-04T00:07:17Z2009-11-04T00:07:17Z<p>Adding to Steve's answer: Both problems are special cases of the <a href="http://en.wikipedia.org/wiki/Hidden%5Fsubgroup%5Fproblem" rel="nofollow">hidden subgroup problem</a> over an abelian group. (Elliptic curve crypto also falls in the same category.)</p>
<p>We do have efficient quantum algorithms for solving the hidden subgroup problem over any abelian group. By "efficient" I mean it takes polynomially many queries AND has polynomial time complexity.</p>
<p>As for examples of non-abelian hidden subgroup problems: graph isomophism and certain lattice problems. We don't know how to solve these efficiently on a quantum computer. The WP article on <a href="http://en.wikipedia.org/wiki/Quantum%5Falgorithm" rel="nofollow">quantum algorithms</a> has more information and references.</p>
<p>Despite this similarity, factoring and discrete log share a much closer bond, which isn't seen with other abelian HSPs. I have no good explanation for that though.</p>
http://mathoverflow.net/questions/3922/discrete-logs-vs-factoring/33860#33860Answer by David Mandell Freeman for Discrete logs vs. factoringDavid Mandell Freeman2010-07-29T22:01:47Z2010-07-29T22:01:47Z<p>Another relationship is that in both cases the fundamental structure is a ring of integers modulo some other integer m (prime or composite, as the case may be). In such a ring there are distinguished "small prime" elements, 2,3,5, etc. The reason that index calculus (and the Number Field Sieve, etc) works in both cases is that you can decompose (some) elements in the ring into these small prime elements, and then find relations between these decompositions.</p>
<p>On the other hand, on elliptic curves over (prime) finite fields there is no analogous "factor base," which is why the discrete log problem is so much harder in this case.</p>
<p>So I would say that the connection is not between discrete logs and factoring, but between the multiplicative group mod p and the multiplicative group mod N = pq.</p>