Pohlig–Hellman algorithm: Difference between revisions

Content deleted Content added
further such cleanups: neither the parentheses nor the word "mod" should be italicized here; see WP:MOSMATH; also some other math notation edits
Line 18:
 
==Complexity==
The worst-camecase time complexity of the Pohlig–Hellman algorithm is <math>O(\sqrt n)</math> for a group of order ''n'', but it is more efficient if the order is smooth. Specifically, if <math>\sum_i p_i^{e_i}</math> is the prime factorization of ''n'', then the complexity can be stated as
<math>O(\sum_i {e_i(\log n+\sqrt p_i)})</math>.