Walsh permutation

From Wikiversity
Jump to: navigation, search
Created by Watchduck.

The term n-bit Walsh permutation was chosen by the author for permutations of 2n elements, that permute Walsh functions into other Walsh functions.

Walsh permutations of 2n elements can be represented by an n-element compression vector
of integers \in \{ 1, ... , 2^n-1\} referring to the numbering of Walsh functions (displayed in orange in the images).
It corresponds to the n×n compression matrix. It's columns show the elements of the compression vector in binary representation.
The multiplication of the compression matrices (with F2 operations) corresponds to the composition of the permutations.
As the compression matrices are the elements of the general linear group GL(n,2) the Walsh permutations form a group isomorphic to GL(n,2).

There are OEISA002884(n) n-bit Walsh permutations.

Product of two Walsh permutations: wp( 8,12, 2, 3) * wp( 6, 9, 1, 2) = wp(14,11, 8,12)
(the product of two Walsh permutations related to bent functions)
Product of the compression matrices

Not all vectors (v_1,...,v_n) with different elements \in \{ 1, ... , 2^n-1\} correspond to Walsh permutations, as the following example shows:

Rdrdo.svg Bit permutation[edit]

Walsh permutation wp( 2, 1, 8, 4).svg

When a simple permutation of n elements is applied on the binary digits of numbers from 0 to 2n-1 the result is a permutation of the numbers from 0 to 2n-1.
The example on the right corresponds to the simple permutation that swaps the first two and the last two digits of the 4-bit binary numbers.
Probably the most important bit permutation is the bit-reversal permutation.

Rdrdo.svg Nimber multiplication[edit]

Nimbers 0...15 multiplication.svg

The rows of each nimber multiplication table are Walsh permutations (except row 0).
They are not only closed under multiplication (function composition), but even under addition (bitwise XOR).

Rdrdo.svg Gray code permutation powers[edit]

Cayley table with compression matrices

Powers of the Gray code permutation have very simple compression matrices and vectors.
In each vector all entries follow from the first one, and the first entries follow from the rows of the Sierpinski triangle.

Rdrdo.svg Sequency ordered Walsh matrix[edit]

Natural and sequency ordered Walsh 16.svg

The permutation that changes the natural ordered into the sequency ordered Walsh matrix is the product of the Gray code permutation and the bit-reversal permutation.

Rdrdo.svg Bent functions[edit]

From 0111 1000 1000 1000 to wp(2,1,8,4)

Each bent function corresponds to a Walsh permutation.
This can be seen when all rows of its sec matrix are XORed with the function itself (second step in the example on the right).

Rdrdo.svg Magic squares[edit]

Multigrade operator XOR
These matrices are found in the dual matrices of the magic squares.
The Melencolia square, corresponding to wp(11, 7,14,13)

There are 24*9=216 Walsh permutations that correspond to magic squares of order 4.
One my say that only 6 of them are essentially different.

Rdrdo.svg Inversions[edit]

wp(13,11, 7,15)
wp(14,13,11, 7)
wp( 4, 8, 1, 2)

Some inversion sets of Walsh permutations are very regular.
E.g. there are 2n-1 n-bit Walsh permutations with horizontally striped inversion sets (like the left one of the examples).
The pattern of the stripes is that of Walsh functions.


The 2-bit Walsh permutations form the general linear group GL(2,2) which is also the symmetric group S3.

Cayley table with permutations
Cayley table with compression matrices

Rdrdo.svg 3-bit[edit]


The OEISA002884(3) = 168 3-bit Walsh permutations correspond to the collineations of the Fano plane.

Compression vectors, Permutations


There are OEISA002884(4) = 20160 4-bit Walsh permutations.

Compression vectors