THEORY EXAMINATION (SEM–IV) 2016-17 THEORY OF AUTOMATA AND FORMAL LANGUAGES

B.Tech Engineering 0 downloads
₹29.00

Course: B.Tech (CSE / IT)
Subject Code: ECS403
Subject Title: Theory of Automata and Formal Languages
Exam Type: Theory
Duration: 3 Hours
Maximum Marks: 100

 SECTION – A (10 × 2 = 20 Marks)

Short theoretical and concept-based questions that test fundamentals

No.QuestionExplanation
(a)Design DFA for even number of a’s and b’sConstruct 4-state DFA to track parity of a’s and b’s — transitions based on input symbols.
(b)Identify language accepted by given DFAAnalyze accepting states and transitions to describe L (usually pattern-based like strings ending in a specific sequence).
(c)Pumping Lemma for Regular LanguagesIf L is regular, ∃p ≥ 1 such that ∀w ∈ L with
(d)Convert FA to Left Linear GrammarReplace each state by non-terminal and transitions as productions → convert machine to equivalent grammar.
(e)Check Ambiguity of Grammar (R → R+R / RR / R* / a / b / c)Grammar generates expressions like a+b*c; ambiguous if multiple parse trees possible for same string.
(f)Generate Strings from GrammarGrammar rules generate patterns like aab, abb, etc. Use derivation sequence.
(g)Define PDA with DiagramPDA = 7-tuple (Q, Σ, Γ, δ, q₀, Z₀, F); shown using transition diagram (stack-based).
(h)PDA for Balanced ParenthesesStack-based PDA: push ‘(’ on stack; pop for ‘)’; accept if stack empty at end.
(i)Eliminate Unit ProductionsSimplify grammar (replace A → B by A → productions of B).
(j)Checking-off SymbolsSymbols used in Turing Machine tape to mark already-processed input symbols.

SECTION – B (5 × 10 = 50 Marks)

Medium-length analytical and proof-based questions

(a) NFA-ε to DFA Conversion

Step 1: Compute ε-closure for all states.

Step 2: Use subset construction to form equivalent DFA.

Step 3: Merge identical states.
(Page 2 shows example diagrams of automata equivalence).

(b) Closure Properties of Regular Languages

Regular languages closed under:

Union, Intersection, Complement

Concatenation, Kleene Star

Homomorphism and Inverse Homomorphism
Proof: Use DFA construction or regular expressions to demonstrate closure.

(c) Kleene’s Theorem

States equivalence between:

Regular expressions

Finite Automata

Regular languages

Example: Convert DFA → Regular Expression via Arden’s theorem.

(d) Grammar Derivation

Given: S → aSS, A → b
Derive string aababbb using leftmost and rightmost derivation, and draw the parse tree.

(e)

(i) Determine if L={xnynzn∣n≥1}L = \{x^n y^n z^n | n ≥ 1\}L={xnynzn∣n≥1} is context-free.
→ Not context-free (proved by Pumping Lemma for CFLs).
(ii) Construct PDA for L={wwR∣w∈(a+b)∗}L = \{ww^R | w ∈ (a+b)^*\}L={wwR∣w∈(a+b)∗}.
→ Push first half on stack, pop while matching reverse.

(f) Convert CFG to CNF

Example:

S→XY∣Xn∣p,X→mX∣m,Y→Xn∣oS → XY | Xn | p, \quad X → mX | m, \quad Y → Xn | oS→XY∣Xn∣p,X→mX∣m,Y→Xn∣o

and

S→ASA∣aB,A→B∣S,B→b∣εS → ASA | aB, \quad A → B | S, \quad B → b | εS→ASA∣aB,A→B∣S,B→b∣ε

→ Eliminate ε-productions and unit productions; ensure RHS ≤ 2 symbols.

(g) Turing Machine (TM) for Odd Number of a’s

Read input; toggle a parity flag.

Accept if odd flag ON at end.
(Diagram on page 2 shows TM design).

(h) Halting Problem

Statement: No algorithm can decide for every TM whether it halts on input w.

Proof by contradiction using diagonalization (similar to Cantor’s theorem).

SECTION – C (2 × 15 = 30 Marks)

Long, problem-solving questions involving Automata, PDA, and TM design

Q3.

(a) Minimize the given DFA (see diagram on page 3).
Steps:

Group states by final/non-final.

Eliminate indistinguishable states via equivalence partitioning.

Redraw minimized DFA.

(b) Compute ε-closure for NFA and convert to DFA using subset method.

Q4.

(a) Construct PDA for L={0n1n∣n>0}L = \{0^n 1^n | n > 0\}L={0n1n∣n>0}.
→ Push 0’s; pop for each 1; accept if stack empty.

(b) Build PDA from CFG:

S→XS∣ε,A→aXb∣Ab∣abS → XS | ε, \quad A → aXb | Ab | abS→XS∣ε,A→aXb∣Ab∣ab

Use transitions based on productions to derive equivalent PDA.

Q5.

(a) Prove that single-tape TM can simulate multi-tape TM
→ Encode multiple tape contents on one tape with delimiters.
→ Simulation possible with polynomial time overhead.
(b) Design TM for strings with odd number of α’s (proof of computability).

Summary Table

ConceptExample / Problem Type
Regular LanguagesDFA/NFA design, closure properties
CFGs & CNFConversion, ambiguity, derivation trees
Pushdown AutomataBalanced parentheses, equal 0s & 1s
Turing MachinesRecognition, computation, simulation
UndecidabilityHalting problem, reduction proofs
File Size
157.89 KB
Uploader
SuGanta International
⭐ Elite Educators Network

