SlideShare a Scribd company logo
2
Most read
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 10 Issue: 01 | Jan 2023 www.irjet.net p-ISSN: 2395-0072
© 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 448
Regular Expression to Deterministic Finite Automata
Shravani Bahirat1 , Vaishnavi Dalvi2, Sakshi Darawade3,Shravani Jagtap4, Sakshi Shakhawar5
1,2,3,4,5Student Dept. of Artificial Intelligence & Data Science , Vishwakarma Institue of Technology, Maharashtra,
India
---------------------------------------------------------------------***---------------------------------------------------------------------
Abstract - Regular expression is a sequence of
characters(strings) which is also called as language that is
accepted by a finite automata. Regular Expression consists of
characters which are useful for defining filter. Practical
applications of regular expressions are it is used in pattern
matching for text editors, compiler design, etc. Expression in
regular expression corresponds to a language and are well
defined. Deterministic finite automata or the (DFA) are finite
set of states and transitions that decideswhetherto acceptsor
rejects set of characters mainly called as strings or languages.
Applications of DFA are it is included in protocol analysis, text
parsing vending machine, video game character behaving,
security analysis, NLP, speech recognition, elevators etc. DFA
represents any system’s which require an internal definition
state. DFA represents a maching that accepts the specific RE.
In DFA, after a particular input is provided to first state, it will
pass on to one state only. To conver regular expression to DFA
methods like transitive closure, state elimination and
brzozowski algebraic method using arden’s theorem are
introduced. DFA is represented by digraphs called state
diagram
Key Words - Theory of Computation, Deterministic
Finite Automata, String passing
1. INTRODUCTION
Regular expression is a shortened way of representing a
language, which is a condition or filter to be accepted by
Deterministic finite Automata. In order to speed up the
process of converting regular expressions to finite state
machines and vice versa,variousoptionsshouldbeexplored.
Thus, we have tried to facilitate the assignmentofRe-to-DFA
conversion by enabling a step-by-stepconversionfromREto
DFA. In this review, various approaches to converting
deterministic finite automata into regular expressions are
briefly compared. The most common and least burdensome
to the environment is the earth elimination method. Our
interactions with generation are simple: In most cases, the
scanners produced are the right size. The larger RE length
allows a smaller scanner to be specified, which is useful for
symbolic operations such as inductive statistics types and
pattern machines.
2. LITERATURE REVIEW
[1]The editorial “Visual Designing and Debugging of
Deterministic FiniteState Machines” in FSM This article
shows how the DFA visualisation tool was created to createa
trustworthy DFA. The user can also create the state
transitions while the execution is taking place using the
visualisation tool. Users can edit the states oftheirfinitestate
machines (FSMs), which can then be rendered as executable
code. Additionally, it states that the state-based machine
visualisation component of the software is exclusive to code
generation. It suggested a method to visualise machine
verificationanddebuggingforformalmachinesinaccordance
with design.
[2] A Review Paper on String Identification Using Finite
Automata It demonstrates how the finite automata model
keeps track of the user-supplied input strings for transition
stages. It determineswhethertheuser-providedinputstrings
contain letters, numbers, or valid symbols. Computation is
the process of receiving information and carrying out
operations in accordance with a set ofrules.Thissystemuses
lexical analysis technologies to reduce errors and increase
performance levels for completing activities.
[3] On Implementing Deterministic Finite Automata in
Parallel A systemknownasthedeterministicfiniteautomatis
utilised to solve numerous procedures and jobs in thefieldof
computer technology. DFA is compatible with two different
parallel computer architectures. This work presents the
computer-based parallel simulation of the general DFA,
which employs automata.
[4] On Implementing Deterministic Finite Automata in
Parallel A systemknownasthedeterministicfiniteautomatis
utilised to solve numerous procedures and jobs in thefieldof
computer technology. DFA is compatible with two different
parallel computer architectures. This work presents the
computer-based parallel simulation of the general DFA,
which employs automata.
[5] . Ho Ngoc Vinh and Nguyen Thi Thu Ha together compiled
a paper in which they have depicted the conversionofNFAto
DFA using the concept of bounded words
[6]In this paper,concepts of bounded words on an alphabet
A,languages and monoid morphism are introduced.
[7] A work in CSESpring18 that uses the Gallier's technique
for NFA to DFA conversion was coauthored by Ghafoor[3]. It
makes use of the different C++ data structures, including
vectors, parser classes, etc. The DFA tuple, which is actually
represented as strings, is the output that is ultimately
produced.
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 10 Issue: 01 | Jan 2023 www.irjet.net p-ISSN: 2395-0072
© 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 449
[8]To test the system Dynamic system through automata
learning it presented a dynamic testing method.. It generate
and analyze the pages generated by the application to
execute test by creating a web application. It also presents a
case study that establishes dynamic testing procedure work.
[9]This paper introduced model od Finite state automata to
monitor whether the words are included in the text are
sensitive or not in paper names as “Application research of
Finite Automata in Distance Education”. The method
described the existence of large numbers of keywords in the
text string which is well suited for the application and this
method is further used to improve the system efficiency. For
ignoring mistakes in strings or in word error recognitions
exist in this method which is used to reduce the error rate
and improve the performance of the system.
[2] addressed challenges to compile large set of patterns it
may be in different data structure. It helps runtime to match
input string to appropriate patterns effectively. Some time
input string matches more than one pattern. This is main
challenge in efficient classification of strings. To tackle with
above problem sequential approach can be used but main
problem with this approach is it will take more time as
pattern increases. This paperalso suggested the refinements
so that decision tree compilation algorithm will be time
effective. Sailesh Kumar et al.
3. METHODOLOGY
For every language there is atleast one regular expression
and multiple DFA’s that represent the language. The
algorithm below shows conversion of Regular Expression to
Deterministic Finite Automata(DFA). It initially converts RE
to NFA that is non deterministic finite automata and then to
equivalent DFA. In this process of conversion every possible
case is considered
• NFA for two-state transition which signifies a language
makes a empty string
• NFA comprised for α transition to represent literal
characters.
• Union of two languages forms from the NFA used to
represent languages.By α transition initial state is linked to
the R nd S, and the final state is connected to the Final states
of R and S by ε-transitions.
 a | b
 Concatenation of two lnguages results into the NFA
