1 / 61

Uncountable Sets

Uncountable Sets. continued. Theorem:. Let be an infinite countable set. The powerset of is uncountable. Application: Languages. Example Alphabet :. Set of Strings:. infinite and countable. Powerset: all languages. uncountable. Languages: Uncountable.

bwelsh
Download Presentation

Uncountable Sets

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. Uncountable Sets continued...

  2. Theorem: Let be an infinite countable set. The powerset of is uncountable

  3. Application: Languages Example Alphabet : Set of Strings: infinite and countable Powerset: all languages uncountable

  4. Languages: Uncountable Turing machines: Countable There are infinitely many more languages than Turing Machines

  5. There are some languages not accepted by Turing Machines These languages cannot be described by algorithms

  6. Recursively Enumerable Languagesand Recursive Languages

  7. Definition: A language is recursively enumerable if some Turing machine accepts it

  8. Let be a recursively enumerable language and be the Turing Machine that accepts it For string : if then halts in a final state if then halts in some state or loops forever

  9. Definition: A language is recursive if some Turing machine accepts it and halts on any input string In other words: A language is recursive if there is a membership algorithm for it

  10. Let be a recursive language and be the Turing Machine that accepts it For string : if then halts in a final state if then halts in a non-final state

  11. We will prove: 1. There is a specific language which is not recursively enumerable 2. There is a specific language which is recursively enumerable but not recursive

  12. Non Recursively Enumerable Recursively Enumerable Recursive

  13. First we prove: • If a language is recursive then • there is an enumeration procedure for it • A language is recursively enumerable • if and only if • there is an enumeration procedure for it

  14. Theorem: if a language is recursive then there is an enumeration procedure for it

  15. Proof: Enumeration Machine Enumerates all strings of input alphabet Accepts

  16. Enumeration procedure Repeat: generates a string checks if YES: print to output NO: ignore End of proof

  17. Theorem: if language is recursively enumerable then there is an enumeration procedure for it

  18. Proof: Enumeration Machine Enumerates all strings of input alphabet Accepts

  19. NAIVE APPROACH Enumeration procedure Repeat: generates a string checks if YES: print to output NO: ignore If machine may loop forever Problem:

  20. BETTER APPROACH Generates first string executes first step on Generates second string executes first step on second step on

  21. Generates third string executes first step on second step on third step on And so on............

  22. Move 1 2 3

  23. If for string machine halts in a final state then it prints on the output End of proof

  24. Theorem: If for language there is an enumeration procedure then is recursively enumerable

  25. Proof: Input Tape Machine that accepts Enumerator for Compare

  26. Turing machine that accepts For input string Repeat: • Using the enumerator, • generate the next string of • Compare generated string with If same, accept and exit loop End of proof

  27. Question: This is not a membership algorithm. Why? Answer: The enumeration procedure may not produce strings in proper order

  28. We have proven: A language is recursively enumerable if and only if there is an enumeration procedure for it

  29. A Language which is notRecursively Enumerable

  30. We want to find a language that is not Recursively Enumerable This language is not accepted by any Turing Machine

  31. Consider alphabet Strings:

  32. Consider Turing Machines that accept languages over alphabet They are countable:

  33. Example language accepted by Alternative representation

  34. Consider the language consists from the 1’s in the diagonal

  35. Consider the language consists from the 0’s in the diagonal

  36. Theorem: Language is not recursively enumerable

  37. Proof: Assume for contradiction that is recursively enumerable There must exist some machine that accepts

  38. Question:

  39. Answer:

  40. Question:

  41. Answer:

  42. Question:

  43. Answer:

  44. for any Similarly: Because either: or

  45. Therefore the machine cannot exist CONTRADICTION!!! Therefore the language is not recursively enumerable End of proof

  46. Observation: There is no algorithm that describes (otherwise it would be accepted by a Turing Machine)

  47. A Language which is Recursively Enumerableand not Recursive

More Related