SLIDE 16 16
CS486/686 Lecture Slides (c) 2012 P. Poupart
31
Practice: street puzzle
– House(), Person( ), Color( ), Drink( ), Job( ), Animal( ) – Attr( , ) (attribute of)
– 1, 2, 3, 4, 5 (house number) – English, Spaniard, Japanese, Italian, Norwegian – Red, Green, White, Yellow, Blue – Tea, Coffee, Milk, Juice, Water – Painter, Sculptor, Diplomat, Violinist, Doctor – Dog, Snails, Fox, Horse, Zebra
– Left(x): number of the house to the immediate left of x
CS486/686 Lecture Slides (c) 2012 P. Poupart
32
Practice: street puzzle
– x House(x) (Attr(x,Spaniard) Attr(x,Dog))
- the green house is on the immediate left of
the red house
– Attr(1,Red) – Attr(5,Green) – x House(x) x1 (Attr(x,Red) Attr(Left(x),Green))