SlideShare a Scribd company logo
1 of 9
THEORY OF
COMPUTATION
Tricks to remember Closure Properties of
Formal Languages
Operation Regular DCFL CFL CSL Recursi
ve
REL
Union ✔ ✘ ✔ ✔ ✔ ✔
Intersection ✔ ✘ ✘ ✔ ✔ ✔
Difference ✔ ✘ ✘ ✔ ✔ ✘
Complement ✔ ✔ ✘ ✔ ✔ ✘
Concatenation ✔ ✘ ✔ ✔ ✔ ✔
Kleene closure ✔ ✘ ✔ ✔ ✔ ✔
+ve closure ✔ ✘ ✔ ✔ ✔ ✔
Homomorphism ✔ ✘ ✔ ✘ ✘ ✔
I-
Homomorphism
✔ ✔ ✔ ✔ ✔ ✔
Closure Properties of Formal Languages
Operation Regular DCFL CFL CSL Recursi
ve
REL
Substitution ✔ ✘ ✔ ✔ ✘ ✔
Reverse ✔ ✘ ✔ ✔ ✔ ✔
L ⋃ regular ✔ ✔ ✔ ✔ ✔ ✔
L ⋂ regular ✔ ✔ ✔ ✔ ✔ ✔
L – regular ✔ ✔ ✔ ✔ ✔ ✔
Regular - R ✔ ✔ ✘ ✔ ✔ ✘
L / reg ✔ ✘ ✔ ✘ ✔ ✔
Reg* / R ✔ ✘ ✔ ✘ ✔ ✔
Subset ✘ ✘ ✘ ✘ ✘ ✘
Init ✔ ✔ ✔ ✔ ✔ ✔
Decidability & Undecidability of Formal Languages
Problem Regula
r
DCFL CFL Rec. REL
Is W in L? (membership
problem)
✔ ✔ ✔ ✔ ✘
Is L= ϕ ? (emptiness problem) ✔ ✔ ✔ ✘ ✘
Is L= finite? (finiteness problem) ✔ ✔ ✔ ✘ ✘
Is L1=L2 ? (equivalence
problem)
✔ ✔ ✘ ✘ ✘
Is L1⊆L2 ? (subset problem) ✔ ✘ ✘ ✘ ✘
Is ‘L’ regular? (regularity
problem)
✔ ✔ ✘ ✘ ✘
Is L ambiguous? (ambiguity
pro.)
✔ ✘ ✘ ✘ ✘
Is L=Σ* ? (universality problem) ✔ ✔ ✘ ✘ ✘
Is L1⋂L2 = ϕ ? (disjoint
problem)
✔ ✘ ✘ ✘ ✘
Related Questions
O Let L1 – regular language, L2 – CFL, L3 – recursive
language, L4 – recursive enumerable but not
recursive. Then which of the following is false.
a) 𝐿3 𝑐
⋃ 𝐿4 is REL
b) 𝐿2 ⋃ 𝐿3 is recursive language
c) L1*⋂ 𝐿2 is CFL
d) L1 ⋃ 𝐿2 is CFL
O L1- regular, L2- DCFL, L3- REL but not recursive.
Then which of the following is false?
a) L1⋂L2 is DCFL
b) L1⋂L2⋂L3 is REL
c) L1⋃L2 is CFL
d) L1⋂L3 recursive language
O L1- recursive language, L2- REL but not recursive.
Then which of the following is true?
a) 𝐿1 is recursive and 𝐿2 is REL
b) 𝐿1 is recursive and 𝐿2 is not REL
c) 𝐿1 and 𝐿2 are REL
d) 𝐿1 is REL and 𝐿2 is recursive
O which of the following is undecidable?
a) Is L(DFA)=L(NFA) ?
b) G is a CFG is W in G?
c) G is CFG is L(G)=Σ* ?
d) G is CFG is L(G)=ϕ ?
Theory of computation: short tricks to remember closure properties

More Related Content

What's hot

整数計画法に基づく説明可能性な機械学習へのアプローチ
整数計画法に基づく説明可能性な機械学習へのアプローチ整数計画法に基づく説明可能性な機械学習へのアプローチ
整数計画法に基づく説明可能性な機械学習へのアプローチ
Kentaro Kanamori
 
高速な物体候補領域提案手法 (Fast Object Proposal Methods)
高速な物体候補領域提案手法 (Fast Object Proposal Methods)高速な物体候補領域提案手法 (Fast Object Proposal Methods)
高速な物体候補領域提案手法 (Fast Object Proposal Methods)
Takao Yamanaka
 

What's hot (20)

Quantum Computation for Predicting Electron and Phonon Properties of Solids
Quantum Computation for Predicting Electron and Phonon Properties of SolidsQuantum Computation for Predicting Electron and Phonon Properties of Solids
Quantum Computation for Predicting Electron and Phonon Properties of Solids
 
