Metraipolis › archive › dc_53c5c13cfc95
Addition-chain exponentiation — Wikipedia (en)
- Source
- Wikipedia (en)
- Original
- https://en.wikipedia.org/wiki/Addition-chain_exponentiation
- License (as archived)
- CC-BY-SA-4.0
- Archived
- 2026-11-07T13:41:51.080Z
- SHA-256 of the archived text
37c8f1894b2f41a051988f5485f45ff97228ecbbf55997c4599815b27693b130- Stable URL of this page
https://metraipolis.com/documento/dc_53c5c13cfc95
How to cite
Addition-chain exponentiation — Wikipedia (en) — Wikipedia (en), https://en.wikipedia.org/wiki/Addition-chain_exponentiation (CC-BY-SA-4.0); archived copy: https://metraipolis.com/documento/dc_53c5c13cfc95 (Metraipolis archive dc_53c5c13cfc95, sha256 37c8f1894b2f41a051988f5485f45ff97228ecbbf55997c4599815b27693b130)
BibTeX
@misc{dc53c5c13cfc95,
title = {Addition-chain exponentiation — Wikipedia (en)},
howpublished = {Wikipedia (en)},
url = {https://en.wikipedia.org/wiki/Addition-chain_exponentiation},
note = {License CC-BY-SA-4.0; archived copy https://metraipolis.com/documento/dc_53c5c13cfc95; sha256 37c8f1894b2f41a051988f5485f45ff97228ecbbf55997c4599815b27693b130},
year = {2026}
}Archived text
Reproduced under CC-BY-SA-4.0. Attribution: Wikipedia (en), https://en.wikipedia.org/wiki/Addition-chain_exponentiation. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
In mathematics and computer science, optimal addition-chain exponentiation is a method of exponentiation by a positive integer power that requires a minimal number of multiplications. Using the form of the shortest addition chain, with multiplication instead of addition, computes the desired exponent (instead of multiple) of the base. (This corresponds to OEIS sequence A003313 (Length of shortest addition chain for n).) Each exponentiation in the chain can be evaluated by multiplying two of the earlier exponentiation results. More generally, addition-chain exponentiation may also refer to exponentiation by non-minimal addition chains constructed by a variety of algorithms (since a shortest addition chain is very difficult to find). The shortest addition-chain algorithm requires no more multiplications than binary exponentiation and usually less. The first example of where it does better is for a15, where the binary method needs six multiplications, but the shortest addition chain requires only five: a15=a×(a×[a×a2]2)2 (binary, 6 multiplications) a15=([a2]2×a)3 (shortest addition chain, 5 multiplications). a15=a3×([a3]2)2 (also shortest addition chain, 5 multiplications). On the other hand, the determination of a shortest addition chain is hard: no efficient optimal methods are currently known for arbitrary exponents, and the related problem of finding a shortest addition chain for a given set of exponents has been proven NP-complete. Even given a shortest chain, addition-chain exponentiation requires more memory than the binary method, because it must potentially store many previous exponents from the chain. So in practice, shortest addition-chain exponentiation is primarily used for small fixed exponents for which a shortest chain can be pre-computed and is not too large. There are also several methods to approximate a shortest addition chain, and which often require fewer multiplications than binary exponentiation; binary exponentiation itself is a suboptimal addition-chain algorithm. The optimal algorithm choice depends on the context (such as the relative cost of the multiplication and the number of times a given exponent is re-used). The problem of finding the shortest addition chain cannot be solved by dynamic programming, because it does not satisfy the assumption of optimal substructure. That is, it is not sufficient to decompose the power into smaller powers, each of which is computed minimally, since the addition chains for the smaller powers may be related (to share computations). For example, in the shortest addition chain for a15 above, the subproblem for a6 must be computed as (a3)2, since a3 is re-used (as opposed to, say, a6 = a2(a2)2, which also requires three multiplies). Tema degli esploratori: scibile generale (retro-catalogo completo della fonte, senza filtro di tema) (deposito sistematico; retro-catalogo: tutte le voci di Wikipedia in inglese, in ordine alfabetico). Fonte: Wikipedia in inglese, voce «Addition-chain exponentiation» — https://en.wikipedia.org/wiki/Addition-chain_exponentiation Wikidata Q4681307: «method of exponentiation by positive integers requiring a minimal number of multiplications» (dati Wikidata in CC0 1.0) — https://www.wikidata.org/wiki/Q4681307 Autori: i contributori di Wikipedia (cronologia: https://en.wikipedia.org/wiki/Addition-chain_exponentiation?action=history). Licenza: Creative Commons Attribuzione-Condividi allo stesso modo 4.0 (CC BY-SA 4.0) — https://creativecommons.org/licenses/by-sa/4.0/. Il riuso richiede attribuzione e stessa licenza. Estratto dell'introduzione non modificato nel contenuto; revisione 1383619558, consultata il 2026-11-07T13:37:01.823Z tramite l'API ufficiale di Wikipedia. Impronta SHA-256 dell'estratto: 44354bf2d7468951213f24f5b00af3d10c0168a5bf171289c7c11b710ad8cd13