SlideShare a Scribd company logo
1)CLOSURE PROPERTIES OF
REGULAR LANGUAGE
CLOSURE PROPERTIES OF REGULAR
LANGUAGE
closure properties on regular languages are
defined as certain operations on regular language
which are guaranteed to produce regular language.
Closure refers to some operation on a language,
resulting in a new language that is of same “type” as
originally operated on i.e., regular.
DECISION PROPERTIES
Approximately all the properties are decidable in case of finite
automaton
.
(i)Emptiness
(ii) Non-emptiness
(iii) Finiteness
(iv) Infiniteness
(v) Membership
(vi) Equality
EMPTINESS AND NON-EMPTINESS:
•Step-1: select the state that cannot be reached from the initial states
& delete them (remove unreachable states).
•Step 2: if the resulting machine contains at least one final states, so
then the finite automata accepts the non-empty language.
•Step 3: if the resulting machine is free from final state, then finite
automata accepts empty languag
FINITENESS AND INFINITENESS:
•Step-1: select the state that cannot be reached from the initial state & delete them
(remove unreachable states).
•Step-2: select the state from which we cannot reach the final state & delete them
(remove dead states).
•Step-3: if the resulting machine contains loops or cycles then the finite automata
accepts infinite language.
•Step-4: if the resulting machine do not contain loops or cycles then the finite
automata accepts infinite language.
MEMBERSHIP:
Membership is a property to verify an arbitrary string is accepted by a
finite automaton or not i.e. it is a member of the language or not.
Let M is a finite automata that accepts some strings over an alphabet,
and let ‘w’ be any string defined over the alphabet, if there exist a
transition path in M, which starts at initial state & ends in anyone of the
final state, then string ‘w’ is a member of M, otherwise ‘w’ is not a
member of M.
EQUALITY:
Two finite state automata M1 & M2 is said to be
equal if and only if, they accept the same language.
Minimise the finite state automata and the minimal
DFA will be unique.
2)PUSHDOWN AUTOMATA
IT CAN BE DEFINED AS:
•Q is the set of states
•∑is the set of input symbols
•Γ is the set of pushdown symbols (which can be pushed and popped from
stack)
•q0 is the initial state
•Z is the initial pushdown symbol (which is initially present in stack)
•F is the set of final states
•δ is a transition function which maps Q x {Σ ∪ ∈} x Γ into Q x Γ*. In a given
state, PDA will read input symbol and stack symbol (top of the stack) and
move to a new state and change the symbol of stack.
INSTANTNEOUS DESCRIPTION(ID)
Instantaneous Description (ID) is an informal notation of
how a PDA “computes” a input string and make a decision
that string is accepted or rejected.
A ID is a triple (q, w, α), where:
1. q is the current state.
2. w is the remaining input.
3.α is the stack contents, top at the left.
TURNSTILE NOTATION:
⊢ sign is called a “turnstile notation” and represents
one move.
⊢* sign represents a sequence of moves.
Eg- (p, b, T) ⊢ (q, w, α)
This implies that while taking a transition from state p to state
q, the input symbol ‘b’ is consumed, and the top of the stack
‘T’ is replaced by a new string ‘α’
Explanation : Initially, the state of automata is q0 and
symbol on stack is Z and the input is aaabbb as shown in
row 1. On reading ‘a’ (shown in bold in row 2), the state will
remain q0 and it will push symbol A on stack. On next ‘a’
(shown in row 3), it will push another symbol A on stack.
After reading 3 a’s, the stack will be AAAZ with A on the top.
After reading ‘b’ (as shown in row 5), it will pop A and move
to state q1 and stack will be AAZ. When all b’s are read, the
state will be q1 and stack will be Z. In row 8, on input
symbol ‘∈’ and Z on stack, it will pop Z and stack will be
empty. This type of acceptance is known as acceptance by
empty stack.
NOTE:
•The above pushdown automaton is deterministic in nature because there is only one
move from a state on an input symbol and stack symbol.
•The non-deterministic pushdown automata can have more than one move from a
state on an input symbol and stack symbol.
•It is not always possible to convert non-deterministic pushdown automata to
deterministic pushdown automata.
•Expressive Power of non-deterministic PDA is more as compared to expressive
deterministic PDA as some languages which are accepted by NPDA but not by
deterministic PDA which will be discussed in next article.
•The push down automata can either be implemented using accepetance by empty
stack or accepetance by final state and one can be converted to another.
3)PARSE TREES
PARSE TREE:
•Parse tree is the hierarchical representation of
terminals or non-terminals.
•These symbols (terminals or non-terminals) represent
the derivation of the grammar to yield input strings.
•In parsing, the string springs using the beginning
symbol.
•The starting symbol of the grammar must be used as
the root of the Parse Tree.
•Leaves of parse tree represent terminals.
•Each interior node represents productions of grammar
RULES TO DRAW PARSE TREE:
1.All leaf nodes need to be terminals.
2.All interior nodes need to be non-terminals.
3.In-order traversal gives original input string..
USES OF PARSE TREE:
•It helps in making syntax analysis by reflecting the syntax of
the input language.
•It uses an in-memory representation of the input with a
structure that conforms to the grammar.
•The advantages of using parse trees rather than semantic
actions: you’ll make multiple passes over the info without
having to re-parse the input
THE END………

