diff options
| author | Elizabeth Alexander Hunt <me@liz.coffee> | 2026-07-02 11:55:17 -0700 |
|---|---|---|
| committer | Elizabeth Alexander Hunt <me@liz.coffee> | 2026-07-02 11:55:17 -0700 |
| commit | 6bf4b90c90f15f4ab60833bddf5b5756d1a6b1f6 (patch) | |
| tree | ed97e39ec77c5231ffd2c394493e68d00ddac5a4 /Homework/cs5000/hw03/CS5000_F23_hw03.org | |
| download | misc-undergrad-6bf4b90c90f15f4ab60833bddf5b5756d1a6b1f6.tar.gz misc-undergrad-6bf4b90c90f15f4ab60833bddf5b5756d1a6b1f6.zip | |
Diffstat (limited to 'Homework/cs5000/hw03/CS5000_F23_hw03.org')
| -rw-r--r-- | Homework/cs5000/hw03/CS5000_F23_hw03.org | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/Homework/cs5000/hw03/CS5000_F23_hw03.org b/Homework/cs5000/hw03/CS5000_F23_hw03.org new file mode 100644 index 0000000..a0f08de --- /dev/null +++ b/Homework/cs5000/hw03/CS5000_F23_hw03.org @@ -0,0 +1,43 @@ +#+TITLE: HW 02 +#+AUTHOR: Elizabeth Hunt +#+STARTUP: entitiespretty fold inlineimages +#+LATEX_HEADER: \notindent \notag \usepackage{amsmath} \usepackage[a4paper,margin=1in,portrait]{geometry} +#+LATEX: \setlength\parindent{0pt} +#+OPTIONS: toc:nil + +* Question One +** Partition Refinement +{ {q_0, q_1, q_3}, {q_2, q_4} } + +S_1 = {(q_0, q_1), (q_0, q_3), (q_1, q_3)} +S_2 = {(q_2, q_4)} + +\delta(q_0, 1) = q_3 \in S_1 +\delta(q_1, 1) = q_4 \in S_2 + +(q_0, q_1) need to be split + +\delta(q_0, 0) = q_1 \in S_1 +\delta(q_3, 0) = q_2 \in S_2 + +(q_1, q_2) need to be split + +\forall x \in \Sigma, \delta(q_1, x) = \delta(q_3, x) +so {q_1, q_3} does not need to be split + +In S_2, \delta(q_2, 0) \in S_1 and \delta(q_4, 0) \in S_2, thus need to be split + +Finally, the refined partitions are {{q_0}, {q_1, q_3}, {q_2}, {q_4}} + +** Minimization +| a \in \Sigma | {q_0} | {q_1, q_3} | {q_2} | {q_4} | +| 0 | {q_1, q_3} | {q_2} | {q_1, q_3} | {q_4} | +| 1 | {q_1, q_3} | {q_4} | {q_4} | {q_4} | + +with d_0 = {q_0}, d_1 = {q_1, q_3}, d_2 = {q_2} and d_3 = {q_4} + +#+attr_latex: :width 350px +[[./img/min_dfa.png]] + +* Question Two +See attached python |
