{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

info372-hw5-sol - Info 372 Homework 5 Solutions 1 Consider...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Info 372 Homework 5 - Solutions 1. Consider the crossword puzzle given below: Suppose we have the following words in our dictionary: laser, sails, hoses, sheet, steer, heel, hike, keel, knot, line, aft, ale, eel, lee, tie . (a) Specify the problem as a constraint satisfaction problem. (20 points) We have eight variables corresponding to the words: 1A, 2D, 3D, 4A, 5D, 6D, 7A, 8A. The domain for 1A, 2D, 3D and 8A is { laser , sails , hoses , sheet , steer } . The domain for 4A and 5D is { heel , keel , knot , line } . The domain for 7A and 6D is { a f t , ale , eel , lee , tie } . Constraints: 1A[3] = 2D[1] 1A[5] = 3D[1] 2D[3] = 4A[2] 2D[4] = 7A[1] 2D[5] = 8A[3] 3D[3] = 4A[4] 3D[4] = 7A[3] 3D[5] = 8A[5] 4A[3] = 5D[1] 5D[2] = 7A[2] 5D[3] = 8A[4] 6D[2] = 8A[1] (b) Give an example of pruning through arc consistency. (10 points) Consider the domains for 6D and 8A. Arc consistency means that for each value in 6D’s domain there exists a value in the domain of 8A, such that the two values are consistent (i.e., they don’t violate any constraints). An example is: consider the word “tie” in the domain of 6D; since no 5 letter word starts with “i” (i.e., no value in the
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern