Chapter 8: Q16E (page 280)
We are feeling experimental and want to create a new dish. There are various ingredients we can choose from and we鈥檇 like to use as many of them as possible, but some ingredients don鈥檛 go well with others. If there arepossible ingredients (numbered to ), we write down an matrix giving thediscordbetween any pair of ingredients. Thisdiscordis a real number between and , where means 鈥渢hey go together perfectly鈥 and means 鈥渢hey really don鈥檛 go together.鈥 Here鈥檚 an example matrix when there are five possible ingredients.
In this case, ingredients and go together pretty well whereasandclash badly. Notice that this matrix is necessarily symmetric; and that the diagonal entries are always . Any set of ingredients incurs apenaltywhich isthe sum of all discord values between pairs of ingredients.For instance, the set of ingredientsincurs a penalty of
.We want this penalty to be small.
EXPERIMENTAL CUISINE
Input:, the number of ingredients to choose from ;,the 鈥 discord鈥 matrix; some number
OUTPUT:The maximum number of ingredients we can choose with penalty .
Show that ifEXPERIMENTAL CUISINEis solvable in polynomial time, then so is 3SAT.
Short Answer
If EXPERIMENTAL CUISINE can be solved in polynomial time, then INDEPENDENT SET can also be solved in polynomial time. It is already known that INDEPENDENT SET is NP-complete.