SlideShare a Scribd company logo
Prof.Neeraj Bhargava
Abhishek Kumar
Department of Computer Science
School of Engineering & System Sciences,
MDS, University Ajmer, Rajasthan, India
1
• Finite automata are used to recognize
patterns of strings, regular expression are
used to generate patterns of strings.
• A regular expression is an algebraic formula
whose values is a pattern consisting of a set
of strings, called the language of the
expression.
Operands in a regular expression can be:
• Characters from the alphabet over which
the regular expression is defined.
• Variables whose values are any pattern
defined by a regular expression.
2
• Epsilon which denotes the empty string
containing no characters.
• Null which denotes the empty set of
string.
In this section we will discuss finite
automata, how to convert finite automata
into regular grammar.
3
 Que : Construct a regular grammar for
given DFA.

R(G)= { Vn, A0, P, ∑ }
 Vn = { A0, A1, A2, A3 }
 ∑ = { a, b}

4
 We are generate the Production rules:
1. A -> aA1
2. A1 -> bA1
3. A1 -> aA2
4. A2 -> bA3
5. A2 -> aA2
6. A3 -> aA2
7. A3 -> bA1
8. A2 -> b
5
Thankyou
6

More Related Content

PPTX
PPTX
CubeIT Tech - Algorithms
PPTX
NLP_KASHK:Minimum Edit Distance
PPTX
Test 3 exam review guide
PPTX
L attribute in compiler design
PPTX
Introduction to fuzzy logic
PPTX
Python Programming | JNTUK | UNIT 1 | Lecture 4
CubeIT Tech - Algorithms
NLP_KASHK:Minimum Edit Distance
Test 3 exam review guide
L attribute in compiler design
Introduction to fuzzy logic
Python Programming | JNTUK | UNIT 1 | Lecture 4

What's hot (20)

PPT
Sdd Syntax Descriptions
PPTX
Data Structure and Algorithms –Introduction.pptx
PPT
PL/SQL Example for IF .. ELSIF
PDF
Fundamentals of Computing and C Programming - Part 1
PDF
Fundamentals of Computing and C Programming - Part 2
PDF
Recursion CBSE Class 12
PDF
Python Fundamentals Class 11
PDF
Operators in c
PDF
+2 Computer Science - Volume II Notes
PDF
Database management system session 5
PPTX
Fuzzy logic
PDF
Erlang
PDF
Design aspects of fuzzy logic systems smv
PPTX
Fuzzy arithmetic
PDF
Basic Foundations of Automata Theory
PPT
Arithmetic Operator in C
PPTX
Lecture 11 semantic analysis 2
PDF
Python Data Types
PPTX
Unit 1 polynomial manipulation
Sdd Syntax Descriptions
Data Structure and Algorithms –Introduction.pptx
PL/SQL Example for IF .. ELSIF
Fundamentals of Computing and C Programming - Part 1
Fundamentals of Computing and C Programming - Part 2
Recursion CBSE Class 12
Python Fundamentals Class 11
Operators in c
+2 Computer Science - Volume II Notes
Database management system session 5
Fuzzy logic
Erlang
Design aspects of fuzzy logic systems smv
Fuzzy arithmetic
Basic Foundations of Automata Theory
Arithmetic Operator in C
Lecture 11 semantic analysis 2
Python Data Types
Unit 1 polynomial manipulation
Ad

Similar to Regular expression for dfa (20)