More Related Content

What's hot

Regular Languages
Regular LanguagesRegular Languages
Regular Languages
parmeet834
 
Introduction TO Finite Automata
Introduction TO Finite AutomataIntroduction TO Finite Automata
Introduction TO Finite Automata
Ratnakar Mikkili
 
Turing machine by_deep
Turing machine by_deepTuring machine by_deep
Turing machine by_deep
Deepjyoti Kalita
 
push down automata
push down automatapush down automata
push down automata
Christopher Chizoba
 
Pushdown Automata Theory
Pushdown Automata TheoryPushdown Automata Theory
Pushdown Automata Theory
Saifur Rahman
 
Closure properties
Closure propertiesClosure properties
Closure properties
Dr. ABHISHEK K PANDEY
 
Regular Grammar
Regular GrammarRegular Grammar
Regular Grammar
Ruchika Sinha
 
Regular expressions
Regular expressionsRegular expressions
Regular expressions
Ratnakar Mikkili
 
file pointers & manipulators.pptx
file pointers & manipulators.pptxfile pointers & manipulators.pptx
file pointers & manipulators.pptx
MEGULRAJS
 
Closure properties of context free grammar
Closure properties of context free grammarClosure properties of context free grammar
Closure properties of context free grammar
AfshanKhan51
 
Minimization of DFA
Minimization of DFAMinimization of DFA
Minimization of DFA
kunj desai
 
Formal Languages and Automata Theory Unit 1
Formal Languages and Automata Theory Unit 1Formal Languages and Automata Theory Unit 1
Formal Languages and Automata Theory Unit 1
Srimatre K
 
Mealy and moore machine
Mealy and moore machineMealy and moore machine
Mealy and moore machine
Ehatsham Riaz
 
A simple approach of lexical analyzers
A simple approach of lexical analyzersA simple approach of lexical analyzers
A simple approach of lexical analyzers
Archana Gopinath
 
Push down automata
Push down automataPush down automata
Push down automata
Somya Bagai
 
PDA (pushdown automaton)
PDA (pushdown automaton)PDA (pushdown automaton)
PDA (pushdown automaton)
Захір Райхан
 
Theory of computation Lec3 dfa
Theory of computation Lec3 dfaTheory of computation Lec3 dfa
Theory of computation Lec3 dfa
Arab Open University and Cairo University
 
Theory of automata and formal language
Theory of automata and formal languageTheory of automata and formal language
Theory of automata and formal language
Rabia Khalid
 
NFA and DFA
NFA and DFANFA and DFA
NFA and DFA
Rup Chowdhury
 
Class and Objects in Java
Class and Objects in JavaClass and Objects in Java
Class and Objects in Java
Spotle.ai
 

What's hot (20)

Regular Languages
Regular LanguagesRegular Languages
Regular Languages
 
Introduction TO Finite Automata
Introduction TO Finite AutomataIntroduction TO Finite Automata
Introduction TO Finite Automata
 
