Relationship of RE, NFA and DFA

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Course : Compilation Techniques

 

1. Relationship of RE, NFA and DFA

Expert Solution
what is Regular Expression(RE) and Finate automata(NFA,DFA)


For understanding the relationship between finite automata and regular expression,First, we can check these two separately

Regular Expression:  It is the language that is used to describe the language and is accepted by finite automata.
 Regular expressions are the most effective way to represent any language. Let Σ be an alphabet that denotes the input set.

The RE over Σ will be defined as follows −

  • Φ is a RE for an empty set.
  • ε is a RE and denotes the set { ε} and it will be a null string.
  • For each ‘a’ in Σ ‘a’ is a regular expression and denotes the set {a}.
  • If r and s RE denoting the language.
    • L1 and l2 respectively then,
    • r+s is equivalent to L1 U L2 union
    • rs is equivalent to L1L2 concatenation
    • r* is equivalent to L1* closure

The r* is known as Kleen closure or closure which indicates the occurrence of r for an infinite number of times.

Finite Automata(FA): It is an abstract computing device. This is a mathematical model of the system with discrete states, inputs, outputs and a set of transitions from state to state that occurs on input symbols from the alphabet Σ.

FA is defined as a 5-tuples

M=(Q, Σ, δ,q0,F)

Where,

  • Q: Finite set called states.
  • Σ: Finite set called alphabets.
  • δ: Q × Σ → Q is the transition function.
  • q0 ∈ Q is the start or initial state.
  • F: Final or accept state.

let us understand the relation between them.

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education