線形計画法入門
線形計画法入門線形計画法入門
線形計画法入門
 
整数計画法に基づく説明可能性な機械学習へのアプローチ
整数計画法に基づく説明可能性な機械学習へのアプローチ整数計画法に基づく説明可能性な機械学習へのアプローチ
整数計画法に基づく説明可能性な機械学習へのアプローチ
 
DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-D...
DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-D...DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-D...
DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-D...
 
冗長変換とその画像復元応用
冗長変換とその画像復元応用冗長変換とその画像復元応用
冗長変換とその画像復元応用
 
Attention-Guided GANについて
Attention-Guided GANについてAttention-Guided GANについて
Attention-Guided GANについて
 
MATLAB/SIMULINK for Engineering Applications day 2:Introduction to simulink
MATLAB/SIMULINK for Engineering Applications day 2:Introduction to simulinkMATLAB/SIMULINK for Engineering Applications day 2:Introduction to simulink
MATLAB/SIMULINK for Engineering Applications day 2:Introduction to simulink
 
スパースモデリングによる多次元信号・画像復元
スパースモデリングによる多次元信号・画像復元スパースモデリングによる多次元信号・画像復元
スパースモデリングによる多次元信号・画像復元
 
高速な物体候補領域提案手法 (Fast Object Proposal Methods)
高速な物体候補領域提案手法 (Fast Object Proposal Methods)高速な物体候補領域提案手法 (Fast Object Proposal Methods)
高速な物体候補領域提案手法 (Fast Object Proposal Methods)
 
Introduction to MATLAB
Introduction to MATLABIntroduction to MATLAB
Introduction to MATLAB
 
システム制御とディープラーニング
システム制御とディープラーニングシステム制御とディープラーニング
システム制御とディープラーニング
 
大規模な組合せ最適化問題に対する発見的解法
大規模な組合せ最適化問題に対する発見的解法大規模な組合せ最適化問題に対する発見的解法
大規模な組合せ最適化問題に対する発見的解法
 
公平性を保証したAI/機械学習
アルゴリズムの最新理論
公平性を保証したAI/機械学習
アルゴリズムの最新理論公平性を保証したAI/機械学習
アルゴリズムの最新理論
公平性を保証したAI/機械学習
アルゴリズムの最新理論
 
(文献紹介) 画像復元:Plug-and-Play ADMM
(文献紹介) 画像復元:Plug-and-Play ADMM(文献紹介) 画像復元:Plug-and-Play ADMM
(文献紹介) 画像復元:Plug-and-Play ADMM
 
SIGNATE 国立国会図書館の画像データレイアウト認識 1st place solution
SIGNATE 国立国会図書館の画像データレイアウト認識 1st place solutionSIGNATE 国立国会図書館の画像データレイアウト認識 1st place solution
SIGNATE 国立国会図書館の画像データレイアウト認識 1st place solution
 
線形代数の視覚的理解のためのノート
線形代数の視覚的理解のためのノート線形代数の視覚的理解のためのノート
線形代数の視覚的理解のためのノート
 
【解説】 一般逆行列
【解説】 一般逆行列【解説】 一般逆行列
【解説】 一般逆行列
 
Autoencoder
AutoencoderAutoencoder
Autoencoder
 
Bert for multimodal
Bert for multimodalBert for multimodal
Bert for multimodal
 
RBM、Deep Learningと学習(全脳アーキテクチャ若手の会 第3回DL勉強会発表資料)
RBM、Deep Learningと学習(全脳アーキテクチャ若手の会 第3回DL勉強会発表資料)RBM、Deep Learningと学習(全脳アーキテクチャ若手の会 第3回DL勉強会発表資料)
RBM、Deep Learningと学習(全脳アーキテクチャ若手の会 第3回DL勉強会発表資料)
 

Recently uploaded

scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
HenryBriggs2
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
AldoGarca30
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
jaanualu31
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
Kamal Acharya
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 

Recently uploaded (20)

scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
 
Path loss model, OKUMURA Model, Hata Model
Path loss model, OKUMURA Model, Hata ModelPath loss model, OKUMURA Model, Hata Model
Path loss model, OKUMURA Model, Hata Model
 
Passive Air Cooling System and Solar Water Heater.ppt
Passive Air Cooling System and Solar Water Heater.pptPassive Air Cooling System and Solar Water Heater.ppt
Passive Air Cooling System and Solar Water Heater.ppt
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and properties
 
Databricks Generative AI Fundamentals .pdf
Databricks Generative AI Fundamentals  .pdfDatabricks Generative AI Fundamentals  .pdf
Databricks Generative AI Fundamentals .pdf
 
