Studies of Euler diagrams/dukeli NP

From Wikiversity
Jump to navigation Jump to search

dummy


  (0, 1, 2, 3)
  (3, 2, 1, 0)
  (~0, ~2, ~1, ~3)
  (~3, ~1, ~2, ~0)
above the mirrored diagrams of dukeli (Ж 11809)   (all circles point to inside)
below those of its complement (Ж 11808)   (all circles point to outside)

The NP equivalence class of dukeli contains Boolean functions.
It contains the complement of each function, which makes it a complete NPN equivalence class.

There are 16 · 24 = 384 Euler diagrams. As they are mirror symmetric, each function is described by two of them.

Each Euler diagram is denoted by a signed permutation of four elements. They are abbreviated by pairs .

The truth table corresponding to diagram (m, n) can be found in row m of matrix n in this file.

The obvious way to show them in a 16×24 matrix can be seen in valneg.
Functions in the same column are in the same negation equivalence class

  (~1, 2, 3, ~0)   (Ж 2766)
  (3, ~1, 2, ~0)   (Ж 11278)
values 0 and 1 negated
(red and green circle point to outside, blue and yellow to inside)

A more intuitive arrangement is shown in keyneg, where the rows have negated places (instead of negated values) in common.
This adds the feature, that functions in the same row are in same permutation equivalence class.

hover table showing the two transformations from dukeli to netuno (Ж 3971)
    (~1, ~2, 3, 0)   (Ж 3971)
    (~3, ~1, 2, 0)   (Ж 14387)
places 0 and 1 negated
(two cirles on the left point to outside, those on the right to inside)

But in the last arrangement the rows and columns forming the same equivalence class are not next to each other.
This problem is solved in ordered.

That arrangement still contains duplicates, because it shows all possible Euler diagrams.
A similar one without duplicates is the following, where the functions are represented by their Zhegalkin indices:

W C
2290

2291

8398

8399

11278

11279

16558

16559

18958

18959

25138

25139
6 24 2290 &2_2
2
2290
(0, 3, 2, 1)
(1, 2, 3, 0)
3972
(1, 2, 3, 0)
(0, 3, 2, 1)
2292
(1, 3, 2, 0)
(0, 2, 3, 1)
3970
(0, 2, 3, 1)
(1, 3, 2, 0)
8398
(0, 3, 1, 2)
(2, 1, 3, 0)
13200
(2, 1, 3, 0)
(0, 3, 1, 2)
8412
(2, 3, 1, 0)
(0, 1, 3, 2)
13186
(0, 1, 3, 2)
(2, 3, 1, 0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, 1, 2)
(2, 1, 3, 0)
12456
(0, 1, 3, 2)
(2, 3, 1, 0)
11808
(0, 2, 1, 3)
(3, 1, 2, 0)
14856
(0, 1, 2, 3)
(3, 2, 1, 0)
17632
(1, 3, 0, 2)
(2, 0, 3, 1)
20680
(1, 0, 3, 2)
(2, 3, 0, 1)
20032
(1, 2, 0, 3)
(3, 0, 2, 1)
23560
(1, 0, 2, 3)
(3, 2, 0, 1)
29248
(2, 1, 0, 3)
(3, 0, 1, 2)
29728
(2, 0, 1, 3)
(3, 1, 0, 2)
6 12 2761 &0_0
0
3241
(0, 3, 2, 1)
(1, 2, 3, 0)
2761
(0, 2, 3, 1)
(1, 3, 2, 0)
12457
(0, 3, 1, 2)
(2, 1, 3, 0)
8929
(0, 1, 3, 2)
(2, 3, 1, 0)
14857
(0, 2, 1, 3)
(3, 1, 2, 0)
11809
(0, 1, 2, 3)
(3, 2, 1, 0)
20681
(1, 3, 0, 2)
(2, 0, 3, 1)
17633
(1, 0, 3, 2)
(2, 3, 0, 1)
23561
(1, 2, 0, 3)
(3, 0, 2, 1)
20033
(1, 0, 2, 3)
(3, 2, 0, 1)
29729
(2, 1, 0, 3)
(3, 0, 1, 2)
29249
(2, 0, 1, 3)
(3, 1, 0, 2)
7 12 2766 &2_2
2
2766
(0, 3, 2, 1)
(1, 2, 3, 0)
3246
(0, 2, 3, 1)
(1, 3, 2, 0)
8946
(0, 3, 1, 2)
(2, 1, 3, 0)
12474
(0, 1, 3, 2)
(2, 3, 1, 0)
12066
(0, 2, 1, 3)
(3, 1, 2, 0)
15114
(0, 1, 2, 3)
(3, 2, 1, 0)
17652
(1, 3, 0, 2)
(2, 0, 3, 1)
20700
(1, 0, 3, 2)
(2, 3, 0, 1)
20292
(1, 2, 0, 3)
(3, 0, 2, 1)
23820
(1, 0, 2, 3)
(3, 2, 0, 1)
29520
(2, 1, 0, 3)
(3, 0, 1, 2)
30000
(2, 0, 1, 3)
(3, 1, 0, 2)
8 12 2767 &2_2
2
3247
(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