• <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)  編輯 收藏 引用 所屬分類: 狀態機 & 自動機 & 形式語言

            久久国产成人| 中文精品久久久久人妻不卡| 久久综合狠狠色综合伊人| 99久久99久久久精品齐齐 | 久久久一本精品99久久精品88| 伊人久久综合成人网| 久久青青草原精品影院| 亚洲中文字幕无码久久2017| 91久久福利国产成人精品| 久久SE精品一区二区| 观看 国产综合久久久久鬼色 欧美 亚洲 一区二区 | 一本色道久久88精品综合| 久久久九九有精品国产| 久久99久国产麻精品66| 精品无码久久久久久久动漫| 性做久久久久久久| 漂亮人妻被中出中文字幕久久| 久久亚洲综合色一区二区三区| 中文字幕人妻色偷偷久久| 色婷婷噜噜久久国产精品12p| 99久久精品国内| 亚洲国产精品无码成人片久久| 久久精品三级视频| 国产成人精品久久亚洲| 四虎国产精品免费久久久| 国产午夜免费高清久久影院| 久久精品国产亚洲AV不卡| 亚洲人成无码www久久久| 久久99精品国产麻豆婷婷| 国内精品久久久久久中文字幕 | 无夜精品久久久久久| 久久亚洲AV成人无码| 久久亚洲国产午夜精品理论片| 久久久久久久97| 精品久久久久久无码专区| 狠狠综合久久AV一区二区三区| 2021国产精品久久精品| 超级碰碰碰碰97久久久久| 久久久久青草线蕉综合超碰| 免费无码国产欧美久久18| 久久久久亚洲av综合波多野结衣|