Introduction to Geographic Information Systems
Introduction to Geographic Information SystemsIntroduction to Geographic Information Systems
Introduction to Geographic Information Systems
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 
Max. shear stress theory-Maximum Shear Stress Theory ​ Maximum Distortional ...
Max. shear stress theory-Maximum Shear Stress Theory ​  Maximum Distortional ...Max. shear stress theory-Maximum Shear Stress Theory ​  Maximum Distortional ...
Max. shear stress theory-Maximum Shear Stress Theory ​ Maximum Distortional ...
 
Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
Worksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptxWorksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptx
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
Basic Electronics for diploma students as per technical education Kerala Syll...
Basic Electronics for diploma students as per technical education Kerala Syll...Basic Electronics for diploma students as per technical education Kerala Syll...
Basic Electronics for diploma students as per technical education Kerala Syll...
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Post office management system project ..pdf
Post office management system project ..pdfPost office management system project ..pdf
Post office management system project ..pdf
 
Compressing and Sparsifying LLM in GenAI Applications
Compressing and Sparsifying LLM in GenAI ApplicationsCompressing and Sparsifying LLM in GenAI Applications
Compressing and Sparsifying LLM in GenAI Applications
 

Theory of computation: short tricks to remember closure properties

  • 1. THEORY OF COMPUTATION Tricks to remember Closure Properties of Formal Languages
  • 2. Operation Regular DCFL CFL CSL Recursi ve REL Union ✔ ✘ ✔ ✔ ✔ ✔ Intersection ✔ ✘ ✘ ✔ ✔ ✔ Difference ✔ ✘ ✘ ✔ ✔ ✘ Complement ✔ ✔ ✘ ✔ ✔ ✘ Concatenation ✔ ✘ ✔ ✔ ✔ ✔ Kleene closure ✔ ✘ ✔ ✔ ✔ ✔ +ve closure ✔ ✘ ✔ ✔ ✔ ✔ Homomorphism ✔ ✘ ✔ ✘ ✘ ✔ I- Homomorphism ✔ ✔ ✔ ✔ ✔ ✔ Closure Properties of Formal Languages
  • 3. Operation Regular DCFL CFL CSL Recursi ve REL Substitution ✔ ✘ ✔ ✔ ✘ ✔ Reverse ✔ ✘ ✔ ✔ ✔ ✔ L ⋃ regular ✔ ✔ ✔ ✔ ✔ ✔ L ⋂ regular ✔ ✔ ✔ ✔ ✔ ✔ L – regular ✔ ✔ ✔ ✔ ✔ ✔ Regular - R ✔ ✔ ✘ ✔ ✔ ✘ L / reg ✔ ✘ ✔ ✘ ✔ ✔ Reg* / R ✔ ✘ ✔ ✘ ✔ ✔ Subset ✘ ✘ ✘ ✘ ✘ ✘ Init ✔ ✔ ✔ ✔ ✔ ✔
  • 4. Decidability & Undecidability of Formal Languages Problem Regula r DCFL CFL Rec. REL Is W in L? (membership problem) ✔ ✔ ✔ ✔ ✘ Is L= ϕ ? (emptiness problem) ✔ ✔ ✔ ✘ ✘ Is L= finite? (finiteness problem) ✔ ✔ ✔ ✘ ✘ Is L1=L2 ? (equivalence problem) ✔ ✔ ✘ ✘ ✘ Is L1⊆L2 ? (subset problem) ✔ ✘ ✘ ✘ ✘ Is ‘L’ regular? (regularity problem) ✔ ✔ ✘ ✘ ✘ Is L ambiguous? (ambiguity pro.) ✔ ✘ ✘ ✘ ✘ Is L=Σ* ? (universality problem) ✔ ✔ ✘ ✘ ✘ Is L1⋂L2 = ϕ ? (disjoint problem) ✔ ✘ ✘ ✘ ✘
  • 5. Related Questions O Let L1 – regular language, L2 – CFL, L3 – recursive language, L4 – recursive enumerable but not recursive. Then which of the following is false. a) 𝐿3 𝑐 ⋃ 𝐿4 is REL b) 𝐿2 ⋃ 𝐿3 is recursive language c) L1*⋂ 𝐿2 is CFL d) L1 ⋃ 𝐿2 is CFL
  • 6. O L1- regular, L2- DCFL, L3- REL but not recursive. Then which of the following is false? a) L1⋂L2 is DCFL b) L1⋂L2⋂L3 is REL c) L1⋃L2 is CFL d) L1⋂L3 recursive language
  • 7. O L1- recursive language, L2- REL but not recursive. Then which of the following is true? a) 𝐿1 is recursive and 𝐿2 is REL b) 𝐿1 is recursive and 𝐿2 is not REL c) 𝐿1 and 𝐿2 are REL d) 𝐿1 is REL and 𝐿2 is recursive
  • 8. O which of the following is undecidable? a) Is L(DFA)=L(NFA) ? b) G is a CFG is W in G? c) G is CFG is L(G)=Σ* ? d) G is CFG is L(G)=ϕ ?