• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            woaidongmao

            文章均收錄自他人博客,但不喜標題前加-[轉貼],因其丑陋,見諒!~
            隨筆 - 1469, 文章 - 0, 評論 - 661, 引用 - 0
            數據加載中……

            DFA求補集

            Comlement and Intersection of Regular Language

             

            Subjects to be Learned

            • Complement of Regular Language
            • Complement of DFA
            • Intersection of Regular Languages

            Contents


            Complement

            Let M = < Q , clip_image001, q0 , clip_image002, A > be a DFA that accepts a language L. Then a DFA that accepts the complement of L, i.e. clip_image001* - L, can be obtained by swapping its accepting states with its non-accepting states, that is Mc = < Q , clip_image001, q0 , clip_image002, Q - A > is a DFA that accepts clip_image001* - L .

            For example the following DFA accepts the language a+ over clip_image001= { a , b }.



                        clip_image003



            A DFA that accepts its complement is obtained from the above DFA by changing all single circles to double circles and vice versa as shown below.



                        clip_image004



            Remark 1: If we have NFA rather than DFA, we must first convert it to DFA before swapping states to get its complement.

            Remark 2: Since a language is regular if and only if it is accepted by some NFA, the complement of a regular language is also regular.


            Intersection of Regular Languages

            Langauges are sets. Therefore all the properties of sets are inherited by languages. In particular De Morgan's law also applies to languages. By Remark 2 above, if L1 and L2 are regular languages, then their complements are regular languages. Since L1 clip_image005L2 = clip_image006by De Morgan's law, L1 clip_image005L2 is regular.

            Thus summing all this up we can say that the set of regular languages over an alphabet is closed with respect to union, intersection, difference, concatenation and Kleene star operations.

            Test Your Understanding of Complemnent and Intersection of FAs

            Indicate which of the following statements are correct and which are not.
            Click True or Fals , then Submit.

            posted on 2009-11-05 12:14 肥仔 閱讀(1877) 評論(0)  編輯 收藏 引用 所屬分類: 狀態機 & 自動機 & 形式語言

            91精品国产色综久久| 国产成人精品白浆久久69| 国产精品内射久久久久欢欢| 97精品国产97久久久久久免费| 精品久久久久久无码中文野结衣 | 777午夜精品久久av蜜臀| 欧美成人免费观看久久| 亚洲综合熟女久久久30p| 久久久中文字幕| 亚洲熟妇无码另类久久久| 99久久精品国内| 国产99久久久国产精品小说| 国产成人久久精品一区二区三区| 99久久亚洲综合精品网站| 久久99久久99精品免视看动漫| 久久九九亚洲精品| 亚洲狠狠婷婷综合久久蜜芽 | 国产精品成人久久久| 91亚洲国产成人久久精品网址| 97精品伊人久久久大香线蕉| 久久99精品久久久久久不卡| 成人妇女免费播放久久久| 久久综合鬼色88久久精品综合自在自线噜噜| 无遮挡粉嫩小泬久久久久久久| 色婷婷久久久SWAG精品| 精品久久久噜噜噜久久久| 伊人久久综合成人网| 无码国内精品久久综合88| 久久国产成人午夜aⅴ影院| 青青草国产成人久久91网| 激情伊人五月天久久综合| 久久久久亚洲av无码专区 | 青青草原精品99久久精品66| 亚洲国产精品成人AV无码久久综合影院| 嫩草影院久久国产精品| 999久久久免费精品国产| 日本强好片久久久久久AAA| 亚洲AV日韩AV天堂久久| 亚洲精品国产美女久久久 | 99久久精品免费看国产免费| 久久精品国产秦先生|