Browse papers
A

Section A: Long Answer Questions

Attempt any TWO questions.

3 questions·10 marks each
1long10 marks

Define finite automata. Construct a DFA that accepts all strings over {0, 1} having an even number of 0's and an even number of 1's. Show the transition table and transition diagram.

finite-automatadfa
2long10 marks

What is a Non-deterministic Finite Automaton (NFA)? Construct an NFA that accepts the set of strings over {0, 1} ending with '01' and convert it into an equivalent DFA using the subset construction method.

nfadfasubset-construction
3long10 marks

State and prove the Pumping Lemma for regular languages. Using it, prove that the language L = { a^n b^n | n >= 0 } is not regular.

pumping-lemmaregular-languages
B

Section B: Short Answer Questions

Attempt any EIGHT questions.

9 questions·5 marks each
4short5 marks

Define alphabet, string, and language with examples.

formal-languages
5short5 marks

Differentiate between DFA and NFA.

dfanfa
6short5 marks

Construct a DFA that accepts all binary strings ending with '00'.

dfa
7short5 marks

Explain epsilon-closure with a suitable example.

epsilon-nfa
8short5 marks

Write a regular expression for strings over {0,1} that contain at least one '0' and at least one '1'.

regular-expression
9short5 marks

State Arden's theorem and explain its use in obtaining a regular expression from a finite automaton.

arden-theoremregular-expression
10short5 marks

What is an ambiguous grammar? Show with an example that a grammar is ambiguous.

ambiguitycfg
11short5 marks

Eliminate left recursion from the grammar A -> Aa | b.

cfgleft-recursion
12short5 marks

Explain the conversion of a CFG into Greibach Normal Form (GNF).

greibach-normal-formcfg