https://www.ituenix.de/nextcloud/data/dave/files/Documents/david4/2024-02-02/automat20240202.tex">
https://www.ituenix.de/nextcloud/data/dave/files/Documents/david4/2024-02-02/automat20240202.pdf">
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main (void) {
time_t t;
int i;
int a [3];
int j;
srand ((int)time (\&t));
a [0] = (rand () % 8) + 1;
while ((a [1] = (rand () % 8)) == a [0]);
while (((a [2] = (rand () % 8)) == a [0]) || (a [2] == a [1]));
j = rand () % 2;
printf ("Zur Sicherheit: %i %i %in", a [0], a [1], a [2]);
printf ("ZustandttFolge-Zustand fuertAusgangn");
printf ("tttx=0tx=1ttttn");
for (i = 1; i <= 8; i++) {
if (i == a [0])
printf ("%ittt%it%itttt%in", a [0], a [1], a [2], j);
else if (i == a [1])
printf ("%ittt%it%itttt%in", a [1], a [2], a [0], j);
else if (i == a [2])
printf ("%ittt%it%itttt%in", a [2], a [0], a [1], j);
else
printf ("%ittt%it%itttt%in", i, (rand () % 8) + 1, (rand () % 8) + 1, rand () % 2);
}
return 0;
}
Zur Sicherheit: 5 7 4 Zustand Folge-Zustand fuer Ausgang x=0 x=1 1 8 7 0 2 7 7 0 3 6 7 0 4 5 7 0 5 7 4 0 6 3 5 1 7 4 5 0 8 6 8 1
### So, da haben sie das Ergebnis Zur Sicherheit: 5 7 4 Zustand Folge-Zustand fuer Ausgang x=0 x=1 1 8 7 0 2 7 7 0 3 6 7 0 4 5 7 0 5 7 4 0 6 3 5 1 7 4 5 0 8 6 8 1 (1,2) (8,7) (7,7) (1,3) (8,6) (7,7) (1,4) (8,5) (7,7) (1,5) (8,7) (7,4) (1,7) (8,4) (7,5) (2,3) (7,6) (7,7) (2,4) (7,5) (7,7) (2,5) (7,7) (7,4) (2,7) (7,4) (7,5) (3,4) (6,5) (7,7) (3,5) (6,7) (7,4) (3,7) (6,4) (7,5) (4,5) (5,7) (7,4) (4,7) (5,4) (7,5) (5,7) (7,4) (4,5) (7,8) (4,6) (5,8) (1,2) (8,7) (1,3) (8,6) (1,4) (8,5) (1,5) (8,7) (7,4) (1,7) (8,4) (7,5) (2,3) (7,6) (2,4) (7,5) (2,5) (7,4) (2,7) (7,4) (7,5) (3,4) (6,5) (3,5) (6,7) (7,4) (3,7) (6,4) (7,5) (4,5) (5,7) (7,4) (4,7) (5,4) (7,5) (5,7) (7,4) (4,5) (7,8) (4,6) (5,8) (1,2) (7,8) (1,3) (6,8) (1,4) (5,8) (1,5) (7,8) (4,7) (1,7) (4,8) (5,7) (2,3) (6,7) (2,4) (5,7) (2,5) (4,7) (2,7) (4,7) (5,7) (3,4) (5,6) (3,5) (6,7) (4,7) (3,7) (4,6) (5,7) (4,5) (5,7) (4,7) (4,7) (4,5) (5,7) (5,7) (4,7) (4,5) (7,8) (4,6) (5,8) (1,2) (7,8) --(1,3) --(6,8) --(1,4) --(5,8) (1,5) (7,8) (4,7) --(1,7) --(4,8) (5,7) --(2,3) --(6,7) (2,4) (5,7) (2,5) (4,7) (2,7) (4,7) (5,7) --(3,4) --(5,6) --(3,5) --(6,7) (4,7) --(3,7) --(4,6) (5,7) (4,5) (5,7) (4,7) (4,7) (4,5) (5,7) (5,7) (4,7) (4,5) --(7,8) --(4,6) (5,8) --(1,2) --(7,8) --(1,5) --(7,8) (4,7) (2,4) (5,7) (2,5) (4,7) (2,7) (4,7) (5,7) (4,5) (5,7) (4,7) (4,7) (4,5) (5,7) (5,7) (4,7) (4,5) (2,4) (5,7) (2,5) (4,7) (2,7) (4,7) (5,7) (4,5) (5,7) (4,7) (4,7) (4,5) (5,7) (5,7) (4,7) (4,5)