Jump to content

User:Watchduck/hat

From Wikiversity

Habits and terminology
I try to use technical terms that are generally accepted, but sometimes I don't know a common name,
possibly because it does not exist, and have to choose one on my own.

For equivalence classes like SECs and BECs see Equivalence classes of Boolean functions.

Nibble shorthands

[edit | edit source]
commons:Category:Nibble shorthands

For some purposes I use a set of self-developed signs for the 16 binary strings with 4 digits (nibbles).

Their horizontal symmetry is like that of the nibbles themselves. The rotation of a sign belongs to the complementary nibble.
(Hence the vertical reflection gives the reflected complement, which is e.g. the relationship between AND and OR).
The signs of asymmetric nibbles have their weight on the same side as the nibble (i.e. the side with more 1s).

The signs represent the nibbles themselves, and not anything they stand for.
But the similarity of and to 3 and 7 makes the big-endian interpretation (as hexadecimal figures) more intuitive than little-endian.

Representing subsets of a 4-element set. Rather little-endian through the connection to this file.
Representing logical connectives. Rather big-endian, because the representation of Boolean functions as rationals (rather than integers) is the one that makes sense. E.g. represents the fraction 3/15 = 1/5 with the period ... after the point.
Representing numbers 0...15. Clearly big-endian.


Little-endian binary

[edit | edit source]
Reverse binary warning sign

When finite subsets are to be ordered in a sequence, it is often better to order them like reflected binary numbers (little-endian) - although for most people ordering them like binary numbers would be more intuitive.


The subsets of {A,B}
ordered like binary numbers are:

{ }
{ B }
{ A }
{ A, B }
The subsets of {A,B,C}
ordered like reflected binary numbers are:
{ }
{ A }
{ B }
{ A, B }
{ C }
{ A, C }
{ B, C }
{ A, B, C }
The subsets of {A,B,C}
ordered like binary numbers are:
{ }
{ C }
{ B }
{ B, C }
{ A }
{ A, C }
{ A, B }
{ A, B, C }

Only when the subsets are ordered like reflected binary numbers, the sequence of subsets of {A,B}
is the beginning of the sequence of subsets of {A,B,C}.
This leads to a sequence of finite subsets of the infinite set {A,B,C,D...}.



A more general concept is colexicographic order (see lexicographic and colexicographic order).

Dual matrix

[edit | edit source]
16×16 matrix of 1×4 matrices

Below the dual 1×4 matrix
of 16×16 matrices

(big-endian)
4x16 matrix of 1x4 matrices

Below the dual 1x4 matrix
of 4x16 matrices

(little-endian)

When a matrix A is an m×n matrix, containing p×q matrices Bij as elements,
it is often interesting to see the dual matrix X, which is a p×q matrix, containing m×n matrices Yij as elements.

Dual matrices contain the same elements of elements (usually that should be numbers),
so in the end they show the same information, but in a different way.

The element bij,kl in the matrix Bij
is the same as
the element ykl,ij in the matrix Ykl .



The matrix

is dual to

.


The following example is a 24×24 join table containing triangular grids with binary entries, and below the corresponding triangular grid containing 24x24 matrices with binary entries.

Vertex colored graphs can have the same kind of duality. See e.g. the tesseract graph above.