NAF (Non-adjacent form)
Reduction of Hamming weight to ~1/3
Motivation
The cost of Double-and-add is directly proportional to the Hamming weight or the number of non-zero digits of the scalar's binary form. NAF attempts to reduce the Hamming weight in comparison to unsigned bit representation.
Definition
Non-adjacent form is defined as a unique signed-bit representation of a positive number where non-zero values are non-adjacent. Note that unsigned-bit representation results in an average Hamming weight of around the total bits. In comparison, for NAF, the property for having non-zero values be non-adjacent reduces the average Hamming weight to around the total bits.
Examples
References
Written by Ashley Jeong of A41
Last updated