of language, which have the linking of transition
final state R to initial state S.
 ab
 An NFA with Kleen star language is the ε-
conversion from its initial state to the initial stateof
R, a ε-transition from its final state to the accepting
state of R, and ε-transitions between its initial and
accepting states.
 a*
 Here each can be a valid DFA so it can be
endangered towards the NFA to DFA algorithm.
Equivalent DFA for the previously developed NFA
shown below.
ε
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 10 Issue: 01 | Jan 2023 www.irjet.net p-ISSN: 2395-0072
© 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 450
 a
 b
 a|b
 ab
 a*
3.3 Algorithm
• Step 1 – Convert RE to NFA using standard methods such
as Thompsons algorithm.
• Step 2 – Now convertNFAtoDFAusingstandardalgorithms
that is a subset construction in which every one state have
one subset of states of the NFA
3.4 Flowchart
4. RESULTS AND DISCUSSIONS
Various techniques such as transitive closure, Brzozowski
algebra, and state elimination have been inventedtoconvert
deterministic finite automata to regular expressions.
However, these techniques are efficient work givingminimal
regular expressions. Our main motive is to find the minimal
RE corresponding to a given DFA. The most commonly used
and efficient approach to convert DFA to RE is state removal
approach. This article explores and equates different
techniques used to transform regular expressions into
deterministic finite automata.
4.1 Results
Fig.1 Input screen for conversion
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 10 Issue: 01 | Jan 2023 www.irjet.net p-ISSN: 2395-0072
© 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 451
In the given snapshot, there is the input screen where we
accept the Regular expression from the user to convert it
into the Deterministic Finite Aotomata (DFA)
4.2 LIMITATIONS
 Limited algorithms are implemented.
 RE gives the NFA Table states but not the proper
NFA diagram.
4.3 CONCLUSION
This study gives readers an understanding of the many
methods used to translate Regular Expressions into
deterministic finite automata. There are comparisons made
between several methods for converting RE to DFA.
Research in this project shows that the procedure for
converting regular expressionstoDFAsandviceversa iswell
understood and easy to implement. Codingtheparserfor the
regular expression took the most time in the project. Due to
the fact that regular expressions create regular languages
but are not themselves regular, they require context-free
grammars to be defined.
4.4 FUTURE SCOPE
 In future we can upgrade this project by making it
more user friendly and adding graphics interface.
 As this project gives output after compiling the
whole result,In the future,we can calculate the
output of NFA also.
 we can add DFA to RE
