You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
990 B

9 months ago
  1. \item \self Your little cousin needs help to plan her birthday party. There are five kids she thinks about inviting, but not all of them get along. Here is what she tells you:
  2. My very best friend is Anthony, I have to invite him! I’m also good friends with Daisy and Connie, I want at least one of them to come. But Daisy does not like Benjamin, I can’t invite them both! But I do like Benjamin, and I also like Emily. I’d want one of them to be there, or both of them. But Emily is always fighting with Daisy, so only one of them can come.
  3. Create a CNF from this description. You can use the following rule to make the formula shorter:
  4. \begin{align*}
  5. (\lnot s \land t) \lor (s \land \lnot t) \ent \lnot s \lor \lnot t
  6. \end{align*}
  7. Then use the DPLL algorithm to figure out which kids your cousin should invite to her birthday party, which kids she should not invite and which kids she can invite without upsetting any other invited guests. Formulate your answer as a sentence.