The complement of a language of a machine L(M)












0












$begingroup$


I'm asked these two questions:



a) Is it true that for any Non-deterministic Finite Automata $M=(Q,Sigma, delta, q_0, F)$, the complement of $L(M)$ is equal to the set ${w in Sigma^* : delta^*(q_0, w) cap F = emptyset }$. If so, prove it, if not give a counterexample.



b) Is it true that for any Non-deterministic Finite Automata $M=(Q,Sigma, delta, q_0, F)$, the complement of $L(M)$ is equal to the set ${w in Sigma^* : delta^*(q_0, w) cap (Q-F) ne emptyset }$. If so, prove it, if not give a counterexample.



So the first thing I did was to make a concrete example where $M=(Q={q_0, q_1, q_2 }, Sigma ={1,0}, delta, q_0, F={q_2})$ NFA is accepted by the following regular expression: 10.



So, to take an example for part a):




  1. $delta^* (q_0,10) = {q_2} cap {q_2} = {q_2}$

  2. $delta^* (q_0,1) = {q_1} cap {q_2} = emptyset$


This is under the assumption that $F={q_2}$



And another example for part b):




  1. $delta^* (q_0,10) = {q_2} cap {q_0,q_1} = emptyset$

  2. $delta^* (q_0,1) = {q_1} cap {q_0,q_1} = {q_1}$


This is under the assumption that $overline F= Q-F = {q_0,q_1}$ since all the accepting states in the NFA become non-accepting, and all non-accepting become final states.



All this to say is that from the data I found with the two examples above, I cannot conclude anything and don't know how else to prove these two statements. Though what I'm leaning towards is that part a) is false because the first example is a counterexample $delta^* (q_0,10) = {q_2} cap {q_2} = {q_2}$, which is of course not a null set. However, this can also be said for part b) since $delta^* (q_0,10) = {q_2} cap {q_0,q_1} = emptyset$ does in fact give an empty set. So for part b), it would have been true if the statement in question to be proven was ${w in Sigma^* : delta^*(q_0, w) cap (Q-F) = emptyset }$. No?



Any hints or suggestions would be appreciated at this point because I'm quite confused.










share|cite|improve this question









