IX. Who Owns the Zebra?

Similar documents
Essential Elements that Require Vocabulary Word DLMEE DLMEE DLMEE DLMEE CCSS CCSS CCSS. Priority

Babs Bat Science Day 1

Copyright 2015 Edmentum - All rights reserved.

CHAPTER ONE. A body on the beach. Half asleep, Helen Shepherd turned over in bed, but the noise didn't stop. A moment later she woke up.

Segment Three - People Cause Problems

Cats, lions and zebras: assumptions, predictions, the utility function, and, sufficient but not necessary

The Life of Monty August- October 2014

Me My Sister Pam. a) How old is Josh? b) Does he like to eat vegetables? c) Does he like to eat junk food?

How the Camel Got His Hump

St. Nicholas College College 7

Comparison of FCI gains for small (ASU honors) and large (FC) sections of Modeling UP Academic Year. Figure 2.

CHANDLER HATES DOGS FRIENDS TEACHER S PACK (COMPREHENSION VOCABULARY DISCUSSION SCRIPT) LISTEN IN ENGLISH

Apples. Quiz Questions

Grade 5, Prompt for Opinion Writing Common Core Standard W.CCR.1

If you think you can do a thing or think you can't do a thing, you're right. - Henry Ford (b. 7/30/1863)

Genetics. Labrador Retrievers as a Model System to Study Inheritance of Hair Color. Contents of this Section

BBC LEARNING ENGLISH Alice in Wonderland Part 10: Alice's evidence

Peter and Dragon. By Stephen

Behavior Education for Pet Parents and Pet Professionals. Cat Piece: Litterbox Lapses

Atlas de anatomia humana / Atlas of Human Anatomy (Spanish Edition)

No. She does have some stiffness in her left shoulder when she lays for long periods of time. A

Terrapin Nesting Project

Please initial and date as your child has completely mastered reading each column.

TOEIC TOEFL IELTS TRAINING

I'm sitting here with my dear friend Eva Bertilsson, who is about to finish her master's on... what, Eva, would you like to tell us?

Visible and Invisible Illnesses. I created this project to illustrate the similarities and differences between visible and

Present Perfect. Aulas 03 e 04. Houses of Parliament

For a foreign patient who has little or no knowledge of Japanese, seeking

Cam in the Classroom Mrs. Brown s Fourth Grade Class Churchville Elementary School Churchville Ave, Churchville, VA

Grade 3, Prompt for Opinion Writing

2013 AVMA Veterinary Workforce Summit. Workforce Research Plan Details

SAN ĠORĠ PRECA COLLEGE PRIMARY SCHOOLS. Half Yearly Exams 2014

How to Design Worlds

THE IMPORTANCE OF BEING A MOUSE

The Essentials of Writing an Effective Essay/Written Response

The Bald Eagle That Would Not Quit

Monica, thank you for being here tonight.

WORKING WITH DOLCH WORDS

MIND TO MIND the Art and Science of Training

Blue eyed Villagers. Contents. Summer Puzzle 2. 2 Discussion 3. 3 Solution 4

LAUSD INTERIM ASSESSMENTS ELEMENTARY LITERACY GRADE 2 The Best Pet. people.

Heredity Study. Biology. 5 th Hour 2012

DESERT ANIMALS. 1

The Magic Scissors - Unit 12 Worksheets - Reader 2

Chimera Requirements Analysis

1. Complete with the correct words related to routines

Drinking Water: Bottled or From the Tap?

BEVERLY HILLS STAFF REPORT. Meeting Date: August 4, 2015 To: From: Subject:

How to Stop your Dog from Digging

MITOCW MIT7_01SCF11_track02_300k.mp4

L I N C O L N D O G N I T I O N R E P O R T - M A R C H 1 8,

How long can u keep. amoxicillin after doctor prescrib it

