ExamplesJaCoP
Class FourIslands

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

public class FourIslands
extends Example

It is a very simple puzzle about islands and bridges.

Author:
Waldemar Sliwinski, Zdzislaw Zawada, and Radoslaw Szymanek A tiny nation in the South Pacific contains four islands connected by bridges as shown (see below). Each of the four islands (Pwana, Quero, Rayou, and Skern) boasts a different primary export (alabaster, bananas, coconuts, and durian fruit) and a different tourist attraction (hotel, ice skating rink, jai alai stadium, and koala preserve). Can you find the name, export, and tourist attraction of each island on the map? N W E *compass directions S A, B, C, D are the islands (A) -- (B) | | | | (C) -- (D) (view with non-proportional font) 1. The island noted for its koala preserve is due south of Pwana. 2. The island with the largest alabaster quarry is due west of Quero. 3. The island with the resort hotel is due east of the one that exports durian fruit. 4. Skern and the island with the jai alai stadium are connected by a north-south bridge. 5. Rayou and the island that exports bananas are connected by an east-west bridge. 6. The islands noted for the South Pacific's largest ice skating rink and for the jai alai stadium are not connected by a bridge. Determine: Island location -- Island name -- Export -- Tourist Attraction ANSWER: Northwest, Pwana, durian fruit, ice skating rink Northeast, Skern, coconuts, hotel Southwest, Rayou, alabaster, koala preserve Southeast, Quero, bananas, jai alai stadium

Field Summary
 
Fields inherited from class ExamplesJaCoP.Example
cost, search, store, vars
 
Constructor Summary
FourIslands()
           
 
Method Summary
static void main(java.lang.String[] args)
          It executes a program to solve this simple logic 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

FourIslands

public FourIslands()
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 executes a program to solve this simple logic puzzle.

Parameters:
args - no argument is used.