XOR Table + Code

Kibicho Murage
2 min readFeb 14, 2021

These are part of my programming notes. Does GitHub hire front end developers? Is UI/UX even a thing at GitHub?

/*
*Function: XOR TABLE
*Role: Generate XOR Table in matrix form
*Note: Change array lengths later
*/
void XORTable()
{
int i = 0;
int j = 0;
for(int i = 0; i < 16; i++)
{ //printf("%ds", j);
for(int j = 0; j < 16; j++)
{
printf("|%2X|", i ^ j);
}
printf("\n");
}
}
                        XOR TABLE(F * F)
| 0|| 1|| 2|| 3|| 4|| 5|| 6|| 7|| 8|| 9|| A|| B|| C|| D|| E|| F|
| 1|| 0|| 3|| 2|| 5|| 4|| 7|| 6|| 9|| 8|| B|| A|| D|| C|| F|| E|
| 2|| 3|| 0|| 1|| 6|| 7|| 4|| 5|| A|| B|| 8|| 9|| E|| F|| C|| D|
| 3|| 2|| 1|| 0|| 7|| 6|| 5|| 4|| B|| A|| 9|| 8|| F|| E|| D|| C|
| 4|| 5|| 6|| 7|| 0|| 1|| 2|| 3|| C|| D|| E|| F|| 8|| 9|| A|| B|
| 5|| 4|| 7|| 6|| 1|| 0|| 3|| 2|| D|| C|| F|| E|| 9|| 8|| B|| A|
| 6|| 7|| 4|| 5|| 2|| 3|| 0|| 1|| E|| F|| C|| D|| A|| B|| 8|| 9|
| 7|| 6|| 5|| 4|| 3|| 2|| 1|| 0|| F|| E|| D|| C|| B|| A|| 9|| 8|
| 8|| 9|| A|| B|| C|| D|| E|| F|| 0|| 1|| 2|| 3|| 4|| 5|| 6|| 7|
| 9|| 8|| B|| A|| D|| C|| F|| E|| 1|| 0|| 3|| 2|| 5|| 4|| 7|| 6|
| A|| B|| 8|| 9|| E|| F|| C|| D|| 2|| 3|| 0|| 1|| 6|| 7|| 4|| 5|
| B|| A|| 9|| 8|| F|| E|| D|| C|| 3|| 2|| 1|| 0|| 7|| 6|| 5|| 4|
| C|| D|| E|| F|| 8|| 9|| A|| B|| 4|| 5|| 6|| 7|| 0|| 1|| 2|| 3|
| D|| C|| F|| E|| 9|| 8|| B|| A|| 5|| 4|| 7|| 6|| 1|| 0|| 3|| 2|
| E|| F|| C|| D|| A|| B|| 8|| 9|| 6|| 7|| 4|| 5|| 2|| 3|| 0|| 1|
| F|| E|| D|| C|| B|| A|| 9|| 8|| 7|| 6|| 5|| 4|| 3|| 2|| 1|| 0|

Things too see — Equal Sets, diff permutations

  1. 0-Diagonal and 7-Diagonal align
  2. Note 0-Diagonal, F-Diagonals are reflective lines of symmetry and there’s a Rotational Line of symmetry between 7-Column and 8-Column
  3. 1-Column = 6-Column, 2-Column = 5-Column, 3-Column = 4-Column in weird way, it’s same set but different permutation. Seems like downward shift but moving in opposite direction.
  4. Not Column 1- things are swapped i.e (3,2) (5,4)(7,1)

--

--

Kibicho Murage
0 Followers

AI Researcher at Fileforma. Twitter : murage_kibicho