Turing machine by_deep
Turing machine by_deepTuring machine by_deep
Turing machine by_deep
 
push down automata
push down automatapush down automata
push down automata
 
Pushdown Automata Theory
Pushdown Automata TheoryPushdown Automata Theory
Pushdown Automata Theory
 
Closure properties
Closure propertiesClosure properties
Closure properties
 
Regular Grammar
Regular GrammarRegular Grammar
Regular Grammar
 
Regular expressions
Regular expressionsRegular expressions
Regular expressions
 
file pointers & manipulators.pptx
file pointers & manipulators.pptxfile pointers & manipulators.pptx
file pointers & manipulators.pptx
 
Closure properties of context free grammar
Closure properties of context free grammarClosure properties of context free grammar
Closure properties of context free grammar
 
Minimization of DFA
Minimization of DFAMinimization of DFA
Minimization of DFA
 
Formal Languages and Automata Theory Unit 1
Formal Languages and Automata Theory Unit 1Formal Languages and Automata Theory Unit 1
Formal Languages and Automata Theory Unit 1
 
Mealy and moore machine
Mealy and moore machineMealy and moore machine
Mealy and moore machine
 
A simple approach of lexical analyzers
A simple approach of lexical analyzersA simple approach of lexical analyzers
A simple approach of lexical analyzers
 
Push down automata
Push down automataPush down automata
Push down automata
 
PDA (pushdown automaton)
PDA (pushdown automaton)PDA (pushdown automaton)
PDA (pushdown automaton)
 
Theory of computation Lec3 dfa
Theory of computation Lec3 dfaTheory of computation Lec3 dfa
Theory of computation Lec3 dfa
 
Theory of automata and formal language
Theory of automata and formal languageTheory of automata and formal language
Theory of automata and formal language
 
NFA and DFA
NFA and DFANFA and DFA
NFA and DFA
 
Class and Objects in Java
Class and Objects in JavaClass and Objects in Java
Class and Objects in Java
 

Similar to closure properties of regular language.pptx

Theory of computation and automata
Theory of computation and automataTheory of computation and automata
Theory of computation and automata
Prof. Dr. K. Adisesha
 
Theory of computation and automata
Theory of computation and automataTheory of computation and automata
Theory of computation and automata
Prof. Dr. K. Adisesha
 
Finite Automata
Finite AutomataFinite Automata
Finite Automata
A. S. M. Shafi
 
deterministicfiniteautomatondfa-181008145215 (1).pdf
deterministicfiniteautomatondfa-181008145215 (1).pdfdeterministicfiniteautomatondfa-181008145215 (1).pdf
deterministicfiniteautomatondfa-181008145215 (1).pdf
AmayJaiswal4
 
Unit iv
Unit ivUnit iv
Unit iv
TPLatchoumi
 
TOC Introduction
TOC Introduction TOC Introduction
TOC Introduction
Thapar Institute
 
1. finite_automata_new.ppt
1. finite_automata_new.ppt1. finite_automata_new.ppt
1. finite_automata_new.ppt
SanthoshS508159
 
FiniteAutomata_anim.pptx
FiniteAutomata_anim.pptxFiniteAutomata_anim.pptx
FiniteAutomata_anim.pptx
Meghnadh
 
flat unit1
flat unit1flat unit1
flat unit1
Janhavi Vishwanath
 
03-FiniteAutomata.pptx
03-FiniteAutomata.pptx03-FiniteAutomata.pptx
03-FiniteAutomata.pptx
ssuser47f7f2
 
introduction-190804060837.pptx
introduction-190804060837.pptxintroduction-190804060837.pptx
introduction-190804060837.pptx
shumPanwar
 
Finite state Transducers and mealy Machine
Finite state Transducers and mealy Machine Finite state Transducers and mealy Machine
Finite state Transducers and mealy Machine
Nadeem Qasmi
 
Mba ebooks ! Edhole
Mba ebooks ! EdholeMba ebooks ! Edhole
Mba ebooks ! Edhole
Edhole.com
 
Free Ebooks Download ! Edhole
Free Ebooks Download ! EdholeFree Ebooks Download ! Edhole
Free Ebooks Download ! Edhole
Edhole.com
 
