ExamplesJaCoP
Class BabySitting

java.lang.Object
  extended by ExamplesJaCoP.Example
      extended by ExamplesJaCoP.BabySitting

public class BabySitting
extends Example

It is a simple logic puzzle about babysitting.

Author:
Radoslaw Szymanek Each weekday, Bonnie takes care of five of the neighbors' children. The children's names are Keith, Libby, Margo, Nora, and Otto; last names are Fell, Grant, Hall, Ivey, and Jule. Each is a different number of years old, from two to six. Can you find each child's full name and age? 1. One child is named Libby Jule. 2. Keith is one year older than the Ivey child, who is one year older than Nora. 3. The Fell child is three years older than Margo. 4. Otto is twice as many years old as the Hall child. Determine: First name - Last name - Age Given solution : Keith Fell, five years old Libby Jule, six years old Margo Hall, two years old Nora Grant, three years old Otto Ivey, four years old

Field Summary
 
Fields inherited from class ExamplesJaCoP.Example
cost, search, store, vars
 
Constructor Summary
BabySitting()
           
 
Method Summary
static void main(java.lang.String[] args)
          It runs the program solving this puzzle.
 void model()
          It specifies a standard way of modeling the problem.
 
Methods inherited from class ExamplesJaCoP.Example
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BabySitting

public BabySitting()
Method Detail

model

public void model()
Description copied from class: Example
It specifies a standard way of modeling the problem.

Specified by:
model in class Example

main

public static void main(java.lang.String[] args)
It runs the program solving this puzzle.

Parameters:
args - no arguments are read.