7. REFERENCES
[1] A Review Paper On Finite Automata Application in
String Identification (PDF) EasyChair Preprint A Review
Paper on Finite Automata Application in String
Identification A Review Paper On Finite Automata
Application in String Identification (researchgate.net)
[2] On Parallel Implementations of Deterministic Finite
Automata On Parallel Implementations of Deterministic
Finite Automata | SpringerLink
[3] Kuldeep Vayadande, Aditya Bodhankar, Ajinkya
Mahajan, Diksha Prasad,ShivaniMahajan,Aishwarya Pujari
and Riya Dhakalkar, “Classification of Depression on social
media using Distant Supervision”, ITM Web Conf. Volume
50, 2022.
[4] Kuldeep Vayadande, Rahebar Shaikh, Suraj Rothe,
Sangam Patil, Tanuj Barware and Sameer Naik,”
Blockchain-Based Land Record System”, ITM Web Conf.
Volume 50, 2022.
[5] Kuldeep Vayadande, Kirti Agarwal,AadeshKabra,Ketan
Gangwal andAtharvKinage,” CryptographyusingAutomata
Theory”, ITM Web Conf. Volume 50, 2022
[6] Samruddhi Mumbare, Kunal Shivam, Priyanka
Lokhande, Samruddhi Zaware, Varad Deshpande and
Kuldeep Vayadande,” Software Controller using Hand
Gestures”, ITM Web Conf. Volume 50, 2022.
[7] Preetham, H.D.,and KuldeepBabanVayadande."Online
Crime Reporting System Using Python Django."
[8] Vayadande, Kuldeep B., et al. "Simulation and Testingof
Deterministic Finite Automata Machine." International
Journal of Computer Sciences andEngineering10.1(2022):
13-17.
[9] Vayadande, Kuldeep, et al. "Modulo Calculator Using
Tkinter Library." EasyChair Preprint 7578 (2022).
[10] VAYADANDE, KULDEEP. "Simulating Derivations of
Context-Free Grammar." (2022).
[11] Vayadande, Kuldeep, Ram Mandhana, Kaustubh
Paralkar, Dhananjay Pawal, Siddhant Deshpande, and
Vishal Sonkusale. "Pattern Matching in File System."
International Journal of Computer Applications 975: 8887.
[12] Vayadande, Kuldeep, Ritesh Pokarne, Mahalakshmi
Phaldesai, Tanushri Bhuruk, Tanmay Patil, and Prachi
Kumar. "Simulation Of Conway’s Game Of Life Using
Cellular Automata." SIMULATION 9, no. 01 (2022).
[13] Gurav, Rohit, Sakshi Suryawanshi, Parth Narkhede,
Sankalp Patil, Sejal Hukare, and Kuldeep Vayadande.
"Universal Turing machine simulator." International
Journal of Advance Research, Ideas and Innovations in
Technology, ISSN (2022).
[14] Vayadande, Kuldeep B., Parth Sheth, Arvind Shelke,
Vaishnavi Patil, Srushti Shevate, and Chinmayee Sawakare.
"Simulation and Testing of Deterministic Finite Automata
21 Machine." International Journal of Computer Sciences
and Engineering 10, no. 1 (2022): 13-17.
[15] Vayadande, Kuldeep, Ram Mandhana, Kaustubh
Paralkar, Dhananjay Pawal, Siddhant Deshpande, and
Vishal Sonkusale. "Pattern Matching in File System."
International Journal of Computer Applications 975: 8887.
[16] Vayadande, Kuldeep B., and Surendra Yadav. "A
Review paper on Detection of Moving Object in Dynamic
Background." International Journal of Computer Sciences
and Engineering 6, no. 9 (2018): 877-880.
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 10 Issue: 01 | Jan 2023 www.irjet.net p-ISSN: 2395-0072
© 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 452
[17] Vayadande, Kuldeep, Neha Bhavar, Sayee Chauhan,
Sushrut Kulkarni, Abhijit Thorat, and Yash Annapure. Spell
Checker Model for String Comparison in Automata. No.
7375. EasyChair, 2022.
[18] Vayadande, Kuldeep, Harshwardhan More, Omkar
More, Shubham Mulay, Atharva Pathak, and Vishwam
Talnikar. "Pac Man: Game Development using PDA and
OOP." (2022).
[19] Preetham, H. D., and Kuldeep Baban Vayadande.
"Online Crime Reporting System Using Python Django."
[20] Vayadande, Kuldeep. "Harshwardhan More, Omkar
More, Shubham Mulay, Atahrv Pathak, Vishwam
Talanikar,“Pac Man: Game Development using PDA and
OOP”." International Research Journal of Engineering and
Technology (IRJET), eISSN (2022): 2395-0056.
[21] Ingale, Varad, Kuldeep Vayadande, Vivek Verma,
Abhishek Yeole, Sahil Zawar, and Zoya Jamadar. "Lexical
analyzer using DFA." International Journal of Advance
Research, Ideas and Innovations in Technology, www.
IJARIIT. com.
[22] Manjramkar, Devang, Adwait Gharpure, Aayush Gore,
Ishan Gujarathi, and Dhananjay Deore. "A Review Paper on
Document text search based on nondeterministic
automata." (2022).
[23] Chandra, Arunav, Aashay Bongulwar, Aayush Jadhav,
Rishikesh Ahire, Amogh Dumbre, Sumaan Ali, Anveshika
Kamble, Rohit Arole, Bijin Jiby, and Sukhpreet Bhatti.
Survey on Randomly Generating English Sentences. No.
7655. EasyChair, 2022
[24] F. Le Fessant and L. Maranget, “Optimizing pattern
matching,” ACM SIGPLAN Not., vol. 36, no. 10, pp. 26–37,
Oct. 2001, Doi: 10.1145/507669.507641.
[25] R. M. Karp and M. O. Rabin, “EFFICIENT RANDOMIZED
PATTERN-MATCHING ALGORITHMS.,” IBM J.Res.Dev.,vol.
31, no. 2, pp. 249–260, 1987, Doi: 10.1147/RD.312.0249.

