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.
|
|
\item \self It is Sunday and your fridge is almost empty. You think that you can probably prepare a decent pizza with the little ingredients you have.
You do have dough. The dough is absolutely necessary for your pizza. You also have arugula, bell pepper and eggplant. You want to put at least one of those three ingredients as toppings on your pizza. Cheese is necessary for the pizza too. You have cheddar and feta. You can use one or both kinds of cheese. You don't like the combination of feta and bell pepper, so you can put at most one of those two ingredients on your pizza. Furthermore you need to save some veggies for dinner, so you can only use either the bell pepper or the eggplant for your pizza.
Create a CNF from this description. You can use the following rule to make the formula shorter: \begin{align*} (\lnot s \land t) \lor (s \land \lnot t) \ent \lnot s \lor \lnot t \end{align*}
Then use a DPLL to figure out which ingredients you should use for your pizza and which ingredients you shouldn’t use. Formulate your answer as a sentence.
|