Formal language and automata theoryLAT Class notes.pptx
Formal language and automata theoryLAT Class notes.pptxFormal language and automata theoryLAT Class notes.pptx
Formal language and automata theoryLAT Class notes.pptx
SrinivasRedyySarviga
 
@vtucode.in-module-1-21CS51-5th-semester (1).pdf
@vtucode.in-module-1-21CS51-5th-semester (1).pdf@vtucode.in-module-1-21CS51-5th-semester (1).pdf
@vtucode.in-module-1-21CS51-5th-semester (1).pdf
FariyaTasneem1
 
CD Unit I Part III Finite Automata-4.pdf
CD Unit I Part III Finite Automata-4.pdfCD Unit I Part III Finite Automata-4.pdf
CD Unit I Part III Finite Automata-4.pdf
venkatathanush810
 
Free Ebooks Download ! Edhole
Free Ebooks Download ! EdholeFree Ebooks Download ! Edhole
Free Ebooks Download ! Edhole
Edhole.com
 
NLP_KASHK:Finite-State Automata
NLP_KASHK:Finite-State AutomataNLP_KASHK:Finite-State Automata
NLP_KASHK:Finite-State Automata
Hemantha Kulathilake
 
String Matching with Finite Automata,Aho corasick,
String Matching with Finite Automata,Aho corasick,String Matching with Finite Automata,Aho corasick,
String Matching with Finite Automata,Aho corasick,
8neutron8
 

Similar to closure properties of regular language.pptx (20)

Theory of computation and automata
Theory of computation and automataTheory of computation and automata
Theory of computation and automata
 
Theory of computation and automata
Theory of computation and automataTheory of computation and automata
Theory of computation and automata
 
Finite Automata
Finite AutomataFinite Automata
Finite Automata
 
deterministicfiniteautomatondfa-181008145215 (1).pdf
deterministicfiniteautomatondfa-181008145215 (1).pdfdeterministicfiniteautomatondfa-181008145215 (1).pdf
deterministicfiniteautomatondfa-181008145215 (1).pdf
 
Unit iv
Unit ivUnit iv
Unit iv
 
TOC Introduction
TOC Introduction TOC Introduction
TOC Introduction
 
1. finite_automata_new.ppt
1. finite_automata_new.ppt1. finite_automata_new.ppt
1. finite_automata_new.ppt
 
FiniteAutomata_anim.pptx
FiniteAutomata_anim.pptxFiniteAutomata_anim.pptx
FiniteAutomata_anim.pptx
 
flat unit1
flat unit1flat unit1
flat unit1
 
03-FiniteAutomata.pptx
03-FiniteAutomata.pptx03-FiniteAutomata.pptx
03-FiniteAutomata.pptx
 
introduction-190804060837.pptx
introduction-190804060837.pptxintroduction-190804060837.pptx
introduction-190804060837.pptx
 
Finite state Transducers and mealy Machine
Finite state Transducers and mealy Machine Finite state Transducers and mealy Machine
Finite state Transducers and mealy Machine
 
Mba ebooks ! Edhole
Mba ebooks ! EdholeMba ebooks ! Edhole
Mba ebooks ! Edhole
 
Free Ebooks Download ! Edhole
Free Ebooks Download ! EdholeFree Ebooks Download ! Edhole
Free Ebooks Download ! Edhole
 
Formal language and automata theoryLAT Class notes.pptx
Formal language and automata theoryLAT Class notes.pptxFormal language and automata theoryLAT Class notes.pptx
Formal language and automata theoryLAT Class notes.pptx
 
@vtucode.in-module-1-21CS51-5th-semester (1).pdf
@vtucode.in-module-1-21CS51-5th-semester (1).pdf@vtucode.in-module-1-21CS51-5th-semester (1).pdf
@vtucode.in-module-1-21CS51-5th-semester (1).pdf
 
CD Unit I Part III Finite Automata-4.pdf
CD Unit I Part III Finite Automata-4.pdfCD Unit I Part III Finite Automata-4.pdf
CD Unit I Part III Finite Automata-4.pdf
 
