The bit-reversal permutation of writes each index using exactly binary digits, reverses those digits, and interprets the result as another index. Leading zeros matter. Reversing twice restores the original index, so this permutation is an involution.
For , the index order becomes : for example, maps to . It occurs naturally in radix-two Fast Fourier transform implementations. Repeatedly separating even from odd indices consumes the low-order bits first; traversing the resulting recursion tree reverses the order in which the index bits are read. Some implementations permute inputs, others permute outputs, and other layouts avoid an explicit reversal. The discrete Fourier transform itself is independent of this storage choice.[ref]

Articles by others on the same topic (1)

Bit-reversal permutation is a mathematical operation typically used in computer science and signal processing, particularly in the context of algorithms such as the Fast Fourier Transform (FFT). The basic idea is to permute the order of bits in binary representations of numbers. ### Definition Given an integer \( n \), the bit-reversal permutation rearranges the integers in the range \( 0 \) to \( n-1 \) by reversing the bits of their binary representations.