Talk:Non-adjacent form
From Wikipedia, the free encyclopedia
The paragraph on alternating signs is not correct. Just consider the binary representation of decimal 9, being 1001, which is its unique NAF form.
It is however correct that the Booth Algorithm determines a signed digit representation where the signs of the non-zero digits alternate.
BUT the Booth algorithm does not generate a NAF representation! Take as an example a binary string with an isolated 1, say ...00100..., which by the Booth Algorithm converts into ...
...
The original algorithm for converting a binary number into its equivalent and unique NAF form was given by Reitwiesner in 1960, but normally it is described by the following right-to-left algorithm:
Input:
in 2's complement
Output: 

for i: = 0 to n do
ei: = ci + bi − 2ci + 1;
end


