1
title: Correct answers.2
title: Correct answers.3
title: Partially correct.
3. $\epsilon, 12, 03, 0123, 0033, 1122$4
-
In language: Not in language:
title: Correct answer. -
For any , we can find . If we look at the set definition, it is defined that . Combining these words creates new words consisting of the two or more components.
So, the left hand size becomes . The right hand size becomes .
Hence we find that which is incorrect.
Not in language: any word such as , .
title: The only word in the language is $\epsilon$. -
In language: , There is no such that is not in the language, as regardless of what we set as , holds provided that which is allowed and is any arbitrary word from .
title: Correct answer.
5
may be a language over a set of words
title: Partially correct (incomplete)
Both $\emptyset$ and $\{ \epsilon \}$ can be sets of words over any alphabet $S$.6
7
-
Description of automaton using transition table:
a b s q t q q r t t t r p r p p t title: Correct answer. -
Determine if accepted:
- : ends at hence accepted
- : ends at hence rejected
- : ends at hence rejected
title: Correct answers. -
Language is any amount of symbols followed by at any amount of symbols (potentially none) followed by any amount of symbols (potentially none).
title: Partially correct. It consists of the empty string $\epsilon$ and all the strings of the form "a non-empty string of $a$s followed by $a$ (possibly empty) string of $b$s followed by a (possibly empty) string of $a$s". Formal definition: $\{ \epsilon \} \cup \{ a^nb^ma^k | n \in \mathbb N^+, m \in \mathbb N, k \in \mathbb N \}$
8
-
Describe with a state transition diagram
digraph { label=A rankdir=LR init[shape=point] node[shape=doublecircle]; r; node[shape=circle]; init->s s->q [label=a] s->s [label=b] q->r [label=a] q->s [label=b] r->r [label=a] r->q [label=b] } -
Find computations:
- : ends at hence accepted
- : ends at hence accepted
It is not true that accepts all strings of length ending with an , take for example, the string , or any arbitrary amount of , this will result in leaving us at which is not a favourable state hence it will be rejected.
title: Correct answers. -
Find computations:
- : ends at hence rejected
- : ends at hence rejected
title: Correct answers.
title: Questions (4) to (5) are not exam material.-
title: Incorrect answer. Take any word of $a$ and $b$ which is folloewd by $aa$ then by any (possibly) zero number of repetitions of $ba$. $$ L(A) = \{ waa(ba)^n | w \text{ is any word of } a \text{ and } b \text{ symbols, and } n \in \mathbb N \} $$ -
no