0% found this document useful (0 votes)
10 views4 pages

Practice Set - Short and Long Questions - Automata

practice set questions

Uploaded by

kp4216596
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views4 pages

Practice Set - Short and Long Questions - Automata

practice set questions

Uploaded by

kp4216596
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

1. Compare and contrast between Mealy machine and Moore machine.

2. Differentiate between DFA and NFA.


3. Construct DFA equivalent to the following NFA:

4. Define equivalent states and k-equivalent states.


5. Consider the following Machine:

NS, z
PS I1 I2 I3 I4
A - - E,1 -
B C,0 A,1 B,0 -
C C,0 D,1 - A,0
D - E,1 B, - -
E B,0 - C, - B,0
Find out the minimal machine which covers the above machine by using merger graph and
compatibility graph.

6. Consider the following Machine:

NS, z
PS
x=0 x=1
A B,0 A,1
B C,0 D,1
C E,1 A,0
D E,0 C,0
E C,1 E,0

Is the machine described above lossless or lossy? If it is a lossless machine of finite order, find
out the order.
7. Consider the following NFA

Є Є
𝑞0 Є 𝑞1 Є 𝑞2
Є Є

a b a

Construct the equivalent NFA without Є-transition.

8. Minimize the following DFA:

PS NS
Input x = a Input x = b
q0 q1 q2
q1 q4 q3
q2 q4 q3
*q3 q5 q6
*q4 q7 q6
q5 q3 q6
q6 q6 q6
q7 q4 q6

* indicates final state(s).

9. Construct a Moore machine which is equivalent to following Mealy machine.

Input x=0 Input x=1


PS
NS Output z NS Output z
A C 1 B 0
B A 0 D 0
C B 1 A 0
D D 1 C 1

10. Minimize the following Mealy machine:

NS, z
PS
x=0 x=1
A D,0 H,0
B F,1 C,1
C D,0 F,1
D C,0 E,1
E C,1 D,1
F D,1 C,1
G D,1 H,1
H B,1 D,1
11. Design a Finite Automata (FA) that accepts set of all strings over Σ = {a,b} such that every string
ends with abb.
12. Design a Finite Automata (FA) that accepts set of all strings over Σ = {a,b} such that every string
ends with 101.
13. Design a Finite Automata (FA) that accepts set of all strings over Σ = {0,1} such that every string
contains exactly single 1.
14. Determine the regular expression that accepts set of all strings over ∑ = {0, 1} such that number of
1’s is divisible by 3.
15. Construct a Finite Automata equivalent to the Regular Expression
L = ab(a+b)(ab)*b
16. By applying Pumping Lemma prove that
L = {anbn | n >= 1} is not regular.

17. Construct a CFG for palindrome for binary numbers.


18. Construct a CFG for L = {0 i 1j 2k | i = j or j = k}
19. Construct a CFG for L = {0 n 1m | n ≠ m}
20. Define unit production.
21. Remove unit productions from the following grammar:
S → AB, A → a, B → C, C → D, D → b.

22. Convert the following CFG into equivalent Chomsky Normal Form:

S → ASB
A → aAS | a | ε
B → SbS | bb

23. Consider the following grammar and prove that it is an ambiguous grammar.

E → E + E | E × E | id

24. Minimize the following DFA by applying Myhill-Nerode theorem.

NS
PS x=a x=b
A B E
B C D
*C H I
*D I H
E F G
*F H I
*G H I
H H H
I I I

* indicates final state(s)


25. Convert the following finite automata to regular expression using Arden’s theorem:

26. Construct a derivation tree for the string aabbabba for the CFG given by,

S → aB | bA
A → a | aS | bAA
B → b | bS | aBB

27. Define PDA. Differentiate between PDA and NPDA.


28. Design a PDA for the language L = {WWR |W ∈ (a,b)*}. Show the instantaneous descriptions
(IDs) for the string abba for this language L(w) = {wwR | w Є {a,b}+ }
29. Design a PDA for the language L = {W#WR |W ∈ (a,b)*}. Show the instantaneous descriptions
(IDs) for the string ab#ba for this language L(w) = {w#wR | w Є {a,b}+ }
30. Explain the chomsky classification of grammar.
31. Write short note on Ambiguous Grammar.
32. Write short note on Regular Expression.
33. Write short note on Multitape Turing Machine.
34. Write short note on Universal Turing Machine.
35. Write short note on Halting problem of Turing Machine.

You might also like