Define one-to-one function and also give its example. Decide and justify whether the function f : N → Ndefined by f (x) = min(x, 2) is one-to-one or not.
[3 marks]Let Mand Mbe the FAs pictured in Fig. (i) and Fig. (ii) accepts the languages12 Land L , respectively.12 Fig. (i) Fig. (ii) Draw FAs accepting the following languages:
[4 marks]L ⋂ L12 (ii) L′1
[ marks]Convert the following NFA into its equivalent DFA using the subset construction.
[7 marks]Each case below gives a recursive definition of a subset Lof {a, b}*. Give a simple nonrecursive definition of Lin each case.
[3 marks]a ∈ L; for any x ∈ L, xa and xb are in L. (ii) a ∈ L; for any x ∈ L, xb, ax, and bx are in L.
[ marks]Write CFG for generating each of the following languages:
[4 marks]a*b* (ii) {aibjck | j = i + k}
[ marks]Find a minimum-state FA for the following FA that recognizes the same language. OR1
[7 marks]Using the principle of mathematical induction, for all n ≥ 1, prove that, n (n+1) (n+2) 1×2+2 ×3+3 ×4 + .....+ n ×(n+1) =3
[7 marks]Check whether the following CFG is ambiguous or not with the help of word “abaa”. S → a | Sa | bSS | SSb | SbS
[3 marks]Using pumping lemma, prove that the language L = {an bn a bn+1 : for all n = 1, 2, 3 …} is nonregular.
[4 marks]Define - Chomsky Normal Form. Also convert the following CFG into its equivalent CNF. S → XaX | bX | Y X → XaX | XbX | ^ Y → ab
[7 marks]Define - total language tree. Also find out the same for the following CFG: S → aa | bX | aXX X → ab | b
[3 marks]Define - pumping lemma for context-free languages. Also prove that the language L = {xx | x ∈ {a, b}*} is not CFL with the help of the same.
[4 marks]Define - Equivalence relation. Decide whether each of the following relations on the set {1, 2, 3, 4} is an equivalence relation or not. Justify your answer with proper reason.
[7 marks]R = {(2, 2), (2, 3), (2, 4), (3, 2), (3, 3), (3, 4)}1 (ii) R = {(1, 1), (1, 2), (2, 1), (2, 2), (3, 3), (4, 4)}2
Kill ^ - productions from the following CFG : S → AB | ^ A → aASb | a B → bS
[3 marks]Define - Pushdown Automaton and acceptance by a PDA
[4 marks]Convert the CFG with following productions into its equivalent PDA. Also trace out the same on input string abbaaa. S → a | aS | bSS | SSb | SbS
[7 marks]Consider the CFG with productions: S → aA | bC | b A → aS | bB B → aC | bA | a C → aB | bS Does this CFG generate the language containing all the words with an even number of a’s and an odd number of b’s over = {a, b}? Prove your answer.
[3 marks]Explain Chomsky hierarchy in detail.
[4 marks]Design a PDA to accept strings with more a’s than b’s. Also trace out the same on input string abbabaa.
[7 marks]Define - Moore machine. Convert the following Moore machine into its equivalent Mealy machine.2
[3 marks]Define - Primitive Recursion. Also prove that the function, f ∶ N → Ndefined by f (x, y) = x + y is primitive recursive.
[4 marks]Draw Turing machine for L = {anbncn | n ≥ 0}. Also trace out the same on input string abc.
[7 marks]Discuss - Context Sensitive Language with example.
[3 marks]Describe recursive languages and recursively enumerable languages.
[4 marks]Define Turing Machine. Also draw Turing machine that accepts the language of palindromes over {a, b}.
[7 marks]