Discrete UQ (Unit-4)
Discrete UQ (Unit-4)
4. Which of the following is not correct for the regular expression (May 2023)
A. φr = rφ = φ B. r + r = r C. φ + r = φ D. r∗ r∗ = r∗
Ans:
9. For an alphabet Σ and languages L1 and L2 , (L∗1 ∪ L∗2 )∗ = ....... (December 2020)
A. L1 L2 B. L∗1 L∗2 C. (L∗1 L∗2 )∗ D. (L1 ∪ L2 )
Ans: C. (L∗1 L∗2 )∗
10. Let L1 = {a, b} and L2 = {a, c} be Languages over Σ = {a, b, c}. Then (L1 ∩ L2 )∗ = .........
(December 2020)
A. {b} B. {a} C. {an : n ≥ 0} D. {bn : n ≥ 0}
Ans: C. {an : n ≥ 0}
12. L1 consists of all strings beginning with one or more a’s followed by one or more b’s. Then
the corresponding regular expression r over the alphabet Σ = {a, b} is (April 2019)
A. bb∗ abb∗ B. b∗ bab∗ b C. aa∗ bb∗ D. (a + b)∗
Ans: C. aa∗ bb∗
13. Which of the following is not true? (April 2018/ November 2018)
A. L+ ⊆ L∗ B. Ln+1 = Ln L C. L∗ = {λ} ∪ L+ D. L∗ ⊆ L+
Ans: D. L∗ ⊆ L+
14. Which of the following is not true, if r1 and r2 are two equivalent regular expressions (April
2018)
A. (r1 + r2 )∗ = r1∗ + r2∗ B. (r1 r2 )∗ r1 = r1 (r2 r1 )∗ C. (r1 r2 )∗ r1 = r1∗ (r2 r1 ) D. (r1∗ )∗ = r1∗
Ans: C. (r1 r2 )∗ r1 = r1∗ (r2 r1 )
Page 2
15. Let L1 = {a, b} and L2 = {b, c} be languages over Σ = {a, b, c} then (L2 −L∗1 )∗ is (November
2018)
A. {an : n ≥ 0} B. {bn : n ≥ 0} C. {cn : n ≥ 0} D. {a, b, c}∗
Ans: C. {cn : n ≥ 0}
Section-B
2. Let L1 = {a, ab, a2 } and L2 = {b2 , aba} be two languages over the alphabet Σ{a, b}, then find
L1 L2 , L2 L1 , L22 , L21 . (November 2023/ June 2022/July 2021/December 2020/April
2019/November 2017)
3. If L = {ab, a2 } be a language over the alphabet Σ = {a, b}. Then find L0 , L2 , L3 (May
2023)
5. If L = {ab, c} be a language over the alphabet Σ = {a, b}. Then find L0 , L2 , L3 (December
2022)
Page 3
7. Define regular language. Also describe the language L = {bm abn , m, n > 0} by regular
expression r over the alphabet Σ{a, b}. (April 2019).
11. Find the language L(G) generated by the grammar with V = {S, A}, Σ = {a, b, c} and
productions P = {S → aSb, aS → Aa, Aab → c} (November 2018/2017)
13. Let Σ = {0, 1}. Show that the following expressions are regular expressions over Σ (April
2017)
(i). 0∗ (0 + 1)
(ii). 00∗ (0 + 1)∗
14. Let Σ = {a, b} be an alphabet show that a∗ (a + b)∗ and aa∗ (a + b)∗ a are regular expression
over Σ. (November 2016)
Section-C
1. Design a finite state automaton M that accepts those strings from Σ = {a, b} which have
even number of 0 a0 . (November 2023/ December 2022/June 2022)
2. Consider the language L = {bn abn : n ≥ 0}. Find grammar G which generate L. (Novem-
ber 2023/ June 2022)
3. Find the phrase structure grammar that generate the language L = {an b2n : n ≥ 1} (May
2023)
4. Design a finite-state machine M where the input set is {0, 1, 2} and the output set contains
digits which are modulo 3 sum of the digits in the input sequence. (May 2023/ December
2020/ November 2018/ November 2016)
Page 4
5. Consider the language L = {an bn : n ≥ 1}. Find grammar G which generate L. (December
2022)
6. Define Deterministic finite-state automaton. Also draw a transition diagram of a finite state
automation M that accepts binary sequences that ends with the digits 011 over the set
Σ{0, 1}. (July 2021/April 2019/November 2017)
7. Find the context free grammar G which generates L = {an bm : n 6= m}. (July 2021/
December 2020/ April 2018/November 2018/2017)
9. Consider the context free grammar with productions S → bAS, S → b, A → aS find the
derivation tree of the word w = babbabb. (April 2018/2017)
10. Find the language L(G) generated by the grammar with V = {S, A, B}, Σ = {a, b} and
productions P = {S → aB, B → b, B → bA, A → aB} (November 2016)
zzzzz