how to convert SAT to 3SAt

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite
1












My teacher showed these steps when converting SAT to 3SAT (he was working with an example).



He said to construct a formula F1



F1 = y1 and (y1 bidirectional arrow (y2 and not x2))
and (y2 bidirectional arrow (x1 or y3))
and (y3 bidirectional arrow not y4)
etc.


He got F1 by converting a SAT formula to a parse tree (e.g., the formula x1 and x2 would is converted into a tree where and is the root (labelled y1) and the left child is x1, right child is x2).



After getting F1, he said to convert each case into a CNF formula. He then said the first case (y1 bidirectional arrow (y2 and not x2)) equals the following CNF formula:



(not y1 or not y2 or not x2)
and (not y1 or y2 or not x2)
and (not y1 or y2 or x2)
and (y1 or not y2 or x2)


Can someone explain how my teacher went from the first case (y1 bidirectional arrow (y2 and not x2)) to the CNF formula above?







share|cite|improve this question
























    up vote
    0
    down vote

    favorite
    1












    My teacher showed these steps when converting SAT to 3SAT (he was working with an example).



    He said to construct a formula F1



    F1 = y1 and (y1 bidirectional arrow (y2 and not x2))
    and (y2 bidirectional arrow (x1 or y3))
    and (y3 bidirectional arrow not y4)
    etc.


    He got F1 by converting a SAT formula to a parse tree (e.g., the formula x1 and x2 would is converted into a tree where and is the root (labelled y1) and the left child is x1, right child is x2).



    After getting F1, he said to convert each case into a CNF formula. He then said the first case (y1 bidirectional arrow (y2 and not x2)) equals the following CNF formula:



    (not y1 or not y2 or not x2)
    and (not y1 or y2 or not x2)
    and (not y1 or y2 or x2)
    and (y1 or not y2 or x2)


    Can someone explain how my teacher went from the first case (y1 bidirectional arrow (y2 and not x2)) to the CNF formula above?







    share|cite|improve this question






















      up vote
      0
      down vote

      favorite
      1









      up vote
      0
      down vote

      favorite
      1






      1





      My teacher showed these steps when converting SAT to 3SAT (he was working with an example).



      He said to construct a formula F1



      F1 = y1 and (y1 bidirectional arrow (y2 and not x2))
      and (y2 bidirectional arrow (x1 or y3))
      and (y3 bidirectional arrow not y4)
      etc.


      He got F1 by converting a SAT formula to a parse tree (e.g., the formula x1 and x2 would is converted into a tree where and is the root (labelled y1) and the left child is x1, right child is x2).



      After getting F1, he said to convert each case into a CNF formula. He then said the first case (y1 bidirectional arrow (y2 and not x2)) equals the following CNF formula:



      (not y1 or not y2 or not x2)
      and (not y1 or y2 or not x2)
      and (not y1 or y2 or x2)
      and (y1 or not y2 or x2)


      Can someone explain how my teacher went from the first case (y1 bidirectional arrow (y2 and not x2)) to the CNF formula above?







      share|cite|improve this question












      My teacher showed these steps when converting SAT to 3SAT (he was working with an example).



      He said to construct a formula F1



      F1 = y1 and (y1 bidirectional arrow (y2 and not x2))
      and (y2 bidirectional arrow (x1 or y3))
      and (y3 bidirectional arrow not y4)
      etc.


      He got F1 by converting a SAT formula to a parse tree (e.g., the formula x1 and x2 would is converted into a tree where and is the root (labelled y1) and the left child is x1, right child is x2).



      After getting F1, he said to convert each case into a CNF formula. He then said the first case (y1 bidirectional arrow (y2 and not x2)) equals the following CNF formula:



      (not y1 or not y2 or not x2)
      and (not y1 or y2 or not x2)
      and (not y1 or y2 or x2)
      and (y1 or not y2 or x2)


      Can someone explain how my teacher went from the first case (y1 bidirectional arrow (y2 and not x2)) to the CNF formula above?









      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Aug 8 at 20:09









      user2719875

      1517




      1517

























          active

          oldest

          votes











          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',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          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%2f2876535%2fhow-to-convert-sat-to-3sat%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes










           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2876535%2fhow-to-convert-sat-to-3sat%23new-answer', 'question_page');

          );

          Post as a guest













































































          這個網誌中的熱門文章

          How to combine Bézier curves to a surface?

          Mutual Information Always Non-negative

          Why am i infinitely getting the same tweet with the Twitter Search API?