Professional Documents
Culture Documents
Practice Questions Set 8
Practice Questions Set 8
SET-8
1. Regular Expression for this DFA:
i. ϕ* + a+ + b+ + (a + b)+ → r1
ii. ϕ+ + a* + b* + (a + b)* → r2
This is equivalent to
1
5. Consider this language:
L = {anbcm | n > 1, m ≤ n}
over Ʃ ={a, b, c} is
S denotes set of seven bit binary strings in which first, fourth, last bit is 1. Number of strings in L
are:
(a) 5 (b) 6
(c) 7 (d) 8
8. Following language:
L = {anbncndn, n ≥ 1} is
(a) CFL but nor regular (b) CSL but not CFL
(c) Regular (d) Type 0 language but not Type 1
2
9. Consider these languages:
11. Can a Deterministic Finite State machine simulate a Non-Deterministic Finite State machine?
(a) L∗ = ⋃∞i=1 L
i
(b) L∗ = L+ ∪ {ε}
(c) L∗ = L+ (d) L∗ = L+ ∩ {ε}
3
14. (a + b) (cd)* (a + b) denotes the following set:
(a) {a (cd)n b, n ≥ 0}
(b) {a (cd)n a, n ≥ 0} ∪ {b (cd)n b, n ≥ 0}
(c) {a (cd)n a, n ≥ 0} ∪ {b (cd)n b, n ≥ 0}
∪ {a (cd)n b, n ≥ 0} ∪ {b (cd)n a, n ≥ 0}
(d) {acndnb, n ≥ 1}
i. b*a* ⋂ a*b* = a* ⋃ b*
ii. a*b* ⋂ c*d* = ϕ