More Related Content

PDF
DFA CREATOR AND STRING TESTER
PDF
NFA to DFA conversion in C
PDF
Regular Expression to Non-Deterministic Finite Automata Converter
PDF
Overlapping optimization with parsing through metagrammars
PDF
Free Writing - Grammatical Error Correction System: Sequence Tagging
PDF
Generation of strings in language for given Regular Expression and printing i...
PDF
LEXICAL ANALYZER
PDF
IRJET - Pseudocode to Python Translation using Machine Learning
DFA CREATOR AND STRING TESTER
NFA to DFA conversion in C
Regular Expression to Non-Deterministic Finite Automata Converter
Overlapping optimization with parsing through metagrammars
Free Writing - Grammatical Error Correction System: Sequence Tagging
Generation of strings in language for given Regular Expression and printing i...
LEXICAL ANALYZER
IRJET - Pseudocode to Python Translation using Machine Learning

Similar to Regular Expression to Deterministic Finite Automata (20)

PDF
HIGH-LEVEL LANGUAGE EXTENSIONS FOR FAST EXECUTION OF PIPELINE-PARALLELIZED CO...
PDF
DFA Minimization using Hopcroft’s Theorem
PDF
A study on the techniques for speech to speech translation
PDF
Named Entity Recognition (NER) Using Automatic Summarization of Resumes
PDF
A NEURAL MACHINE LANGUAGE TRANSLATION SYSTEM FROM GERMAN TO ENGLISH
PDF
MULTILINGUAL SPEECH TO TEXT CONVERSION USING HUGGING FACE FOR DEAF PEOPLE
PDF
IRJET- On-Screen Translator using NLP and Text Detection
PDF
IRJET- Lost: The Horror Game
PPT
Component Based Testing Using Finite Automata
PDF
ANALYZING ARCHITECTURES FOR NEURAL MACHINE TRANSLATION USING LOW COMPUTATIONA...
PDF
ANALYZING ARCHITECTURES FOR NEURAL MACHINE TRANSLATION USING LOW COMPUTATIO...
PDF
ANALYZING ARCHITECTURES FOR NEURAL MACHINE TRANSLATION USING LOW COMPUTATIONA...
PDF
Automatic Text Classification Of News Blog using Machine Learning
PDF
A Review On Chatbot Design And Implementation Techniques
PDF
IRJET - A Review on Chatbot Design and Implementation Techniques
PDF
Advancements in Hindi-English Neural Machine Translation: Leveraging LSTM wit...
PDF
PDF
IRJET - Speech to Speech Translation using Encoder Decoder Architecture
PDF
The utility based AHP& TOPSIS methods for smooth handover in wireless networks
PDF
IRJET- A Novel Approch Automatically Categorizing Software Technologies
HIGH-LEVEL LANGUAGE EXTENSIONS FOR FAST EXECUTION OF PIPELINE-PARALLELIZED CO...
DFA Minimization using Hopcroft’s Theorem
A study on the techniques for speech to speech translation
Named Entity Recognition (NER) Using Automatic Summarization of Resumes
A NEURAL MACHINE LANGUAGE TRANSLATION SYSTEM FROM GERMAN TO ENGLISH
MULTILINGUAL SPEECH TO TEXT CONVERSION USING HUGGING FACE FOR DEAF PEOPLE
IRJET- On-Screen Translator using NLP and Text Detection
IRJET- Lost: The Horror Game
Component Based Testing Using Finite Automata
ANALYZING ARCHITECTURES FOR NEURAL MACHINE TRANSLATION USING LOW COMPUTATIONA...
ANALYZING ARCHITECTURES FOR NEURAL MACHINE TRANSLATION USING LOW COMPUTATIO...
ANALYZING ARCHITECTURES FOR NEURAL MACHINE TRANSLATION USING LOW COMPUTATIONA...
Automatic Text Classification Of News Blog using Machine Learning
A Review On Chatbot Design And Implementation Techniques
IRJET - A Review on Chatbot Design and Implementation Techniques
Advancements in Hindi-English Neural Machine Translation: Leveraging LSTM wit...
IRJET - Speech to Speech Translation using Encoder Decoder Architecture
The utility based AHP& TOPSIS methods for smooth handover in wireless networks
IRJET- A Novel Approch Automatically Categorizing Software Technologies
Ad

