1 / 9

Decidability

Decidability. Decidability. Definition An effective solution to a problem that has a yes or no answer is called a decision procedure . A problem that has a decision procedure is called decidability. Decidability. Two regular expressions are the same? Two FAs are the same?. Decidability.

jamil
Télécharger la présentation

Decidability

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. Decidability Dr. Shakir Al Faraji

  2. Decidability Definition An effective solution to a problem that has a yes or no answer is called a decision procedure. A problem that has a decision procedure is called decidability. Dr. Shakir Al Faraji

  3. Decidability Two regular expressions are the same? Two FAs are the same? Dr. Shakir Al Faraji

  4. Decidability Two regular expressions are the same? Algorithm • Delete all stars * • For each + throw away the right half of the sum and the + sign itself • Remove all parentheses • Concatenate all remaining elements • The result is a word Dr. Shakir Al Faraji

  5. Decidability-Example Two regular expressions are the same? Consider RE1: a(a+b)* Accepts all words start with a RE2 : (b+)(baa+ba*)* Accepts all words start with b These expressions have no word in common Dr. Shakir Al Faraji

  6. Decidability-Example RE1: a(a+b)* RE2 : (b+)(baa+ba*)* a(a+b)* : a(a+b) : a(a) : aa (b+)(baa+ba*)* (b+)(baa+ba ) (b )(baa ) bbaa So they are not the same Dr. Shakir Al Faraji

  7. Decidability-Example (a+)(ab*+ba*)*(+b*)* (a+)(ab +ba) (+b ) (a )(ab ) ( ) aab aabword Dr. Shakir Al Faraji

  8. Decidability Two FAs are the same? 1. Convert FA to RE and use Algorithm OR 2. FA = (L1∩L’2)+(L’1∩ L2) and this machine cannot accept any words. Dr. Shakir Al Faraji

  9. END Dr. Shakir Al Faraji

More Related