org.jacop.examples.fd

## Class Exodus

• ```public class Exodus
extends ExampleFD```
It is a simple logic puzzle about children reading stories.

Title: Exodus Author: Sophy McHannot Publication: Dell Logic Puzzles Issue: April, 1998 Page: 14 Stars: 2

In preparation for Passover, five children at Hebrew school (Bernice, Carl, Debby, Sammy, and Ted) have been chosen to present different parts of the story of the Exodus from Egypt (burning bush, captivity, Moses's youth, Passover, or the Ten Commandments). Each child is a different age (three, five, seven, eight, or ten), and the family of each child has recently made its own exodus to America from a different country (Ethiopia, Kazakhstan, Lithuania, Morocco, or Yemen). Can you find the age of each child, his or her family's country of origin, and the part of the Exodus story each related?

1. Debby's family is from Lithuania.

2. The child who told the story of the Passover is two years older than Bernice.

3. The child whose family is from Yemen is younger than the child from the Ethiopian family.

4. The child from the Moroccan family is three years older than Ted.

5. Sammy is three years older than the child who told the story of Moses's youth in the house of the Pharaoh.

6. Carl related the story of the captivity of the Israelites in Egypt.

7. The five-year-old child told the story of the Ten Commandments.

8. The child who told the story of the burning bush is either two or three years older than the one whose family came from Kazakhstan.

Determine: Age -- Child -- Country -- Story

Version:
4.9
Author:
Duda Wojciech and Radoslaw Szymanek

• ### Fields inherited from class org.jacop.examples.fd.ExampleFD

`cost, search, store, vars`
• ### Constructor Summary

Constructors
Constructor and Description
`Exodus()`
• ### Method Summary

All Methods
Modifier and Type Method and Description
`static void` `main(String[] args)`
It executes the program to solve this simple puzzle.
`void` `model()`
It specifies a standard way of modeling the problem.
• ### Methods inherited from class org.jacop.examples.fd.ExampleFD

`creditSearch, getSearch, getSearchVariables, getStore, printMatrix, search, searchAllAtOnce, searchAllOptimal, searchLDS, searchMasterSlave, searchMaxRegretOptimal, searchMiddle, searchMostConstrainedStatic, searchOptimal, searchSmallestDomain, searchSmallestMedian, searchSmallestMiddle, searchSmallestMin, searchWeightedDegree, searchWithMaxRegret, searchWithRestarts, shavingSearch`
• ### Methods inherited from class java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`
• ### Constructor Detail

• #### Exodus

`public Exodus()`
• ### Method Detail

• #### model

`public void model()`
Description copied from class: `ExampleFD`
It specifies a standard way of modeling the problem.
Specified by:
`model` in class `ExampleFD`
• #### main

`public static void main(String[] args)`
It executes the program to solve this simple puzzle.
Parameters:
`args` - no argument is used.

Copyright © 2022. All rights reserved.