Frequently Asked Questions (FAQ)
Tutorial-2 on RE & CFG
Tutorial-2 on RE & CFG
Q2. Construct the regular expression for the language over the set S={0,1} that can have a set of all strings containing no three consecutive 0’s
Q5. Construct the NFA for the regular expression r = ((01+10)*00)*
Q6. Constructure the Finite Automata using 5-tuple notation for the regular expression 1*01(0+11)*
Tutorial-1 on Automata Theory
Tutorial-1 on Finite Automata
Q2. Consider the following NFA and answer the following:
Q5. Convert the given ε-NFA to its equivalent DFA:
Test Your Knowledge on Regular Expressions
Multiple Choice Questions on RE & CFG
Q1. Given the language L = {ab, aa, baa}, which of the following strings are in L*?
1) abaabaaabaa
2) aaaabaaaa
3) baaaaabaaaab
4) baaaaabaa
Possible Answers:
(A) 1, 2 and 3
(B) 2, 3 and 4
(C) 1, 2 and 4
(D) 1, 3 and 4
Q2. What is the Regular Expression (RE) over the alphabet Σ={a,b} for the language that indicate the strings containing "ab" as substrings?
(A) (a+b)ab(a+b)
(B) (a+b)*ab(a+b)*
(C) (ab)*ab(ab)*
(D) ab(a+b)*
Q3. Consider the FA shown in the figure given below, where ‘-’ is the start sate and ‘+’ is the ending state. The language accepted by the FA is
Q4. Which regular expression best describe the language accepted by the non-deterministic automaton below?
Q6: From the following regular expressions over an alphabet {a, b} given below, which can yield all the possible strings over ∑ (a, b)?
Descriptive Questions on Regular Expressions
Q1. Construct an NFA and a DFA for recognizing the language denoted by the regular expression aa* + bb*
Q2. Write regular expressions for the following languages over the alphabet {0, 1}:
a) The set of all strings that begin with 110.
b) The set of all strings that contain 1011.
c) The set of strings of 0's and 1's with at most one pair of consecutive 1's.
Q3. Write regular expressions for the following languages over the alphabet {a, b}:
a) The set of strings containing at least one a and at least one b .
Q4. Convert the following regular expressions to NFA's with ε -transitions.
Test Your Knowledge on Finite Automata
Multiple Choice Questions on Automata
Design Automata for Representing a Language
Q1. Consider the following NFA and answer the following:
Automata Theory and Compiler Design (2412PC02)
R24 Syllabus of Automata & Compiler Design
UNIT - I
Introduction to Finite Automata: Structural Representations, Automata and Complexity, the Central Concepts of Automata Theory – Alphabets, Strings, Languages, Problems.
Nondeterministic Finite Automata: Formal Definition, an application, Text Search, Finite Automata with Epsilon-Transitions.
Deterministic Finite Automata: Definition of DFA, How A DFA Process Strings, The language of DFA, Conversion of NFA with €-transitions to NFA without €-transitions, Conversion of NFA to DFA
UNIT - II
Regular Expressions: Finite Automata and Regular Expressions, Applications of Regular Expressions, Algebraic Laws for Regular Expressions, Conversion of Finite Automata to Regular Expressions.
Pumping Lemma for Regular Languages: Statement of the pumping lemma, Applications of the Pumping Lemma.
Context-Free Grammars: Definition of Context-Free Grammars, Derivations Using a Grammar, Leftmost and Rightmost Derivations, the Language of a Grammar, Parse Trees, Ambiguity in Grammars and Languages.
UNIT - III
Push Down Automata: Definition of the Pushdown Automaton, the Languages of a PDA, Equivalence of PDA and CFG’s, Acceptance by final state
Turing Machines: Introduction to Turing Machine, Formal Description, Instantaneous description, The language of a Turing machine
Undecidability: Undecidability, A Language that is Not Recursively Enumerable, An Undecidable Problem That is RE, Undecidable Problems about Turing Machines
UNIT - IV
Introduction: The structure of a compiler,
Lexical Analysis: The Role of the Lexical Analyzer, Input Buffering, Recognition of Tokens, The Lexical- Analyzer Generator Lex,
Syntax Analysis: Introduction, Context-Free Grammars, Writing a Grammar, Top-Down Parsing, Bottom- Up Parsing, Introduction to LR Parsing: Simple LR, More Powerful LR Parsers
UNIT - V
Syntax-Directed Translation: Syntax-Directed Definitions, Evaluation Orders for SDD's, Syntax- Directed Translation Schemes, Implementing L-Attributed SDD's.
Intermediate-Code Generation: Variants of Syntax Trees, Three-Address Code
Run-Time Environments: Stack Allocation of Space, Access to Nonlocal Data on the Stack, Heap Management








.png)
.png)
.png)
.png)








.png)