More from IRJET Journal (20)

PDF
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
PDF
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
PDF
Kiona – A Smart Society Automation Project
PDF
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
PDF
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
PDF
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
PDF
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
PDF
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
PDF
BRAIN TUMOUR DETECTION AND CLASSIFICATION
PDF
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
PDF
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
PDF
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
PDF
Breast Cancer Detection using Computer Vision
PDF
Auto-Charging E-Vehicle with its battery Management.
PDF
Analysis of high energy charge particle in the Heliosphere
PDF
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
PDF
Auto-Charging E-Vehicle with its battery Management.
PDF
Analysis of high energy charge particle in the Heliosphere
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
Kiona – A Smart Society Automation Project
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
BRAIN TUMOUR DETECTION AND CLASSIFICATION
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
Breast Cancer Detection using Computer Vision
Auto-Charging E-Vehicle with its battery Management.
Analysis of high energy charge particle in the Heliosphere
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
Auto-Charging E-Vehicle with its battery Management.
Analysis of high energy charge particle in the Heliosphere
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
Ad

Recently uploaded (20)

PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PDF
PPT on Performance Review to get promotions
PPTX
OOP with Java - Java Introduction (Basics)
PPT
Mechanical Engineering MATERIALS Selection
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PDF
Digital Logic Computer Design lecture notes
PPTX
Lecture Notes Electrical Wiring System Components
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPTX
UNIT 4 Total Quality Management .pptx
PDF
Well-logging-methods_new................
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Embodied AI: Ushering in the Next Era of Intelligent Systems
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
Operating System & Kernel Study Guide-1 - converted.pdf
PPT on Performance Review to get promotions
OOP with Java - Java Introduction (Basics)
Mechanical Engineering MATERIALS Selection
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Digital Logic Computer Design lecture notes
Lecture Notes Electrical Wiring System Components
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
bas. eng. economics group 4 presentation 1.pptx
UNIT 4 Total Quality Management .pptx
Well-logging-methods_new................
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS

