Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Addition-chain exponentiation
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Addition-subtraction–chain exponentiation== If both multiplication and division are allowed, then an [[addition-subtraction chain]] may be used to obtain even fewer total multiplications+divisions (where subtraction corresponds to division). However, the slowness of division compared to multiplication makes this technique unattractive in general. For exponentiation to [[negative number|negative]] integer powers, on the other hand, since one division is required anyway, an addition-subtraction chain is often beneficial. One such example is ''a''<sup>−31</sup>, where computing 1/''a''<sup>31</sup> by a shortest addition chain for ''a''<sup>31</sup> requires 7 multiplications and one division, whereas the shortest addition-subtraction chain requires 5 multiplications and one division: :<math>a^{-31} = a / ((((a^2)^2)^2)^2)^2 \!</math> (addition-subtraction chain, 5 mults + 1 div). For exponentiation on [[elliptic curve]]s, the inverse of a point (''x'', ''y'') is available at no cost, since it is simply (''x'', −''y''), and therefore addition-subtraction chains are optimal in this context even for positive integer exponents.<ref>François Morain and Jorge Olivos, "[http://www.numdam.org/item/ITA_1990__24_6_531_0/ Speeding up the computations on an elliptic curve using addition-subtraction chains]", ''RAIRO Informatique théoretique et application'' '''24''', pp. 531-543 (1990).</ref>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)