Pohlig–Hellman algorithm: Difference between revisions

Content deleted Content added
m WikiCleaner 0.99 - Repairing link to disambiguation page - You can help!
Line 18:
 
==Complexity==
The worst-case 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_iprod_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>.