Question: A, B, C, D, and E are classmates. A and C are best friends. Similarly, D and E are best friends. On the other hand,
A, B, C, D, and E are classmates. A and C are best friends. Similarly, D and E are best friends. On the other hand, C hates B and D, whereas E hates A. All of them are selecting dresses for their rag day. Each of them has Black, Red, and White color dress. However, B dislikes the White color dress and wont wear it. Besides, best friends will match their dress colors. On the other hand, haters wont wear the same color dress.
a) Identify the variables, domains, and constraints of this problem. Draw the constraint graph.
b) Solve the problem using backtracking search with forwarding checking. Select variables according to the degree heuristic.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
