Geschrieben von Dukkha am 02.12.2016 um 18:52:
Mealy-Automat
Hallo,
Ich habe eine Frage bezüglich Mealy-Automaten. Konkret geht es um folgendes einfache Beispiel:
Seien
![[latex]Q=\{s_0,s_1,s_2\}[/latex]](http://www.matheboard.de/latex2png/latex2png.php?Q=\{s_0,s_1,s_2\})
die Zustände und
![[latex]E=\{a,b,c\}[/latex]](http://www.matheboard.de/latex2png/latex2png.php?E=\{a,b,c\})
und
![[latex]A=\{0,1\}[/latex]](http://www.matheboard.de/latex2png/latex2png.php?A=\{0,1\})
das entsprechende Ein- und Ausgabealphabet. Der Automat startet in
![[latex]s_0[/latex]](http://www.matheboard.de/latex2png/latex2png.php?s_0)
und
![[latex]s_2[/latex]](http://www.matheboard.de/latex2png/latex2png.php?s_2)
ist der Endzustand. Er soll eine
![[latex]1[/latex]](http://www.matheboard.de/latex2png/latex2png.php?1)
ausgeben, sobald der String
![[latex]cb[/latex]](http://www.matheboard.de/latex2png/latex2png.php?cb)
gelesen wird und in diesem Zustand bleiben. Ansonsten gibt er immer eine
![[latex]0[/latex]](http://www.matheboard.de/latex2png/latex2png.php?0)
aus.
Jetzt meine Frage, gehört die Ausgabe der
![[latex]1[/latex]](http://www.matheboard.de/latex2png/latex2png.php?1)
schon in die Kante von
![[latex]s_1[/latex]](http://www.matheboard.de/latex2png/latex2png.php?s_1)
nach
![[latex]s_2[/latex]](http://www.matheboard.de/latex2png/latex2png.php?s_2)
und in die Schleife um
![[latex]s_2[/latex]](http://www.matheboard.de/latex2png/latex2png.php?s_2)
oder nur in die Schleife um
![[latex]s_2[/latex]](http://www.matheboard.de/latex2png/latex2png.php?s_2)
?
Irgendwie scheint für mich beides äquivalent zu sein, allerdings habe ich eine Lösung in der die
![[latex]1[/latex]](http://www.matheboard.de/latex2png/latex2png.php?1)
erst dann ausgegeben wird, wenn der Automat wirklich in
![[latex]s_2[/latex]](http://www.matheboard.de/latex2png/latex2png.php?s_2)
ist.
Konkret weiss der Automat schon beim Übergang von
![[latex]s_1[/latex]](http://www.matheboard.de/latex2png/latex2png.php?s_1)
nach
![[latex]s_2[/latex]](http://www.matheboard.de/latex2png/latex2png.php?s_2)
, dass der String eingelesen wurde oder muss er zuerst in Zustand
![[latex]s_2[/latex]](http://www.matheboard.de/latex2png/latex2png.php?s_2)
gehen?
Ich habe ein Bild angehängt. Die entsprechende Kante ist umkreist.