logic puzzle 1
play

Logic Puzzle 1 Whom to invite for the party: If you invite John, - PowerPoint PPT Presentation

Logic Puzzle 1 Whom to invite for the party: If you invite John, you must invite Paul. You must invite either Paul or Mary, but not both. You must invite either John or Mary or both. If you invite Mary, you must also invite John.


  1. Logic Puzzle 1 Whom to invite for the party: ◮ If you invite John, you must invite Paul. ◮ You must invite either Paul or Mary, but not both. ◮ You must invite either John or Mary or both. ◮ If you invite Mary, you must also invite John. Slide 1/11

  2. Solution with Truth Table invite John invite Paul invite Mary false false false true false false false true false false false true true true false true false true false true true true true true Slide 2/11

  3. If you invite John, you must invite Paul. invite John invite Paul invite Mary false false false true false false false true false false false true true true false true false true false true true true true true Slide 3/11

  4. You must invite either Paul or Mary, but not both. invite John invite Paul invite Mary false false false true false false false true false false false true true true false true false true false true true true true true Slide 4/11

  5. You must invite either John or Mary or both. invite John invite Paul invite Mary false false false true false false false true false false false true true true false true false true false true true true true true Slide 5/11

  6. If you invite Mary, you must also invite John. invite John invite Paul invite Mary false false false true false false false true false false false true true true false true false true false true true true true true The only possible solution is to invite John and Paul, but not Mary. Slide 6/11

  7. Logic Puzzle 2 Here’s another party: ◮ You should not (not invite Charlie or not invite Susan). ◮ If you don’t invite Diana, Mary will not come either. ◮ If you invite Susan, you should not invite (Paul or John). ◮ You should not invite Charlie or not invite Diana. Slide 7/11

  8. Logic Puzzle 2: Solution In this case a truth table would have to be quite large because so many people are involved. It is probably easier to apply De Morgan’s law: Slide 8/11

  9. De Morgan’s Law: You should not (not invite Charlie or not invite Susan). Is the same as You should invite Charlie and invite Susan. Slide 9/11

  10. De Morgan’s Law: You should not invite Charlie or not invite Diana. Is the same as You should not invite (Charlie and Diana). Slide 10/11

  11. Therefore: ◮ You should invite Charlie and invite Susan. ◮ If you don’t invite Diana, Mary will not come either. ◮ If you invite Susan, you should not invite (Paul or John). ◮ You should not invite (Charlie and Diana). The first, fourth and second lines imply that implies Charlie must come; Diana cannot come; Mary cannot come. The first and third lines imply that you should invite Susan, but not Paul and not John. Slide 11/11

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend