Download presentation
Presentation is loading. Please wait.
1
Fall 2003Costas Busch - RPI1 Decidable Problems of Regular Languages
2
Fall 2003Costas Busch - RPI2 Membership Question Question:Given regular language and string how can we check if ? Answer:Take the DFA that accepts and check if is accepted
3
Fall 2003Costas Busch - RPI3 DFA
4
Fall 2003Costas Busch - RPI4 Given regular language how can we check if is empty: ? Take the DFA that accepts Check if there is any path from the initial state to an accepting state Question: Answer:
5
Fall 2003Costas Busch - RPI5 DFA
6
Fall 2003Costas Busch - RPI6 Given regular language how can we check if is finite? Take the DFA that accepts Check if there is a walk with cycle from the initial state to a final state Question: Answer:
7
Fall 2003Costas Busch - RPI7 DFA is infinite DFA is finite
8
Fall 2003Costas Busch - RPI8 Given regular languages and how can we check if ? Question: Find if Answer:
9
Fall 2003Costas Busch - RPI9 and
10
Fall 2003Costas Busch - RPI10 or
11
Fall 2003Costas Busch - RPI11 Decidable Problems of Context-Free Languages
12
Fall 2003Costas Busch - RPI12 Membership Question: for context-free grammar find if string Membership Algorithms: Parsers Exhaustive search parser CYK parsing algorithm
13
Fall 2003Costas Busch - RPI13 Empty Language Question: for context-free grammar find if Algorithm: 1.Remove useless variables 2.Check if start variable is useless
14
Fall 2003Costas Busch - RPI14 Infinite Language Question: for context-free grammar find if is infinite Algorithm: 1. Remove useless variables 2. Remove unit and productions 3. Create dependency graph for variables 4. If there is a loop in the dependency graph then the language is infinite
15
Fall 2003Costas Busch - RPI15 Example: Dependency graph Infinite language
16
Fall 2003Costas Busch - RPI16
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.