$endgroup$

















    0












    $begingroup$


    I'm asked these two questions:



    a) Is it true that for any Non-deterministic Finite Automata $M=(Q,Sigma, delta, q_0, F)$, the complement of $L(M)$ is equal to the set ${w in Sigma^* : delta^*(q_0, w) cap F = emptyset }$. If so, prove it, if not give a counterexample.



    b) Is it true that for any Non-deterministic Finite Automata $M=(Q,Sigma, delta, q_0, F)$, the complement of $L(M)$ is equal to the set ${w in Sigma^* : delta^*(q_0, w) cap (Q-F) ne emptyset }$. If so, prove it, if not give a counterexample.



    So the first thing I did was to make a concrete example where $M=(Q={q_0, q_1, q_2 }, Sigma ={1,0}, delta, q_0, F={q_2})$ NFA is accepted by the following regular expression: 10.



    So, to take an example for part a):




    1. $delta^* (q_0,10) = {q_2} cap {q_2} = {q_2}$

    2. $delta^* (q_0,1) = {q_1} cap {q_2} = emptyset$


    This is under the assumption that $F={q_2}$



    And another example for part b):




    1. $delta^* (q_0,10) = {q_2} cap {q_0,q_1} = emptyset$

    2. $delta^* (q_0,1) = {q_1} cap {q_0,q_1} = {q_1}$


    This is under the assumption that $overline F= Q-F = {q_0,q_1}$ since all the accepting states in the NFA become non-accepting, and all non-accepting become final states.



    All this to say is that from the data I found with the two examples above, I cannot conclude anything and don't know how else to prove these two statements. Though what I'm leaning towards is that part a) is false because the first example is a counterexample $delta^* (q_0,10) = {q_2} cap {q_2} = {q_2}$, which is of course not a null set. However, this can also be said for part b) since $delta^* (q_0,10) = {q_2} cap {q_0,q_1} = emptyset$ does in fact give an empty set. So for part b), it would have been true if the statement in question to be proven was ${w in Sigma^* : delta^*(q_0, w) cap (Q-F) = emptyset }$. No?



    Any hints or suggestions would be appreciated at this point because I'm quite confused.










    share|cite|improve this question









    $endgroup$















      0












      0








      0





      $begingroup$


      I'm asked these two questions:



      a) Is it true that for any Non-deterministic Finite Automata $M=(Q,Sigma, delta, q_0, F)$, the complement of $L(M)$ is equal to the set ${w in Sigma^* : delta^*(q_0, w) cap F = emptyset }$. If so, prove it, if not give a counterexample.



      b) Is it true that for any Non-deterministic Finite Automata $M=(Q,Sigma, delta, q_0, F)$, the complement of $L(M)$ is equal to the set ${w in Sigma^* : delta^*(q_0, w) cap (Q-F) ne emptyset }$. If so, prove it, if not give a counterexample.



      So the first thing I did was to make a concrete example where $M=(Q={q_0, q_1, q_2 }, Sigma ={1,0}, delta, q_0, F={q_2})$ NFA is accepted by the following regular expression: 10.



      So, to take an example for part a):




      1. $delta^* (q_0,10) = {q_2} cap {q_2} = {q_2}$

      2. $delta^* (q_0,1) = {q_1} cap {q_2} = emptyset$


      This is under the assumption that $F={q_2}$



      And another example for part b):




      1. $delta^* (q_0,10) = {q_2} cap {q_0,q_1} = emptyset$

      2. $delta^* (q_0,1) = {q_1} cap {q_0,q_1} = {q_1}$


      This is under the assumption that $overline F= Q-F = {q_0,q_1}$ since all the accepting states in the NFA become non-accepting, and all non-accepting become final states.



      All this to say is that from the data I found with the two examples above, I cannot conclude anything and don't know how else to prove these two statements. Though what I'm leaning towards is that part a) is false because the first example is a counterexample $delta^* (q_0,10) = {q_2} cap {q_2} = {q_2}$, which is of course not a null set. However, this can also be said for part b) since $delta^* (q_0,10) = {q_2} cap {q_0,q_1} = emptyset$ does in fact give an empty set. So for part b), it would have been true if the statement in question to be proven was ${w in Sigma^* : delta^*(q_0, w) cap (Q-F) = emptyset }$. No?



      Any hints or suggestions would be appreciated at this point because I'm quite confused.










      share|cite|improve this question









      $endgroup$




      I'm asked these two questions:



      a) Is it true that for any Non-deterministic Finite Automata $M=(Q,Sigma, delta, q_0, F)$, the complement of $L(M)$ is equal to the set ${w in Sigma^* : delta^*(q_0, w) cap F = emptyset }$. If so, prove it, if not give a counterexample.



      b) Is it true that for any Non-deterministic Finite Automata $M=(Q,Sigma, delta, q_0, F)$, the complement of $L(M)$ is equal to the set ${w in Sigma^* : delta^*(q_0, w) cap (Q-F) ne emptyset }$. If so, prove it, if not give a counterexample.



      So the first thing I did was to make a concrete example where $M=(Q={q_0, q_1, q_2 }, Sigma ={1,0}, delta, q_0, F={q_2})$ NFA is accepted by the following regular expression: 10.



      So, to take an example for part a):




      1. $delta^* (q_0,10) = {q_2} cap {q_2} = {q_2}$

      2. $delta^* (q_0,1) = {q_1} cap {q_2} = emptyset$


      This is under the assumption that $F={q_2}$



      And another example for part b):




      1. $delta^* (q_0,10) = {q_2} cap {q_0,q_1} = emptyset$

      2. $delta^* (q_0,1) = {q_1} cap {q_0,q_1} = {q_1}$


      This is under the assumption that $overline F= Q-F = {q_0,q_1}$ since all the accepting states in the NFA become non-accepting, and all non-accepting become final states.



      All this to say is that from the data I found with the two examples above, I cannot conclude anything and don't know how else to prove these two statements. Though what I'm leaning towards is that part a) is false because the first example is a counterexample $delta^* (q_0,10) = {q_2} cap {q_2} = {q_2}$, which is of course not a null set. However, this can also be said for part b) since $delta^* (q_0,10) = {q_2} cap {q_0,q_1} = emptyset$ does in fact give an empty set. So for part b), it would have been true if the statement in question to be proven was ${w in Sigma^* : delta^*(q_0, w) cap (Q-F) = emptyset }$. No?



      Any hints or suggestions would be appreciated at this point because I'm quite confused.







      computer-science formal-languages automata






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Sep 28 '15 at 3:59









      DimitriDimitri

      68422043




      68422043






















          1 Answer
          1






          active

          oldest

          votes


















          1












          $begingroup$

          Let me clarify things: $delta^*(q_0,w)$ represent the set of all states that can be reached by reading $w$ in the automaton.



          So rephrasing the statements:



          a) ask whether, $w$ is in the complement of $L(M)$ if and only if non of the states that can be reached by reading $w$ are accepting.



          b) ask whether, $w$ is in the complement of $L(M)$ if and only if there exists a state that can be reached by reading $w$ and which is not accepting.



          So your first example is not a counter example! In fact a) is true. It can be shown by showing the two inclusions.



          For b), it is false. To see it you have to use the power of the non-determinism. Use a automaton that have an accepting run and an other run that is not accepting for the same word and see if the property hold.



          I hope it clarify things for you.






          share|cite|improve this answer









          $endgroup$













            Your Answer





            StackExchange.ifUsing("editor", function () {
            return StackExchange.using("mathjaxEditing", function () {
            StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
            StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
            });
            });
            }, "mathjax-editing");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "69"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            noCode: true, onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f1454596%2fthe-complement-of-a-language-of-a-machine-lm%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1












            $begingroup$

            Let me clarify things: $delta^*(q_0,w)$ represent the set of all states that can be reached by reading $w$ in the automaton.



            So rephrasing the statements:



            a) ask whether, $w$ is in the complement of $L(M)$ if and only if non of the states that can be reached by reading $w$ are accepting.



            b) ask whether, $w$ is in the complement of $L(M)$ if and only if there exists a state that can be reached by reading $w$ and which is not accepting.



            So your first example is not a counter example! In fact a) is true. It can be shown by showing the two inclusions.



            For b), it is false. To see it you have to use the power of the non-determinism. Use a automaton that have an accepting run and an other run that is not accepting for the same word and see if the property hold.



            I hope it clarify things for you.






            share|cite|improve this answer









            $endgroup$


















              1












              $begingroup$

              Let me clarify things: $delta^*(q_0,w)$ represent the set of all states that can be reached by reading $w$ in the automaton.



              So rephrasing the statements:



              a) ask whether, $w$ is in the complement of $L(M)$ if and only if non of the states that can be reached by reading $w$ are accepting.



              b) ask whether, $w$ is in the complement of $L(M)$ if and only if there exists a state that can be reached by reading $w$ and which is not accepting.



              So your first example is not a counter example! In fact a) is true. It can be shown by showing the two inclusions.



              For b), it is false. To see it you have to use the power of the non-determinism. Use a automaton that have an accepting run and an other run that is not accepting for the same word and see if the property hold.



              I hope it clarify things for you.






              share|cite|improve this answer









              $endgroup$
















                1












                1








                1





                $begingroup$

                Let me clarify things: $delta^*(q_0,w)$ represent the set of all states that can be reached by reading $w$ in the automaton.



                So rephrasing the statements:



                a) ask whether, $w$ is in the complement of $L(M)$ if and only if non of the states that can be reached by reading $w$ are accepting.



                b) ask whether, $w$ is in the complement of $L(M)$ if and only if there exists a state that can be reached by reading $w$ and which is not accepting.



                So your first example is not a counter example! In fact a) is true. It can be shown by showing the two inclusions.



                For b), it is false. To see it you have to use the power of the non-determinism. Use a automaton that have an accepting run and an other run that is not accepting for the same word and see if the property hold.



                I hope it clarify things for you.






                share|cite|improve this answer









                $endgroup$



                Let me clarify things: $delta^*(q_0,w)$ represent the set of all states that can be reached by reading $w$ in the automaton.



                So rephrasing the statements:



                a) ask whether, $w$ is in the complement of $L(M)$ if and only if non of the states that can be reached by reading $w$ are accepting.



                b) ask whether, $w$ is in the complement of $L(M)$ if and only if there exists a state that can be reached by reading $w$ and which is not accepting.



                So your first example is not a counter example! In fact a) is true. It can be shown by showing the two inclusions.



                For b), it is false. To see it you have to use the power of the non-determinism. Use a automaton that have an accepting run and an other run that is not accepting for the same word and see if the property hold.



                I hope it clarify things for you.







                share|cite|improve this answer












                share|cite|improve this answer



                share|cite|improve this answer










                answered Sep 29 '15 at 11:14









                wecewece

                2,3471823




                2,3471823






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Mathematics Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    Use MathJax to format equations. MathJax reference.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f1454596%2fthe-complement-of-a-language-of-a-machine-lm%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Mario Kart Wii

                    The Binding of Isaac: Rebirth/Afterbirth

                    What does “Dominus providebit” mean?