Free Ebooks Download ! Edhole
Free Ebooks Download ! EdholeFree Ebooks Download ! Edhole
Free Ebooks Download ! Edhole
 
NLP_KASHK:Finite-State Automata
NLP_KASHK:Finite-State AutomataNLP_KASHK:Finite-State Automata
NLP_KASHK:Finite-State Automata
 
String Matching with Finite Automata,Aho corasick,
String Matching with Finite Automata,Aho corasick,String Matching with Finite Automata,Aho corasick,
String Matching with Finite Automata,Aho corasick,
 

Recently uploaded

UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling ExtensionsUI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
Peter Muessig
 
INTRODUCTION TO AI CLASSICAL THEORY TARGETED EXAMPLES
INTRODUCTION TO AI CLASSICAL THEORY TARGETED EXAMPLESINTRODUCTION TO AI CLASSICAL THEORY TARGETED EXAMPLES
INTRODUCTION TO AI CLASSICAL THEORY TARGETED EXAMPLES
anfaltahir1010
 
GreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-JurisicGreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-Jurisic
Green Software Development
 
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
dakas1
 
What’s New in Odoo 17 – A Complete Roadmap
What’s New in Odoo 17 – A Complete RoadmapWhat’s New in Odoo 17 – A Complete Roadmap
What’s New in Odoo 17 – A Complete Roadmap
Envertis Software Solutions
 
Using Query Store in Azure PostgreSQL to Understand Query Performance
Using Query Store in Azure PostgreSQL to Understand Query PerformanceUsing Query Store in Azure PostgreSQL to Understand Query Performance
Using Query Store in Azure PostgreSQL to Understand Query Performance
Grant Fritchey
 
How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?
ToXSL Technologies
 
Quarter 3 SLRP grade 9.. gshajsbhhaheabh
Quarter 3 SLRP grade 9.. gshajsbhhaheabhQuarter 3 SLRP grade 9.. gshajsbhhaheabh
Quarter 3 SLRP grade 9.. gshajsbhhaheabh
aisafed42
 
All you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVMAll you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVM
Alina Yurenko
 
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CDKuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
rodomar2
 
Enums On Steroids - let's look at sealed classes !
Enums On Steroids - let's look at sealed classes !Enums On Steroids - let's look at sealed classes !
Enums On Steroids - let's look at sealed classes !
Marcin Chrost
 
14 th Edition of International conference on computer vision
14 th Edition of International conference on computer vision14 th Edition of International conference on computer vision
14 th Edition of International conference on computer vision
ShulagnaSarkar2
 
Mobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona InfotechMobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona Infotech
Drona Infotech
 
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdfTop Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
VALiNTRY360
 
Oracle Database 19c New Features for DBAs and Developers.pptx
Oracle Database 19c New Features for DBAs and Developers.pptxOracle Database 19c New Features for DBAs and Developers.pptx
Oracle Database 19c New Features for DBAs and Developers.pptx
Remote DBA Services
 
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian CompaniesE-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
Quickdice ERP
 
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
Bert Jan Schrijver
 
一比一原版(sdsu毕业证书)圣地亚哥州立大学毕业证如何办理
一比一原版(sdsu毕业证书)圣地亚哥州立大学毕业证如何办理一比一原版(sdsu毕业证书)圣地亚哥州立大学毕业证如何办理
一比一原版(sdsu毕业证书)圣地亚哥州立大学毕业证如何办理
kgyxske
 
Malibou Pitch Deck For Its €3M Seed Round
Malibou Pitch Deck For Its €3M Seed RoundMalibou Pitch Deck For Its €3M Seed Round
Malibou Pitch Deck For Its €3M Seed Round
sjcobrien
 
Baha Majid WCA4Z IBM Z Customer Council Boston June 2024.pdf
Baha Majid WCA4Z IBM Z Customer Council Boston June 2024.pdfBaha Majid WCA4Z IBM Z Customer Council Boston June 2024.pdf
Baha Majid WCA4Z IBM Z Customer Council Boston June 2024.pdf
Baha Majid
 

Recently uploaded (20)

UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling ExtensionsUI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
 
