1 / 7

The difference -- between Recognizable and decidable

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.

kaloni
Download Presentation

The difference -- between Recognizable and decidable

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

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> A is a DFA and L(A) is an infinite language} . • Show that INFINITEDFA is decidable.

  3. I=On input <A> 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>| 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 <M> 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>|A is a DFA and L(A)=null} • EDFA is a decidable language • A={<M,w>|M is a TM and M accepts w} • A is undecidable • The halting problem

More Related