aboutsummaryrefslogtreecommitdiff
path: root/ex9-5.tex
diff options
context:
space:
mode:
authorCamil Staps2015-09-03 22:52:39 +0200
committerCamil Staps2015-09-03 22:52:39 +0200
commit76f9c0f6f3ce60b96a87d9a65688fa4b0808f99e (patch)
treea69f798433d11d45c12edbb741b7876b8331dad9 /ex9-5.tex
parentFix footer issues (diff)
Additions: 9.3,9.4,9.5,9.6; CleanTuringMachines; fixes
Diffstat (limited to 'ex9-5.tex')
-rw-r--r--ex9-5.tex14
1 files changed, 14 insertions, 0 deletions
diff --git a/ex9-5.tex b/ex9-5.tex
new file mode 100644
index 0000000..c3a56b7
--- /dev/null
+++ b/ex9-5.tex
@@ -0,0 +1,14 @@
+\begin{solution}{5}
+ \begin{enumerate}
+ \item The intuition would be: for the first $a$ that we read, mark it with $X$ and mark the next $b$ we see with $Y$. Go back to the beginning and repeat. When we read a $Y$ instead of an $a$, we have finished the $a^i$ part of the string, and we can go to a final state. The machine should check that there is a $b$ for every $a$ and that the $a$s and $b$s are consecutive.
+
+ %todo draw machine
+
+ \setcounter{enumi}{2}
+
+ \item The intuition would be: find a $b$ for every $a$, mark both with $X$. Repeat until there are no $a$s left. Then check that there are also no $b$s left.
+
+ %todo draw machine
+ \end{enumerate}
+\end{solution}
+