Meet Our Exceptional Teachers

Discover passionate educators who inspire, motivate, and transform learning experiences with their expertise and dedication

KISHAN KUMAR DUBEY

KISHAN KUMAR DUBEY

Sant Ravidas Nagar Bhadohi, Uttar Pradesh , Babusarai Market , 221314
5 Years
Years
₹10000+
Monthly
₹201-300
Per Hour

This is Kishan Kumar Dubey. I have done my schooling from CBSE, graduation from CSJMU, post graduati...

Swethavyas bakka

Swethavyas bakka

Hyderabad, Telangana , 500044
10 Years
Years
₹10000+
Monthly
₹501-600
Per Hour

I have 10+ years of experience in teaching maths physics and chemistry for 10th 11th 12th and interm...

Vijaya Lakshmi

Vijaya Lakshmi

Hyderabad, Telangana , New Nallakunta , 500044
30+ Years
Years
₹9001-10000
Monthly
₹501-600
Per Hour

I am an experienced teacher ,worked with many reputed institutions Mount Carmel Convent , Chandrapu...

Shifna sherin F

Shifna sherin F

Gudalur, Tamilnadu , Gudalur , 643212
5 Years
Years
₹6001-7000
Monthly
₹401-500
Per Hour

Hi, I’m Shifna Sherin! I believe that every student has the potential to excel in Math with the righ...

Divyank Gautam

Divyank Gautam

Pune, Maharashtra , Kothrud , 411052
3 Years
Years
Not Specified
Monthly
Not Specified
Per Hour

An IIT graduate having 8 years of experience teaching Maths. Passionate to understand student proble...

Explore Tutors In Your Location

Discover expert tutors in popular areas across India

Guitar Classes Near Okhla – Professional Guitar Training in South Delhi Okhla, Delhi
Real Estate Consulting Near By Dwarka Mor Professional Property Guidance for Buying, Selling & Investment Decisions Dwarka Mor, Delhi
French Language Classes Near By Uttam Nagar – Learn French with Confidence Uttam Nagar, Delhi
Guitar Classes Near Mehrauli – Professional Guitar Training in South Delhi Mehrauli, Delhi
IELTS Coaching Near Noida Sector 107 – Expert Training for High Band Scores Noida
Meditation Coaching Near Sector 126 Noida – A Complete Guide to Mental Wellness and Inner Peace Sector 126, Noida
Diet & Nutrition Consultation Near By Nangli – Personalized Health & Wellness Guidance Nangli, Delhi
Financial Advisory Near By Dwarka Mor Professional Financial Planning, Investment Guidance & Wealth Management Support Dwarka Mor, Delhi
Baking Classes Near Sector 84 Gurugram – Learn Cake & Bakery Skills Professionally Sector 84, Gurugram
Legal Documentation Assistance Near Sector 102A Gurugram (Dwarka Expressway) – Reliable, Professional & Hassle-Free Services Village Dhankot, Sector 102, Gurugram
Guitar Classes Near By Malviya Nagar Learn Guitar with Expert Trainers & Turn Your Passion into Skill in 2026 Malviya Nagar, Delhi
Harmonium Classes Near Sector 141 – Learn Classical & Devotional Music Professionally Noida
Vedic Maths Classes Near By Dwarka Mor Improve Speed, Accuracy & Confidence in Mathematics Dwarka Mor, Delhi
Keyboard / Piano Classes Near DLF Phase 3 Gurugram – Professional Music Training for Kids, Beginners & Advanced Learners DLF Phase 3, Gurugram
Stenography Classes Near Sector 93 Gurugram – Build Speed, Accuracy & Secure Government Career Opportunities Sector 93, Gurugram
Voice-over Training Classes Near By Saket – Build a Powerful & Professional Voice Saket, Delhi
Drawing & Sketching Classes Near By Uttam Nagar – Explore Your Creative Potential Uttam Nagar, Delhi
Yoga Classes Near Sector 138 Greater Noida – Improve Health, Mind & Lifestyle Through Professional Yoga Training Noida
Violin Classes Near DLF Phase 5 – Learn Classical & Modern Violin from Expert Teachers DLF Phase V, Gurugram
Violin Classes Near Sector 144 Noida – Learn Violin with Professional Music Trainers Sector 144, Noida
⭐ Premium Institute Network

Discover Elite Educational Institutes

Connect with top-tier educational institutions offering world-class learning experiences, expert faculty, and innovative teaching methodologies

Réussi Academy of languages

sugandha mishra

Réussi Academy of languages
Madhya pradesh, Indore, G...

Details

Coaching Center
Private
Est. 2021-Present

Sugandha Mishra is the Founder Director of Réussi Academy of Languages, a premie...

IGS Institute

Pranav Shivhare

IGS Institute
Uttar Pradesh, Noida, Sec...

Details

Coaching Center
Private
Est. 2011-2020

Institute For Government Services

Krishna home tutor

Krishna Home tutor

Krishna home tutor
New Delhi, New Delhi, 110...

Details

School
Private
Est. 2001-2010

Krishna home tutor provide tutors for all subjects & classes since 2001

Edustunt Tuition Centre

Lakhwinder Singh

Edustunt Tuition Centre
Punjab, Hoshiarpur, 14453...

Details

Coaching Center
Private
Est. 2021-Present
Great success tuition & tutor

Ginni Sahdev

Great success tuition & tutor
Delhi, Delhi, Raja park,...

Details

Coaching Center
Private
Est. 2011-2020