Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3 . Computer Science / AI question. Adam, Barb, Camellia, and David are picking their entrees at a restaurant. The entrees are egg, falafel, granola,

3.Computer Science/AI question. Adam, Barb, Camellia, and David are picking their entrees at a restaurant. The entrees are egg, falafel, granola, and hamburger. They have some strict dietary preferences:
Camellia will not order hamburger.
Adam and Barb want to steal each others food, which is pointless if they both order the same dish. So, Adam and Barb will order different dishes.
Barb will only order egg or granola.
Camellia likes to be unique in her food orders and will not order the same dish as anybody else, with one exception. Adam and Camellia are twins, and always order same dish as each other.
David really dislikes falafel and will not order it.
i. Draw the corresponding constraint graph for this CSP.
ii. Run basic backtracking search to solve this CSP and make sure that every variable (person) is matched with their value (dream dish). Consider alphabetical order to select unassigned variables and to iterate over values. What assignment will backtracking search return?
iii. Assume that no values have been assigned to the variables and we are doing the one iteration of forward checking. Write down the value(s) that will be eliminated if we assign egg to Adam. If no values will be eliminated, then write None.
Value(s) that will be eliminated for Barb: ___________
Value(s) that will be eliminated for Camellia: ____________
Value(s) that will be eliminated for David: ____________

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Knowledge Discovery In Databases

Authors: Gregory Piatetsky-Shapiro, William Frawley

1st Edition

0262660709, 978-0262660709

More Books

Students also viewed these Databases questions

Question

When should you avoid using exhaust brake select all that apply

Answered: 1 week ago