Theoretische und technische Informatik - ganz praktisch
Herzlich willkommen auf der Question/Answer-Plattform zu Grundlagen der Informatik II. Wir wünschen Ihnen viel Spaß beim Lernen und Diskutieren!
Loggen Sie sich mit Ihrem KIT-Account (u...) ein, um loszulegen!
Beachten Sie auch diese Informationen zum Schnelleinstieg.
(Nicht-KIT-Studierende beachten bitte diese Informationen.)

Schöne Ferien!
 

 

Warum funktioniert das nicht, was habe ich falsch gemacht? TUR AF

0 Punkte
81 Aufrufe
turing:
(s4, 1) => (s4, 1, R);
(s4, 0) => (s4, 0, R);
(s4, *) => (s2, E, L);
(s4, E) => (s4, E, R);
(s4, N) => (s4, N, R);
(s3, 1) => (s3, 1, L);
(s3, 0) => (s3, 0, L);
(s3, E) => (s0, E, R);
(s3, N) => (s0, N, R);
(s1, 0) => (s1, 0, R);
(s1, 1) => (s1, 1, R);
(s1, *) => (s2, N, L);
(s1, E) => (s1, E, R);
(s1, N) => (s1, N, R);
(s2, N) => (s1, N, R);
(s2, 0) => (s3, 0, L);
(s2, 1) => (s3, 1, L);
(s2, *) => (s5, *, R);
(s2, E) => (s2, E, L);
(s2, N) => (s2, N, L);
(s0, 1) => (s1, E, R);
(s0, 0) => (s4, N, R);
(s0, *) => (se, *, N);
(s5, E) => (s5, 1, R);
(s5, N) => (s5, 0, R);
(s5, *) => (s6, *, L);
(s6, 1) => (s6, 1, L);
(s6, 0) => (s6, 0, L);
(s6, *) => (se, *, R);
 
--declarations--
e=#n#;
animate=this;
s0=s0;
F=se;
blank=*;
inputs=10;
runStepsScript=200;
shortTrace=false;
displayMode=0
 

--declarations-end--Frage zu Skript%3A%0A%0A------------%0Aturing%3A%0D%0A%28s4%2C 1%29 %3D%3E %28s4%2C 1%2C R%29%3B%0D%0A%28s4%2C 0%29 %3D%3E %28s4%2C 0%2C R%29%3B%0D%0A%28s4%2C *%29 %3D%3E %28s2%2C E%2C L%29%3B%0D%0A%28s4%2C E%29 %3D%3E %28s4%2C E%2C R%29%3B%0D%0A%28s4%2C N%29 %3D%3E %28s4%2C N%2C R%29%3B%0D%0A%28s3%2C 1%29 %3D%3E %28s3%2C 1%2C L%29%3B%0D%0A%28s3%2C 0%29 %3D%3E %28s3%2C 0%2C L%29%3B%0D%0A%28s3%2C E%29 %3D%3E %28s0%2C E%2C R%29%3B%0D%0A%28s3%2C N%29 %3D%3E %28s0%2C N%2C R%29%3B%0D%0A%28s1%2C 0%29 %3D%3E %28s1%2C 0%2C R%29%3B%0D%0A%28s1%2C 1%29 %3D%3E %28s1%2C 1%2C R%29%3B%0D%0A%28s1%2C *%29 %3D%3E %28s2%2C N%2C L%29%3B%0D%0A%28s1%2C E%29 %3D%3E %28s1%2C E%2C R%29%3B%0D%0A%28s1%2C N%29 %3D%3E %28s1%2C N%2C R%29%3B%0D%0A%28s2%2C N%29 %3D%3E %28s1%2C N%2C R%29%3B%0D%0A%28s2%2C 0%29 %3D%3E %28s3%2C 0%2C L%29%3B%0D%0A%28s2%2C 1%29 %3D%3E %28s3%2C 1%2C L%29%3B%0D%0A%28s2%2C *%29 %3D%3E %28s5%2C *%2C R%29%3B%0D%0A%28s2%2C E%29 %3D%3E %28s2%2C E%2C L%29%3B%0D%0A%28s2%2C N%29 %3D%3E %28s2%2C N%2C L%29%3B%0D%0A%28s0%2C 1%29 %3D%3E %28s1%2C E%2C R%29%3B%0D%0A%28s0%2C 0%29 %3D%3E %28s4%2C N%2C R%29%3B%0D%0A%28s0%2C *%29 %3D%3E %28se%2C *%2C N%29%3B%0D%0A%28s5%2C E%29 %3D%3E %28s5%2C 1%2C R%29%3B%0D%0A%28s5%2C N%29 %3D%3E %28s5%2C 0%2C R%29%3B%0D%0A%28s5%2C *%29 %3D%3E %28s6%2C *%2C L%29%3B%0D%0A%28s6%2C 1%29 %3D%3E %28s6%2C 1%2C L%29%3B%0D%0A%28s6%2C 0%29 %3D%3E %28s6%2C 0%2C L%29%3B%0D%0A%28s6%2C *%29 %3D%3E %28se%2C *%2C R%29%3B%0D%0A%0D%0A--declarations--%0D%0Ae%3D%23n%23%3B%0D%0Aanimate%3Dthis%3B%0D%0As0%3Ds0%3B%0D%0AF%3Dse%3B%0D%0Ablank%3D*%3B%0D%0Ainputs%3D10%3B%0D%0ArunStepsScript%3D200%3B%0D%0AshortTrace%3Dfalse%3B%0D%0AdisplayMode%3D0%0D%0A--declarations-end--%0A------------

Gefragt 6 Jan in Skripte von uneib uneib Lernwillige(r) (140 Punkte)  

Eine Antwort

0 Punkte

Hallo,

 

unter den Zeilen für s1 hast du (s2, N) => (s1, N, R) geschrieben. Diese Zeile ist falsch und redundant! Wenn du diese Zeile weglassen, wird das funktionieren.

Die richtige (s2, N) => (s2, N, L) hast du unten getippt.

 

Viele Grüße,

Runxi (Tutorin)

 

Beantwortet 7 Jan von ulevx ulevx Lernwillige(r) (840 Punkte)  
...