1/10
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
What are the 3 central concepts?
Language
Grammar → A set of rules that specify the language
Automaton → An abstract computational machine that recognises members of the language [plural: Automata]
What does ‘Σ’ represent in automata theory?
Alphabet → Finite nonempty sets of symbols.
Σ = {0,1} or = {a,b,c,…}
Σ is a set of ASCII characters
What is a string in automata theory?
Sequence of symbols of the alphabet including the
empty string, λ
Σk set of strings of length k.
– Σ* union of all strings of length k ≥ 0.
– Σ* = Σ0 ∪ Σ1 ∪ Σ2 ∪ ⋯, where Σ0 = {𝜆}.
– We can define the set that excludes the empty string :
Σ+ = Σ1 ∪ Σ2 ∪ ⋯
What are languages in automata theory?
Sets of strings chosen from some Σ*
L is a language over Σ: L ⊆ Σ*
It is just a set of strings.
Concatenation of languages L1 and L2
L1L2 is defined by:
{𝑥𝑦 𝑥 ∈ 𝐿1 ∧ 𝑦 ∈ 𝐿2}
The set of all strings not in L:
L (with a line on top) = Σ* − 𝐿
Assume 𝑎, 𝑏 and 𝑎𝑖, 𝑏𝑖 are members of Σ
What are:
𝑎n
𝑤 = 𝑎1𝑎2 … 𝑎n and 𝑣 = 𝑏1𝑏2 … 𝑏m
|𝑤|
→ a…a
→ 𝑎1𝑎2 … 𝑎n𝑏1𝑏2 … 𝑏m
→ The length of 𝑤
What does a transition graph consist of?
→ States
→ One initial state
→ One or more final/accepting states
→ Labelled transitions between states
For this transition graph, give the lexical analyser:
For this transition graph, give the transition table:
For this off-on switch, prove using induction:
𝑆1(𝑛): automaton is off after n pushes iff n is even
Base: n = 0
OFF is initial state, therefore when n = 0 the state is off. Therefore n is even.
𝑆1(0) = (𝑡𝑟𝑢𝑒 ⇔ 𝑡𝑟𝑢𝑒)
Inductive:
𝑆1(𝑛 + 1)
Automaton is off ⇒ 𝑛 + 1 is even
Assume automation is off when n + 1 pushes
n is not even, by S1(n)
n is odd
n+1 is even