"'- -,/ \\\ I 11/ , \ -- 1/ /I -- - " - - II I -:>' "'... -~ 'l ~ .)\ 1/.-- , I1 '= ":-"'?--I ... .:::- 11 1,/ 11- ~ 1 I III

Oh Say Can You Say Di-no-saur?: All About Dinosaurs (Cat In The Hat's Learning Library) PDF

Grade 5 English Language Arts

C R H G E K. 1 Solve the puzzle. lion. parrot. crocodile. flamingo. snake. tortoise. horse. zebra. elephant. eagle duck. monkey. Classify the animals.

ST NICHOLAS COLLEGE HALF YEARLY PRIMARY EXAMINATIONS. February YEAR 4 ENGLISH TIME: 1hr 15 min (Reading Comprehension, Language and Writing)

Pythons are at the top of the food chain in the Everglades

ESL Writing & Computerized Accuplacer ESL (Reading, Listening, Language Use)

"My Friend Earl" As told by Clayton Roo

(Allow a 15 second pause while students familiarise themselves with the task)

Read Brown Bear, Brown Bear, What Do You See? Read the book and talk about all the animals!

Uncle Tom s Cabin. Harriet Beecher Stowe H. E. Marshall ed.

Teacher Guide Teacher Answer Key and Kentucky Core Academic Standards for RDA 1 Grade 3

To order FLEA FREE products at discount, visit: or call

Barry county 4-H Dog project notebook. Juniors. First year. Name of 4-H Junior: Name and breed of Dog:

How to Say I Ruff You W.M. Akers

Cam in the Classroom: Mrs. Sebesta Lakeside Elementary 1 st grade Orange Park, FL

1 Speaking & Communication. 2 Speaking Activities. 3 Suggestions for Teachers

HOW TO MAKE PUPPY CRACK

R U S T Y D O G N I T I O N R E P O R T - A P R I L 1 2,

There are three things I've always tried to teach you and I want you to make sure you never forget them. she said. Firstly, you must always be BRAVE.

DOGS - Unit 2, Intelligence

Retold by Sue Arengo Illustrated by Kate Aldous OXFORD

MOTHER FUNNER "Cat Got Your Tongue?" Written By: Kari Kluter. We see TIFFANY and a brown, beige and purple SOY COW facing MADISON and THORNZ.

At times you may need to assist feed or use other methods to help your cat eat. Read more about assist-feeding below.

I don t know that old man. I don t know most of the old men. I don t have an old boat. I won t live on an old boat.

HOW THEY FOUND THE MAGIC WOOD

The Bear Trap. Stevan Serban. Matice Srpske 10, Novi Sad, Serbia, Copyright 2016 Stevan Serban. All rights reserved.

Singular or Plural Sort

Grade 3, Prompt for Opinion Writing

Part4. Saint Fatima Language School Form 3 Second Term 2018 / The Vision of the School : Distinct Environment for Refined Education

!"#$%&&%"'#())*+,-.*#/0-,-"1#)%0#233#4,56*",7!!

Should Veterinarians Discuss the Costs of Health Care with Our Clients?

B U S T E R D O G N I T I O N R E P O R T - A P R I L 1 2,

By Aliki Text Type: Fiction: Narrative Wordless Picture Book

Mosquito Activity Book

Soap Opera Genetics Genetics to Resolve Family Arguments 1

SUBJECT, SUBJECT + PREDICATE, PREDICATE USING COMPOUND SUBJECTS AND PREDICATES

Re-homing Questionnaire

Teacher: Read directions only. Students read passage and answer questions 1-6 independently.

The Black Dog PRE-READING ACTIVITIES. 1 Look at the picture. Then write the correct letter next to each word. 2 Match the sentences to the pictures.

Crazy for Kitties and Cats -- It's a Miracle. Follow-up to "Paying It Forward"

House Training A Puppy In 7 Days Without Losing Any Sleep Or Paying For An Expensive Dog Trainer By Raven Heidrich

DOG ESSE TIALS Available at: PH

PLANNING YOUR ZOO TRIP

Treasure Chest Rhyming Neuhaus Education Center Activities

Oral Reading Fluency Recording Form

The Hare and the Tortoise. 2. Why was the Tortoise smiling at the end of the race? He lost the race. He won the race.

MONOLINGUAL EXAM ENGLISH C1 LISTENING COMPREHENSION

Transcription:

IX. Who Owns the Zebra? The real world often poses what are called constraint satisfaction problems, where the task is to find a feasible solution. In other words, we don't have to optimize anything, but we have to satisfy all of the problem's constraints instead. One of the best-known examples of a constraint satisfaction problem is the famous "Zebra" problem. It goes like this: There are five houses, each of a different color and inhabited by men of different nationalities, with different pets, favorite drinks, and cars. Moreover, 1. The Englishman lives in the red house. 2. The Spaniard owns the dog. 3. The man in the green house drinks cocoa. 4. The Ukrainian drinks eggnog. 5. The green house is immediately to the right (your right) of the ivory house. 6. The owner of the Oldsmobile also owns snails. 7. The owner of the Ford lives in the yellow house. 8. The man in the middle house drinks milk. 9. The Norwegian lives in the first house on the left. 10. The man who owns the Chevrolet lives in the house next to the house where the man owns a fox. 11. The Ford owner's house is next to the house where the horse is kept. 12. The Mercedes-Benz owner drinks orange juice. 13. The Japanese drives a Volkswagen. 14. The Norwegian lives next to the blue house. The question is... who owns the zebra? Furthermore, who drinks water?

226 IX. Who Owns the Zebra? Several sentences provide direct information. For example, sentence 8 says that milk is consumed in house 3 (i.e., the middle house). Sentence 9 tells us that the Norwegian lives in house 1 (i.e., the first house on the left). Sentence 14 indicates that house 2 is blue (as this is the only house next to the Norwegian). So, the current knowledge we have is Color blue Drink milk Country Norwegian Car Pet Two other sentences are of immediate interest. Sentence 1 says that the Englishman lives in the red house, and sentence 5 says that the green house is immediately to the right of the ivory house. The conclusions are that House 1 is not red (because it's occupied by the Norwegian). Either houses 3 and 4 or houses 4 and 5 are ivory and green, respectively. Thus house 1 must be yellow. Because of that, the Norwegian owns the Ford (sentence 7) and the horse is kept in house 2 (sentence 11). Thus, our current knowledge is Color yellow blue Drink milk Country Norwegian From here, we can consider two cases, as there are only two possible sequences of colors for houses 3, 4, and 5: Case 1: (ivory, green, red), Case 2: (red, ivory, green). Let's consider these two cases in turn. In case 1, we can infer additional information. The Englishman lives in house 5, as it is red (sentence 1), cocoa is drunk in house 4, because it's green (sentence 3), the Ukrainian drinks eggnog (sentence 4), so he must live in house 2 (as the Norwegian and Englishman live in houses 1 and 5, and milk and cocoa are consumed in houses 3 and 4), the Englishman owns a Mercedes and drinks orange juice (sentence 12, as orange juice is drunk either in house 1 or 5, but the Norwegian from house 1 owns a Ford). Thus, in case 1 our current knowledge is

IX. Who Owns the Zebra? 227 Color yellow blue ivory green red Drink eggnog milk cocoa orange Country Norwegian Ukrainian Englishman Mercedes And now it's clear that this case doesn't lead to a solution! To see this, let's investigate who the owner of the Oldsmobile is? It's not the Norwegian nor the Englishman, as we already know what they own. It is not the Japanese, as sentence 13 says that he drives a Volkswagen. It is not the Ukrainian, as the Oldsmobile owner owns snails (sentence 6) and the Ukrainian owns a horse. And it can't be the Spaniard because he owns a dog (sentence 2). Thus, we've reached a contradiction. In case 1, it's impossible to satisfy the remaining constraints of the problem. Thus, case 2 must hold true. Now we know that the colors of houses 3, 4, and 5 are red, ivory, and green, respectively. Again, sentences 1 and 3 give us additional pieces of certain information and our current knowledge is Drink milk cocoa Country Norwegian Englishman At this stage we can reason as follows. As the Ukrainian drinks eggnog (sentence 4), he must live either in house 2 or 4 (cocoa's drunk in house 5). But if the Ukrainian lives in house 4, then the Spaniard (who owns a dog by sentence 2) must live in house 5, and the Japanese must live in house 2. Also, orange juice must be drunk in house 2 (sentence 12) whose inhabitant drives a Mercedes. This is a contradiction because the Japanese owns a Volkswagen! We conclude then that the Ukrainian must live in house 2 and the current information we have is Drink eggnog milk cocoa Country Norwegian Ukrainian Englishman From this stage it's now easy to find the solution. As the owner of Mercedes Benz drinks orange juice (sentence 12), he must live in house 4. As the Japanese owns a Volkswagen, he must live in house 5. Thus the Spaniard (who also owns a dog) lives in house 4. At this stage we know that

228 IX. Who Owns the Zebra? Drink eggnog milk orange cocoa Country Norwegian Ukrainian Englishman Spaniard Japanese Mercedes Volkswagen dog Sentence 6 says that the Oldsmobile owner also owns snails, so he must live in house 3. Sentence 10 allows us to place the Chevrolet and the fox. It's clear now that the Japanese owns the zebra and the Norwegian drinks water: Drink water eggnog milk orange cocoa Country Norwegian Ukrainian Englishman Spaniard Japanese Chevrolet Oldsmobile Mercedes Volkswagen Pet fox horse snails dog zebra And you thought we'd never get there! Another way of looking at this puzzle is a bit more formal. There are 15 variables of the problem: a; - the color of house i, b;- the drink consumed in house i, c; - the nationality of the person living in house i, d;- the car that's owned by the tenant of house i, and e; - the pet of the tenant of house i. Each of these variables has a domain: dom(a,) = {yellow(y), blue(b), red(r), ivory(!), green( G)}, dom(b,) = {water(w), eggnog( E), milk(m), orangejuice(o), cocoa( C)}, dom(c,) = {Norwegian(N), Ukrainian(U), Englishman(E), Spaniard( S), Japanese( J)}, dom(d;) ={Ford( F), Chevrolet( C), Oldsmobile( D), Mercedes(M), V olkswagen(v)}, and dom(e;) ={fox( F), horse( H), snails(s), dog( D), zebra(z)}. We can represent our knowledge as a table with possible domains for each variable. For example, after analyzing sentences 8, 9, 14, 1, and 5 we know 9 House Color Drink Country Car Pet 1 {Y} {W} {N} {F} {F,Z} 2 {B} {O,E} {U,J} {M, V, C} {H} 3 {R,I} {M} {E,S, J} {0, V,C} 4 {I,G} {C,O,E} {S,U,J} {M,O, V,C} 5 {R,G} {C,O,E} {E, S, U, J} {M,O, V,C} 9Note that by filling the table with the domains of the appropriate variables, we know immediately that the Norwegian drinks water. Finding the owner of zebra is more difficult.

IX. Who Owns the Zebra? 229 The remaining constraints are interpreted as constraints for values of the appropriate variables. For example, sentence 2 becomes if c, = S then ei = D (fori= 2,3,4,5). So the task is to select appropriate values for each attribute (color, drink, country, car, and pet) and each house, so that all of the constraints are satisfied. It's good to practice on constraint satisfaction problems like this because it forces you to think logically, considering what is possible and what is impossible. These problems also seem to show up on graduate school entrance exams, so remember the old boy scout motto: Be prepared! And if you've already finished school, then hey, aren't you glad that's over with?!