Gujarat Technological University
Gujarat Technological University
Gujarat Technological University
___________
MARKS
Q.1 (a) Define one-to-one, onto and bijection function 03
(b) The given relation R on set A= {1,2,3} determine whether the 04
Relation is reflexive, symmetric or transitive, give reason.
R ={(1,1), (1,2), (1, 3),(2,1), (2, 2), (3, 1),(3,3)}
(c) Write Principle of Mathematical Induction. Prove that for 07
every n ≥ 1, 1 + 3 + 5 + … + (2n - 1) = n2
Q.3 (a) Give the difference between moore machine and mealy machine. 03
(b) Define Context Free Grammar. Find context-free grammar for the language: 04
L= {aibjck | j=i+k}
1
(c) Convert NFA- Λ to FA for following figure. 07
OR
Q.3 (a) Define Ambiguous grammar. for following grammar say whether the 03
grammar is ambiguous or not. give reason
SABA, AaA | Λ , BbB | Λ
(b) Design and mealy machine that gives output 1 if input of sequence abb 04
comes, other wise 0.
*************