Practice Questions (Lectures) Flashcards
For any language L ⊆ Σ∗, Σ != ∅
there is a deterministic
automata M, such that L = L(M)
True only when L is regular
Any regular language has a finite representation.
True by definition of regular language and the fact that regular
expression is a finite string
Any finite language is regular
True as we proved it
Given L1, L2 languages over Σ, then
((L1 ∩ (Σ∗ − L2)) ∪ L2)L1 is a regular language
True only when both are regular languages
For any finite automata M
L(M) =
U{R(1, j, n) : qj ∈ F}
True only when M has n states and they are put in 1-1
sequence and q1 = s
Σ in any Generalized Finite Automaton includes some
regular expressions
True by definition
Pumping Lemma says that we can always prove that a
language is not regular
False PL serves as a tool for proving that some
languages are not regular
L = {a^n c^n : n ≥ 0} is regular
False we proved by PL that it is not regular
The set of terminals in a context free grammar G is a
subset of the alphabet of G
True By definition: Σ ⊆ V
The set of terminals and non- terminals in a context free
grammar G form the alphabet of G
True By definition: V = Σ ∪ (V − Σ)
The set of non-terminals is always non- empty
True By definition:
S ∈ V
The set of terminals is always non- empty
False Σ = ∅ is a finite set
Let G be a context-free grammar
L(G) = {w ∈ V :
S∗⇒G w}
False Should be
w ∈ Σ∗
The language L ⊆ Σ∗
is context-free if and only if L = L(G)
False Holds only when G is a context -free grammar
A language is context-free if and only if it is accepted by a context-free grammar
False Language is generated, not accepted by a grammar