July 2002
Intermediate to advanced
320 pages
8h 15m
English
Many simple rearrangements of the bits in a computer word correspond to even simpler transformations of the coordinates, or indexes, of the bits [GLS1]. These correspondences apply to rearrangements of the elements of any one-dimensional array, provided the number of array elements is an integral power of 2. For programming purposes, they are useful primarily when the array elements are a computer word or larger in size.
As an example, the outer perfect shuffle of the elements of an array A of size eight, with the result in array B, consists of the following moves:
![]()
Each B-index is the corresponding ...
Read now
Unlock full access