Browse papers
A

Section A: Long Answer Questions

Attempt any TWO questions.

3 questions·10 marks each
1long10 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
2long10 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
3long10 marks

Define context-free grammar (CFG). Convert the following CFG into an equivalent grammar in Chomsky Normal Form (CNF): S -> ASA | aB, A -> B | S, B -> b | epsilon.

cfgchomsky-normal-form
B

Section B: Short Answer Questions

Attempt any EIGHT questions.

9 questions·5 marks each
4short5 marks

Explain the closure properties of regular languages.

closure-propertiesregular-languages
5short5 marks

What is the membership problem? Explain the CYK algorithm in brief.

cykdecidability
6short5 marks

Construct an NFA for the regular expression (0+1)*1.

nfaregular-expression
7short5 marks

Explain Rice's theorem in brief.

rices-theoremdecidability
8short5 marks

Define alphabet, string, and language with examples.

formal-languages
9short5 marks

Differentiate between DFA and NFA.

dfanfa
10short5 marks

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

dfa
11short5 marks

Explain epsilon-closure with a suitable example.

epsilon-nfa
12short5 marks

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

regular-expression