Toc Summer 2017
Toc Summer 2017
___________
MARKS
Q.1 Answer the following questions:
1 Define onto and one-to-one functions. 02
2 Give recursive definition of a tree. 03
3 Define reflexivity, symmetry, and transitivity properties of relations. 03
4 Consider the relation R = {(1,2), (1,1), (2,1), (2,2), (3,2), (3,3)} defined 03
over {1, 2, 3}. Is it reflexive? Symmetric? Transitive? Justify each of
your answers.
5 Draw truth table for following logic formula: P (¬P V ¬Q). Is it a 03
tautology? A contradiction? Or neither? Justify your answer.
Q.3 (a) Explain ‘finite state machines with outputs’. Discriminate between 03
Mealy and Moore machines.
(b) Convert the Moore machine shown in Fig. 2 into an equivalent Mealy 04
machine.
(c) Use Pumping Lemma to show that L = {x Є {0,1}* | x is a palindrome} 07
is not a regular language.
OR
Q.3 (a) Give recursive definition of regular expressions. State the hierarchy of 03
the operators used in regular expressions.
(b) Using constructive approach determine NFA- Λ for the regular 04
expression (0 + 1)*1(0 + 1).
(c) Fig. 3 shows two DFAs M1 and M2, to accept languages L1 and L2, 07
respectively. Determine DFAs to recognize L1 U L2.
1
Give formal definition of PDA. Give mathematical description of
Q.4 (a) ‘acceptance of a string by a PDA by empty stack’. 03
(b) Give the recursive definition of the iterated derivation (i.e., derivation 04
in zero or more steps), denoted as =>̽. Give mathematical description of
the language of a CFG.
**********
2
Note: In Fig.3 for Q:3 (c) consider transition from A -> B having symbol 0.