Presentation is loading. Please wait.

Presentation is loading. Please wait.

The difference -- between Recognizable and decidable If L is decidable, then L is recognized by a TM M that halts on all inputs. Note that, L might be.

Similar presentations


Presentation on theme: "The difference -- between Recognizable and decidable If L is decidable, then L is recognized by a TM M that halts on all inputs. Note that, L might be."— Presentation transcript:

1 The difference -- between Recognizable and decidable If L is decidable, then L is recognized by a TM M that halts on all inputs. Note that, L might be recognized by other TM M’ that does not always halt. If L is recognizable, then there might be such TM M that recognizes L but run forever, rather than rejecting, some inputs not in L. Simply, Decidable ---- always halt Recognizable ---- halt or loop

2 Let INFINITEDFA={ A is a DFA and L(A) is an infinite language}. Show that INFINITEDFA is decidable.

3 I=On input where A is a DFA 1.Let k be the number of states of A 2.Construct a DFA D that accepts all strings of length k or more 3Construct a DFA M such that L(M)=L(A) intersect L(D) 4Test L(M)=null,using the EDFA decider T from Theorem 4.4 5 If T accepts,reject;if Trejects,accept

4 The DFA accepts some string of length k or more,where k is the number of states of the DFA,This string may be pumped in the pumping lemma for regular language to obtain infinitely many accepted string,

5 Let A={ | M is a DFA which doesn’t accept any string containing an odd numbers of 1s}. Show that A is decidable.

6 I=On input where M is a DFA 2.Construct a DFA O that accepts every string containing an odd numbers of 1s 3Construct a DFA B such that L(B)=L(M) intersect L(O) 4Test L(B)=null, using the EDFA decider T from Theorem 4.4 5 If T accepts,accept;if T rejects,reject

7 EDFA= { |A is a DFA and L(A)=null} EDFA is a decidable language A={ |M is a TM and M accepts w} A is undecidable The halting problem


Download ppt "The difference -- between Recognizable and decidable If L is decidable, then L is recognized by a TM M that halts on all inputs. Note that, L might be."

Similar presentations


Ads by Google