Answered step by step
Verified Expert Solution
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,
Computer ScienceAI 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 values that will be eliminated if we assign egg to Adam. If no values will be eliminated, then write None
Values that will be eliminated for Barb:
Values that will be eliminated for Camellia:
Values that will be eliminated for David:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started