INTRODUCTION TO AI CLASSICAL THEORY TARGETED EXAMPLES
INTRODUCTION TO AI CLASSICAL THEORY TARGETED EXAMPLESINTRODUCTION TO AI CLASSICAL THEORY TARGETED EXAMPLES
INTRODUCTION TO AI CLASSICAL THEORY TARGETED EXAMPLES
 
GreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-JurisicGreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-Jurisic
 
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
 
What’s New in Odoo 17 – A Complete Roadmap
What’s New in Odoo 17 – A Complete RoadmapWhat’s New in Odoo 17 – A Complete Roadmap
What’s New in Odoo 17 – A Complete Roadmap
 
Using Query Store in Azure PostgreSQL to Understand Query Performance
Using Query Store in Azure PostgreSQL to Understand Query PerformanceUsing Query Store in Azure PostgreSQL to Understand Query Performance
Using Query Store in Azure PostgreSQL to Understand Query Performance
 
How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?
 
Quarter 3 SLRP grade 9.. gshajsbhhaheabh
Quarter 3 SLRP grade 9.. gshajsbhhaheabhQuarter 3 SLRP grade 9.. gshajsbhhaheabh
Quarter 3 SLRP grade 9.. gshajsbhhaheabh
 
All you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVMAll you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVM
 
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CDKuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
 
Enums On Steroids - let's look at sealed classes !
Enums On Steroids - let's look at sealed classes !Enums On Steroids - let's look at sealed classes !
Enums On Steroids - let's look at sealed classes !
 
14 th Edition of International conference on computer vision
14 th Edition of International conference on computer vision14 th Edition of International conference on computer vision
14 th Edition of International conference on computer vision
 
Mobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona InfotechMobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona Infotech
 
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdfTop Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
Top Benefits of Using Salesforce Healthcare CRM for Patient Management.pdf
 
Oracle Database 19c New Features for DBAs and Developers.pptx
Oracle Database 19c New Features for DBAs and Developers.pptxOracle Database 19c New Features for DBAs and Developers.pptx
Oracle Database 19c New Features for DBAs and Developers.pptx
 
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian CompaniesE-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
 
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
 
一比一原版(sdsu毕业证书)圣地亚哥州立大学毕业证如何办理
一比一原版(sdsu毕业证书)圣地亚哥州立大学毕业证如何办理一比一原版(sdsu毕业证书)圣地亚哥州立大学毕业证如何办理
一比一原版(sdsu毕业证书)圣地亚哥州立大学毕业证如何办理
 
Malibou Pitch Deck For Its €3M Seed Round
Malibou Pitch Deck For Its €3M Seed RoundMalibou Pitch Deck For Its €3M Seed Round
Malibou Pitch Deck For Its €3M Seed Round
 
Baha Majid WCA4Z IBM Z Customer Council Boston June 2024.pdf
Baha Majid WCA4Z IBM Z Customer Council Boston June 2024.pdfBaha Majid WCA4Z IBM Z Customer Council Boston June 2024.pdf
Baha Majid WCA4Z IBM Z Customer Council Boston June 2024.pdf
 

