8-RLDecision ClosurePropertywithkey
8-RLDecision ClosurePropertywithkey
• Approximately all the properties are decidable in case a finite automaton. Here we will use
machine model to proof decision properties.
i) Emptiness
ii) Non-emptiness
iii) Finiteness
iv) Infiniteness
v) Membership
vi) Equality
• Emptiness & Non-emptiness
Step 1: - select the state that cannot be reached from the initial states & delete them (remove
unreachable states)
Step 2: - if the resulting machine contains at least one final states, so then the finite automata
accepts the non-empty language.
Step 3: - if the resulting machine is free from final state, then finite automata accepts empty
language.
Step 2: - select the state from which we cannot reach the final state & delete them (remove
dead states)
Step 3: - if the resulting machine contains loops or cycles then the finite automata accepts
infinite language
Step 4: - if the resulting machine do not contain loops or cycles then the finite automata
accepts infinite language
• Membership
Membership is a property to verify an arbitrary string is accepted by a finite automaton or
not i.e. it is a member of the language or not.
Let M is a finite automata that accepts some strings over an alphabet, and let ‘w’ be any
string defined over the alphabet, if there exist a transition path in M, which starts at initial
state & ends in anyone of the final state, then string ‘w’ is a member of M, otherwise ‘w’ is
not a member of M.
• Equality
Two finite state automata M1 & M2 is said to be equal if and only if, they accept the
same language.
Minimise the finite state automata and the minimal DFA will be unique.
Closure Properties of Regular Languages
• Regular languages are closed under following operations
o Kleen Closure
o Positive closure
o Complement
o Reverse Operator
o Prefix Operator
o Complement
o Union
o Intersection
o Set Difference operator
o Prefix operator
o Symmetric Difference
o Quotient Operator
o Substitution
o Homomorphism
o Inverse Homomorphism
o Max
o Min
o Cycle
Q Which of the following is TRUE? (GATE-2007) (2 Marks)
a) Every subset of a regular set is regular.
b) The union of two non-regular sets is not regular.
c) Every finite subset of a non-regular set is regular.
d) Infinite union of finite sets is regular
ANSWER C
Q Which of the following statements about regular languages is NOT true? (GATE-2006) (1-
Marks)
a) Every language has a regular superset
b) Every language has a regular subset
c) Every subset of a regular language is regular
d) Every subset of a finite language is regular
Ans: c
Q Let 𝐿1 and 𝐿2 are regular sets defined over alphabet ∑*. Mark the false statement
a) 𝐿1 ∪ 𝐿2 is regular b) 𝐿1 ∩ 𝐿2 is not regular
c) ∑* -𝐿1 is regular d) 𝐿1 ∗ is regular
Q If L is a regular language over ∑ = {a, b}, which one of the following languages
is NOT regular? (GATE – 2019) (1 Marks)
a) L⋅ LR {xy | x ∈ L, yR∈ L}
b) Suffix (L) = {y ∈ ∑* | ∃x ∈ ∑* such that xy ∈ L}
c) Prefix (L) = {x ∈ ∑* | ∃y ∈ ∑* such that xy ∈ L}
d) {w wR | w ∈ L}
Answer: (B)
Q Let L1, L2 are regular languages and L3 & L4 are non-regular languages then which of the
following need not be regular?
a) (L1 L2) / (L3 L4) b) (L1 L2) / (L3 L4)
c) (L1 L3) / (L2 L4) d) L1 / L3
0𝑛 1𝑛
Q Let X = {0, 1}, L = X* and R = { > 0} then the language L ∪ R and R respectively
𝑛
a) Regular, Regular b) None regular, Regular
c) Regular, Not regular d) Not regular, Not regular