Theory of Computation

Grammars & Context Free Grammar

Unit 3 Study Material

Study Theory of Computation Unit 3 for RGPV B.Tech CSE. This unit covers types of grammar, context sensitive grammar, context free grammar, regular grammar, derivation trees, ambiguity, simplification of CFG, Chomsky hierarchy, Chomsky Normal Form and Greibach Normal Form.

📚 Types of Grammars

Learn Regular Grammar, Context Free Grammar, Context Sensitive Grammar and Chomsky hierarchy used in formal language theory.

🌳 Derivation Trees

Understand derivation trees, parse trees, ambiguity in grammar and simplification of context free grammar.

⚙️ CNF & GNF

Study Chomsky Normal Form, Greibach Normal Form, killing null productions, unit productions and grammar conversion.

📘

Detailed Notes

Complete notes on types of grammar, context sensitive grammar, context free grammar, regular grammar, derivation trees, ambiguity in grammar, simplification of CFG, Chomsky hierarchy, CNF and GNF.

🚧 Notes Coming Soon

Important Questions

Important RGPV examination questions on CFG, CSG, regular grammar, derivation trees, ambiguous grammar, null productions, unit productions, CNF, GNF and Chomsky hierarchy.

🚧 Questions Coming Soon
📄

PYQ Analysis

Previous year question analysis of Unit 3 including repeated topics from grammar types, derivation trees, ambiguity, grammar simplification, CNF, GNF and Chomsky hierarchy.

🚧 PYQ Analysis Coming Soon

Unit 3 Topics

Introduction to Grammars
Types of Grammar
Regular Grammar
Context Free Grammar (CFG)
Context Sensitive Grammar (CSG)
Unrestricted Grammar
Derivation Trees
Parse Trees
Leftmost Derivation
Rightmost Derivation
Ambiguity in Grammar
Ambiguous Grammar
Simplification of Context Free Grammar
Killing Null Productions
Killing Unit Productions
Conversion of Grammar to Automata Machine
Conversion of Automata Machine to Grammar
Chomsky Hierarchy of Grammar
Chomsky Normal Form (CNF)
Conversion to Chomsky Normal Form
Greibach Normal Form (GNF)
Conversion to Greibach Normal Form

📚 Related Subjects

🏠 Theory of Computation Home 📖 TOC Unit 1 - Finite Automata 📖 TOC Unit 2 - Finite Automata & Regular Expressions 📖 TOC Unit 4 - Pushdown Automata 📖 TOC Unit 5 - Turing Machine 🗄️ Database Management System 📊 Data Analytics 🤖 Pattern Recognition 🔒 Cyber Security 🌐 Internet & Web Technology