10.07.2015 Views

Logic Puzzle 1

Logic Puzzle 1

Logic Puzzle 1

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Logic</strong> <strong>Puzzle</strong> 1Whom 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


Solution with Truth Tableinvite John invite Paul invite Maryfalse false falsetrue false falsefalse true falsefalse false truetrue true falsetrue false truefalse true truetrue true trueSlide 2/11


If you invite John, you must invite Paul.invite John invite Paul invite Maryfalse false falsetrue false falsefalse true falsefalse false truetrue true falsetrue false truefalse true truetrue true trueSlide 3/11


You must invite either Paul or Mary, but not both.invite John invite Paul invite Maryfalse false falsetrue false falsefalse true falsefalse false truetrue true falsetrue false truefalse true truetrue true trueSlide 4/11


If you invite Mary, you must also invite John.invite John invite Paul invite Maryfalse false falsetrue false falsefalse true falsefalse false truetrue true falsetrue false truefalse true truetrue true trueThe only possible solution is to invite John and Paul, but not Mary.Slide 6/11


<strong>Logic</strong> <strong>Puzzle</strong> 2Here’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


<strong>Logic</strong> <strong>Puzzle</strong> 2: SolutionIn this case a truth table would have to be quite large because somany people are involved.It is probably easier to apply De Morgan’s law:Slide 8/11


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


De Morgan’s Law:You should not invite Charlie or not invite Diana.Is the same asYou should not invite (Charlie and Diana).Slide 10/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 mustcome; Diana cannot come; Mary cannot come.The first and third lines imply that you should invite Susan, butnot Paul and not John.Slide 11/11

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!