DOCX
UNIT_-_II.docx
PPTX
Unit2 Toc.pptx
PDF
Flat unit 2
PPT
4_Regular_Expressionssssssssssassssss.ppt
PPTX
Regular expressions
PPT
Regular_Expresssions_pptsforreference.ppt
PPTX
The Theory of Finite Automata.pptx
PPT
To lec 03
PDF
Patterns, Automata and Regular Expressions
PPT
Regular expression with DFA
PPTX
fullunit2-220307090026 (1) theory of computation.pptx
DOCX
Regular Expression .docx
PDF
Chapter 3 REGULAR EXPRESSION.pdf
PPTX
Automata theory -RE to NFA-ε
PPTX
Theory of Computation Unit 2
PDF
RegularExpressions.pdf
PPTX
AUTOMATA AUTOMATA Automata4Chapter3.pptx
PPTX
Mod 2_RegularExpressions.pptx
PPTX
Chapter 4_Regular Expressions in Automata.pptx
PDF
Automata_Theory_and_compiler_design_UNIT-1.pptx.pdf
UNIT_-_II.docx
Unit2 Toc.pptx
Flat unit 2
4_Regular_Expressionssssssssssassssss.ppt
Regular expressions
Regular_Expresssions_pptsforreference.ppt
The Theory of Finite Automata.pptx
To lec 03
Patterns, Automata and Regular Expressions
Regular expression with DFA
fullunit2-220307090026 (1) theory of computation.pptx
Regular Expression .docx
Chapter 3 REGULAR EXPRESSION.pdf
Automata theory -RE to NFA-ε
Theory of Computation Unit 2
RegularExpressions.pdf
AUTOMATA AUTOMATA Automata4Chapter3.pptx
Mod 2_RegularExpressions.pptx
Chapter 4_Regular Expressions in Automata.pptx
Automata_Theory_and_compiler_design_UNIT-1.pptx.pdf
Ad

More from Dr. ABHISHEK K PANDEY (20)

PPTX
Digital to digital
PPTX
Digital to analog
PPTX
Analog to analog
PPTX
Wcdma interface sakshi
PPT
Utran architecture(rashmi)
PPTX
PPTX
Network topologies(chetan)
PPTX
Multiplexing II
PPTX
Est umts speech cells
PPTX
Digital to analog piyush sen
PPTX
Reguler grammar cfg
PPTX
Regular languag regular set
PPTX
Pumping lemma
PPTX
Pumping lemma numerical
PPT
Pumping lemma for cfg
PPTX
Power of authomata
Digital to digital
Digital to analog
Analog to analog
Wcdma interface sakshi
Utran architecture(rashmi)
Network topologies(chetan)
Multiplexing II
Est umts speech cells
Digital to analog piyush sen
Reguler grammar cfg
Regular languag regular set
Pumping lemma
Pumping lemma numerical
Pumping lemma for cfg
Power of authomata

Recently uploaded (20)

PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPT
Mechanical Engineering MATERIALS Selection
PPTX
Current and future trends in Computer Vision.pptx
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
Safety Seminar civil to be ensured for safe working.
PPTX
web development for engineering and engineering
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
PPT on Performance Review to get promotions
PPTX
Sustainable Sites - Green Building Construction
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
Well-logging-methods_new................
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
OOP with Java - Java Introduction (Basics)
PPT
introduction to datamining and warehousing
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
Lecture Notes Electrical Wiring System Components
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Mechanical Engineering MATERIALS Selection
Current and future trends in Computer Vision.pptx
CYBER-CRIMES AND SECURITY A guide to understanding
Safety Seminar civil to be ensured for safe working.
web development for engineering and engineering
R24 SURVEYING LAB MANUAL for civil enggi
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
UNIT-1 - COAL BASED THERMAL POWER PLANTS
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PPT on Performance Review to get promotions
Sustainable Sites - Green Building Construction
bas. eng. economics group 4 presentation 1.pptx
Well-logging-methods_new................
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
OOP with Java - Java Introduction (Basics)
introduction to datamining and warehousing
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
Lecture Notes Electrical Wiring System Components

Regular expression for dfa

  • 1. Prof.Neeraj Bhargava Abhishek Kumar Department of Computer Science School of Engineering & System Sciences, MDS, University Ajmer, Rajasthan, India 1
  • 2. • Finite automata are used to recognize patterns of strings, regular expression are used to generate patterns of strings. • A regular expression is an algebraic formula whose values is a pattern consisting of a set of strings, called the language of the expression. Operands in a regular expression can be: • Characters from the alphabet over which the regular expression is defined. • Variables whose values are any pattern defined by a regular expression. 2
  • 3. • Epsilon which denotes the empty string containing no characters. • Null which denotes the empty set of string. In this section we will discuss finite automata, how to convert finite automata into regular grammar. 3
  • 4.  Que : Construct a regular grammar for given DFA.  R(G)= { Vn, A0, P, ∑ }  Vn = { A0, A1, A2, A3 }  ∑ = { a, b}  4
  • 5.  We are generate the Production rules: 1. A -> aA1 2. A1 -> bA1 3. A1 -> aA2 4. A2 -> bA3 5. A2 -> aA2 6. A3 -> aA2 7. A3 -> bA1 8. A2 -> b 5