Regular Expression to Deterministic Finite Automata

  • 1. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 10 Issue: 01 | Jan 2023 www.irjet.net p-ISSN: 2395-0072 © 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 448 Regular Expression to Deterministic Finite Automata Shravani Bahirat1 , Vaishnavi Dalvi2, Sakshi Darawade3,Shravani Jagtap4, Sakshi Shakhawar5 1,2,3,4,5Student Dept. of Artificial Intelligence & Data Science , Vishwakarma Institue of Technology, Maharashtra, India ---------------------------------------------------------------------***--------------------------------------------------------------------- Abstract - Regular expression is a sequence of characters(strings) which is also called as language that is accepted by a finite automata. Regular Expression consists of characters which are useful for defining filter. Practical applications of regular expressions are it is used in pattern matching for text editors, compiler design, etc. Expression in regular expression corresponds to a language and are well defined. Deterministic finite automata or the (DFA) are finite set of states and transitions that decideswhetherto acceptsor rejects set of characters mainly called as strings or languages. Applications of DFA are it is included in protocol analysis, text parsing vending machine, video game character behaving, security analysis, NLP, speech recognition, elevators etc. DFA represents any system’s which require an internal definition state. DFA represents a maching that accepts the specific RE. In DFA, after a particular input is provided to first state, it will pass on to one state only. To conver regular expression to DFA methods like transitive closure, state elimination and brzozowski algebraic method using arden’s theorem are introduced. DFA is represented by digraphs called state diagram Key Words - Theory of Computation, Deterministic Finite Automata, String passing 1. INTRODUCTION Regular expression is a shortened way of representing a language, which is a condition or filter to be accepted by Deterministic finite Automata. In order to speed up the process of converting regular expressions to finite state machines and vice versa,variousoptionsshouldbeexplored. Thus, we have tried to facilitate the assignmentofRe-to-DFA conversion by enabling a step-by-stepconversionfromREto DFA. In this review, various approaches to converting deterministic finite automata into regular expressions are briefly compared. The most common and least burdensome to the environment is the earth elimination method. Our interactions with generation are simple: In most cases, the scanners produced are the right size. The larger RE length allows a smaller scanner to be specified, which is useful for symbolic operations such as inductive statistics types and pattern machines. 2. LITERATURE REVIEW [1]The editorial “Visual Designing and Debugging of Deterministic FiniteState Machines” in FSM This article shows how the DFA visualisation tool was created to createa trustworthy DFA. The user can also create the state transitions while the execution is taking place using the visualisation tool. Users can edit the states oftheirfinitestate machines (FSMs), which can then be rendered as executable code. Additionally, it states that the state-based machine visualisation component of the software is exclusive to code generation. It suggested a method to visualise machine verificationanddebuggingforformalmachinesinaccordance with design. [2] A Review Paper on String Identification Using Finite Automata It demonstrates how the finite automata model keeps track of the user-supplied input strings for transition stages. It determineswhethertheuser-providedinputstrings contain letters, numbers, or valid symbols. Computation is the process of receiving information and carrying out operations in accordance with a set ofrules.Thissystemuses lexical analysis technologies to reduce errors and increase performance levels for completing activities. [3] On Implementing Deterministic Finite Automata in Parallel A systemknownasthedeterministicfiniteautomatis utilised to solve numerous procedures and jobs in thefieldof computer technology. DFA is compatible with two different parallel computer architectures. This work presents the computer-based parallel simulation of the general DFA, which employs automata. [4] On Implementing Deterministic Finite Automata in Parallel A systemknownasthedeterministicfiniteautomatis utilised to solve numerous procedures and jobs in thefieldof computer technology. DFA is compatible with two different parallel computer architectures. This work presents the computer-based parallel simulation of the general DFA, which employs automata. [5] . Ho Ngoc Vinh and Nguyen Thi Thu Ha together compiled a paper in which they have depicted the conversionofNFAto DFA using the concept of bounded words [6]In this paper,concepts of bounded words on an alphabet A,languages and monoid morphism are introduced. [7] A work in CSESpring18 that uses the Gallier's technique for NFA to DFA conversion was coauthored by Ghafoor[3]. It makes use of the different C++ data structures, including vectors, parser classes, etc. The DFA tuple, which is actually represented as strings, is the output that is ultimately produced.
  • 2. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 10 Issue: 01 | Jan 2023 www.irjet.net p-ISSN: 2395-0072 © 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 449 [8]To test the system Dynamic system through automata learning it presented a dynamic testing method.. It generate and analyze the pages generated by the application to execute test by creating a web application. It also presents a case study that establishes dynamic testing procedure work. [9]This paper introduced model od Finite state automata to monitor whether the words are included in the text are sensitive or not in paper names as “Application research of Finite Automata in Distance Education”. The method described the existence of large numbers of keywords in the text string which is well suited for the application and this method is further used to improve the system efficiency. For ignoring mistakes in strings or in word error recognitions exist in this method which is used to reduce the error rate and improve the performance of the system. [2] addressed challenges to compile large set of patterns it may be in different data structure. It helps runtime to match input string to appropriate patterns effectively. Some time input string matches more than one pattern. This is main challenge in efficient classification of strings. To tackle with above problem sequential approach can be used but main problem with this approach is it will take more time as pattern increases. This paperalso suggested the refinements so that decision tree compilation algorithm will be time effective. Sailesh Kumar et al. 3. METHODOLOGY For every language there is atleast one regular expression and multiple DFA’s that represent the language. The algorithm below shows conversion of Regular Expression to Deterministic Finite Automata(DFA). It initially converts RE to NFA that is non deterministic finite automata and then to equivalent DFA. In this process of conversion every possible case is considered • NFA for two-state transition which signifies a language makes a empty string • NFA comprised for α transition to represent literal characters. • Union of two languages forms from the NFA used to represent languages.By α transition initial state is linked to the R nd S, and the final state is connected to the Final states of R and S by ε-transitions.  a | b  Concatenation of two lnguages results into the NFA of language, which have the linking of transition final state R to initial state S.  ab  An NFA with Kleen star language is the ε- conversion from its initial state to the initial stateof R, a ε-transition from its final state to the accepting state of R, and ε-transitions between its initial and accepting states.  a*  Here each can be a valid DFA so it can be endangered towards the NFA to DFA algorithm. Equivalent DFA for the previously developed NFA shown below. ε
  • 3. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 10 Issue: 01 | Jan 2023 www.irjet.net p-ISSN: 2395-0072 © 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 450  a  b  a|b  ab  a* 3.3 Algorithm • Step 1 – Convert RE to NFA using standard methods such as Thompsons algorithm. • Step 2 – Now convertNFAtoDFAusingstandardalgorithms that is a subset construction in which every one state have one subset of states of the NFA 3.4 Flowchart 4. RESULTS AND DISCUSSIONS Various techniques such as transitive closure, Brzozowski algebra, and state elimination have been inventedtoconvert deterministic finite automata to regular expressions. However, these techniques are efficient work givingminimal regular expressions. Our main motive is to find the minimal RE corresponding to a given DFA. The most commonly used and efficient approach to convert DFA to RE is state removal approach. This article explores and equates different techniques used to transform regular expressions into deterministic finite automata. 4.1 Results Fig.1 Input screen for conversion
  • 4. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 10 Issue: 01 | Jan 2023 www.irjet.net p-ISSN: 2395-0072 © 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 451 In the given snapshot, there is the input screen where we accept the Regular expression from the user to convert it into the Deterministic Finite Aotomata (DFA) 4.2 LIMITATIONS  Limited algorithms are implemented.  RE gives the NFA Table states but not the proper NFA diagram. 4.3 CONCLUSION This study gives readers an understanding of the many methods used to translate Regular Expressions into deterministic finite automata. There are comparisons made between several methods for converting RE to DFA. Research in this project shows that the procedure for converting regular expressionstoDFAsandviceversa iswell understood and easy to implement. Codingtheparserfor the regular expression took the most time in the project. Due to the fact that regular expressions create regular languages but are not themselves regular, they require context-free grammars to be defined. 4.4 FUTURE SCOPE  In future we can upgrade this project by making it more user friendly and adding graphics interface.  As this project gives output after compiling the whole result,In the future,we can calculate the output of NFA also.  we can add DFA to RE 7. REFERENCES [1] A Review Paper On Finite Automata Application in String Identification (PDF) EasyChair Preprint A Review Paper on Finite Automata Application in String Identification A Review Paper On Finite Automata Application in String Identification (researchgate.net) [2] On Parallel Implementations of Deterministic Finite Automata On Parallel Implementations of Deterministic Finite Automata | SpringerLink [3] Kuldeep Vayadande, Aditya Bodhankar, Ajinkya Mahajan, Diksha Prasad,ShivaniMahajan,Aishwarya Pujari and Riya Dhakalkar, “Classification of Depression on social media using Distant Supervision”, ITM Web Conf. Volume 50, 2022. [4] Kuldeep Vayadande, Rahebar Shaikh, Suraj Rothe, Sangam Patil, Tanuj Barware and Sameer Naik,” Blockchain-Based Land Record System”, ITM Web Conf. Volume 50, 2022. [5] Kuldeep Vayadande, Kirti Agarwal,AadeshKabra,Ketan Gangwal andAtharvKinage,” CryptographyusingAutomata Theory”, ITM Web Conf. Volume 50, 2022 [6] Samruddhi Mumbare, Kunal Shivam, Priyanka Lokhande, Samruddhi Zaware, Varad Deshpande and Kuldeep Vayadande,” Software Controller using Hand Gestures”, ITM Web Conf. Volume 50, 2022. [7] Preetham, H.D.,and KuldeepBabanVayadande."Online Crime Reporting System Using Python Django." [8] Vayadande, Kuldeep B., et al. "Simulation and Testingof Deterministic Finite Automata Machine." International Journal of Computer Sciences andEngineering10.1(2022): 13-17. [9] Vayadande, Kuldeep, et al. "Modulo Calculator Using Tkinter Library." EasyChair Preprint 7578 (2022). [10] VAYADANDE, KULDEEP. "Simulating Derivations of Context-Free Grammar." (2022). [11] Vayadande, Kuldeep, Ram Mandhana, Kaustubh Paralkar, Dhananjay Pawal, Siddhant Deshpande, and Vishal Sonkusale. "Pattern Matching in File System." International Journal of Computer Applications 975: 8887. [12] Vayadande, Kuldeep, Ritesh Pokarne, Mahalakshmi Phaldesai, Tanushri Bhuruk, Tanmay Patil, and Prachi Kumar. "Simulation Of Conway’s Game Of Life Using Cellular Automata." SIMULATION 9, no. 01 (2022). [13] Gurav, Rohit, Sakshi Suryawanshi, Parth Narkhede, Sankalp Patil, Sejal Hukare, and Kuldeep Vayadande. "Universal Turing machine simulator." International Journal of Advance Research, Ideas and Innovations in Technology, ISSN (2022). [14] Vayadande, Kuldeep B., Parth Sheth, Arvind Shelke, Vaishnavi Patil, Srushti Shevate, and Chinmayee Sawakare. "Simulation and Testing of Deterministic Finite Automata 21 Machine." International Journal of Computer Sciences and Engineering 10, no. 1 (2022): 13-17. [15] Vayadande, Kuldeep, Ram Mandhana, Kaustubh Paralkar, Dhananjay Pawal, Siddhant Deshpande, and Vishal Sonkusale. "Pattern Matching in File System." International Journal of Computer Applications 975: 8887. [16] Vayadande, Kuldeep B., and Surendra Yadav. "A Review paper on Detection of Moving Object in Dynamic Background." International Journal of Computer Sciences and Engineering 6, no. 9 (2018): 877-880.
  • 5. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 10 Issue: 01 | Jan 2023 www.irjet.net p-ISSN: 2395-0072 © 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 452 [17] Vayadande, Kuldeep, Neha Bhavar, Sayee Chauhan, Sushrut Kulkarni, Abhijit Thorat, and Yash Annapure. Spell Checker Model for String Comparison in Automata. No. 7375. EasyChair, 2022. [18] Vayadande, Kuldeep, Harshwardhan More, Omkar More, Shubham Mulay, Atharva Pathak, and Vishwam Talnikar. "Pac Man: Game Development using PDA and OOP." (2022). [19] Preetham, H. D., and Kuldeep Baban Vayadande. "Online Crime Reporting System Using Python Django." [20] Vayadande, Kuldeep. "Harshwardhan More, Omkar More, Shubham Mulay, Atahrv Pathak, Vishwam Talanikar,“Pac Man: Game Development using PDA and OOP”." International Research Journal of Engineering and Technology (IRJET), eISSN (2022): 2395-0056. [21] Ingale, Varad, Kuldeep Vayadande, Vivek Verma, Abhishek Yeole, Sahil Zawar, and Zoya Jamadar. "Lexical analyzer using DFA." International Journal of Advance Research, Ideas and Innovations in Technology, www. IJARIIT. com. [22] Manjramkar, Devang, Adwait Gharpure, Aayush Gore, Ishan Gujarathi, and Dhananjay Deore. "A Review Paper on Document text search based on nondeterministic automata." (2022). [23] Chandra, Arunav, Aashay Bongulwar, Aayush Jadhav, Rishikesh Ahire, Amogh Dumbre, Sumaan Ali, Anveshika Kamble, Rohit Arole, Bijin Jiby, and Sukhpreet Bhatti. Survey on Randomly Generating English Sentences. No. 7655. EasyChair, 2022 [24] F. Le Fessant and L. Maranget, “Optimizing pattern matching,” ACM SIGPLAN Not., vol. 36, no. 10, pp. 26–37, Oct. 2001, Doi: 10.1145/507669.507641. [25] R. M. Karp and M. O. Rabin, “EFFICIENT RANDOMIZED PATTERN-MATCHING ALGORITHMS.,” IBM J.Res.Dev.,vol. 31, no. 2, pp. 249–260, 1987, Doi: 10.1147/RD.312.0249.