closure properties of regular language.pptx

  • 2. CLOSURE PROPERTIES OF REGULAR LANGUAGE closure properties on regular languages are defined as certain operations on regular language which are guaranteed to produce regular language. Closure refers to some operation on a language, resulting in a new language that is of same “type” as originally operated on i.e., regular.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7. DECISION PROPERTIES Approximately all the properties are decidable in case of finite automaton . (i)Emptiness (ii) Non-emptiness (iii) Finiteness (iv) Infiniteness (v) Membership (vi) Equality
  • 8. EMPTINESS AND NON-EMPTINESS: •Step-1: select the state that cannot be reached from the initial states & delete them (remove unreachable states). •Step 2: if the resulting machine contains at least one final states, so then the finite automata accepts the non-empty language. •Step 3: if the resulting machine is free from final state, then finite automata accepts empty languag
  • 9. FINITENESS AND INFINITENESS: •Step-1: select the state that cannot be reached from the initial state & delete them (remove unreachable states). •Step-2: select the state from which we cannot reach the final state & delete them (remove dead states). •Step-3: if the resulting machine contains loops or cycles then the finite automata accepts infinite language. •Step-4: if the resulting machine do not contain loops or cycles then the finite automata accepts infinite language.
  • 10. MEMBERSHIP: Membership is a property to verify an arbitrary string is accepted by a finite automaton or not i.e. it is a member of the language or not. Let M is a finite automata that accepts some strings over an alphabet, and let ‘w’ be any string defined over the alphabet, if there exist a transition path in M, which starts at initial state & ends in anyone of the final state, then string ‘w’ is a member of M, otherwise ‘w’ is not a member of M.
  • 11. EQUALITY: Two finite state automata M1 & M2 is said to be equal if and only if, they accept the same language. Minimise the finite state automata and the minimal DFA will be unique.
  • 13. IT CAN BE DEFINED AS: •Q is the set of states •∑is the set of input symbols •Γ is the set of pushdown symbols (which can be pushed and popped from stack) •q0 is the initial state •Z is the initial pushdown symbol (which is initially present in stack) •F is the set of final states •δ is a transition function which maps Q x {Σ ∪ ∈} x Γ into Q x Γ*. In a given state, PDA will read input symbol and stack symbol (top of the stack) and move to a new state and change the symbol of stack.
  • 14. INSTANTNEOUS DESCRIPTION(ID) Instantaneous Description (ID) is an informal notation of how a PDA “computes” a input string and make a decision that string is accepted or rejected. A ID is a triple (q, w, α), where: 1. q is the current state. 2. w is the remaining input. 3.α is the stack contents, top at the left.
  • 15. TURNSTILE NOTATION: ⊢ sign is called a “turnstile notation” and represents one move. ⊢* sign represents a sequence of moves. Eg- (p, b, T) ⊢ (q, w, α) This implies that while taking a transition from state p to state q, the input symbol ‘b’ is consumed, and the top of the stack ‘T’ is replaced by a new string ‘α’
  • 16.
  • 17.
  • 18. Explanation : Initially, the state of automata is q0 and symbol on stack is Z and the input is aaabbb as shown in row 1. On reading ‘a’ (shown in bold in row 2), the state will remain q0 and it will push symbol A on stack. On next ‘a’ (shown in row 3), it will push another symbol A on stack. After reading 3 a’s, the stack will be AAAZ with A on the top. After reading ‘b’ (as shown in row 5), it will pop A and move to state q1 and stack will be AAZ. When all b’s are read, the state will be q1 and stack will be Z. In row 8, on input symbol ‘∈’ and Z on stack, it will pop Z and stack will be empty. This type of acceptance is known as acceptance by empty stack.
  • 19. NOTE: •The above pushdown automaton is deterministic in nature because there is only one move from a state on an input symbol and stack symbol. •The non-deterministic pushdown automata can have more than one move from a state on an input symbol and stack symbol. •It is not always possible to convert non-deterministic pushdown automata to deterministic pushdown automata. •Expressive Power of non-deterministic PDA is more as compared to expressive deterministic PDA as some languages which are accepted by NPDA but not by deterministic PDA which will be discussed in next article. •The push down automata can either be implemented using accepetance by empty stack or accepetance by final state and one can be converted to another.
  • 21. PARSE TREE: •Parse tree is the hierarchical representation of terminals or non-terminals. •These symbols (terminals or non-terminals) represent the derivation of the grammar to yield input strings. •In parsing, the string springs using the beginning symbol. •The starting symbol of the grammar must be used as the root of the Parse Tree. •Leaves of parse tree represent terminals. •Each interior node represents productions of grammar
  • 22. RULES TO DRAW PARSE TREE: 1.All leaf nodes need to be terminals. 2.All interior nodes need to be non-terminals. 3.In-order traversal gives original input string..
  • 23.
  • 24.
  • 25.
  • 26. USES OF PARSE TREE: •It helps in making syntax analysis by reflecting the syntax of the input language. •It uses an in-memory representation of the input with a structure that conforms to the grammar. •The advantages of using parse trees rather than semantic actions: you’ll make multiple passes over the info without having to re-parse the input