Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I would really appreciate it if i get help in this assignment i have Department of Computer Science & AI College of Computer Science &

image text in transcribedimage text in transcribedI would really appreciate it if i get help in this assignment i have

Department of Computer Science \& AI College of Computer Science \& Engineering UNIVERSITY OF JEDDAH, KSA Question 2: (3 marks) You are in charge of scheduling for computer science classes that meet weekly. There are 5 classes that meet and 3 professors who will be teaching these classes. You are constrained by the fact that each professor can only teach one class at a time. The classes are: 1. Class 1 - Intro to Programming: meets from 8:00-9:00am 2. Class 2 - Intro to Artificial Intelligence: meets from 8:30-9:30am 3. Class 3 - Natural Language Processing: meets from 9:00-10:00am 4. Class 4 - Computer Vision: meets from 9:00-10:00am 5. Class 5 - Machine Learning: meets from 10:30-11:30am The professors are: 1. Professor A, who is qualified to teach Classes 1,2 , and 5. 2. Professor B, who is qualified to teach Classes 3,4 , and 5 . 3. Professor C, who is qualified to teach Classes 1,3 , and 4. I. Formulate this problem as a CSP problem. a. State the domain b. State the variables c. Unary constraints d. Binary constraints Constraints should be specified formally and precisely but may be implicit rather than explicit. II. Draw the constraint graph associated with your CSP III. What are the domains of the variables after enforcing node-consistency? IV. What are the domains of the variables after enforcing arc-consistency? Department of Computer Science \& AI College of Computer Science \& Engineering UNIVERSITY OF JEDDAH, KSA Train your Brain: Five men with different nationalities and with different jobs live in consecutive houses on a street. The houses are painted different colors. The men have different pets and have different favorite drinks. Determine who owns a zebra and whose favorite drink is mineral water (which is one of the favorite drinks) given these clues: 1. The Englishman lives in the red house. 2. The Spaniard owns a dog. 3. The Japanese man is a painter. 4. The Italian drinks tea. 5. The Norwegian lives in the first house on the left. 6. The green house is on the right of the white one. 7. The photographer breeds snails. 8. The diplomat lives in the yellow house. 9. Milk is drunk in the middle house. 10. The owner of the green house drinks coffee. 11. The Norwegian's house is next to the blue one. 12. The violinist drinks orange juice. 13. The fox is in a house next to that of the physician. 14. The horse is in a house next to that of the diplomat. Hint: Make a table where the rows represent the men and columns represent the colors of their houses, their jobs, their pets, and their favorite drinks and use logical reasoning to determine the correct entries in the table. This is a fun puzzle to think about. However, it has to do with "logic" only marginally. The real difficulty is in knowing where to start, and in how to think about the problem. When addressing real-life problems as computer scientists, we will be in this situation often: someone poses a problem (usually less well defined than this one), and we are asked to solve it. This is different from solving a homework assignment in a class. For the homework, we are either told what technique to apply, or we can make an educated guess by picking a solution method from the part of the textbook that the problem refers to. In real life, all we have is the problem itself, and whatever knowledge and experience we have accumulated over time. So how do we come up with a solution? We will use the zebra puzzle to explore some heuristics for thinking about complex problems. Try to solve the above problem in a group of 5-8 students (please write you group names and IDs), you may deal with it as a CSP problem, define the variables and domains, maybe identify the constraints, you may use Backtracking algorithm, with some improvements/heuristics like MRV, degree heuristics and so on, you may use forward checking/ arc-consistency, OR THINK OF A MORE SUITABLE LOGICAL WAY TO SOLVE IT. It is up to you to choose a suitable and clear methodology that you have learned to solve it

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

More Books

Students also viewed these Databases questions

Question

What symbol represents Pearsons correlation coefficient parameter?

Answered: 1 week ago