Newsgroups: comp.constraints
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news2.near.net!news.mathworks.com!europa.eng.gtefsd.com!howland.reston.ans.net!EU.net!julienas!news.fnet.fr!ilog!puget
From: puget@ilog.ilog.fr (Jean-Francois Puget)
Subject: A (complex) puzzle
Message-ID: <1994Dec22.212607.26375@ilog.fr>
Sender: news@ilog.fr
Nntp-Posting-Host: corvisart
Organization: ILOG S.A., France
Date: Thu, 22 Dec 94 21:26:07 GMT
Lines: 126

A lot of people ask us to provide real world problems taken
from the applications done with Ilog Solver. Unfortunately, this raise
some confidentiality problems.

However, a client submit us a rather interesting puzzle described below. 
This puzzle is interesting because:
1- It is not a binary CSP
2- It does not have an obvious representation as a CSP. In fact, many
representations are possible.
3- It has a unique solution (unless I did some typing errors...)

Try your favorite algorithm/system on it!

I would be glad to know about the results.

Jean-Francois

-------------- description starts here ------------------

Six couples - the ROSENs, the QUINs, the PALMERs, the OGLETHORPEs, the
NEWKIRKs, and the MORGANs, departed via different flights from New
York for a trip to Europe.

The Wives (not respectively) are LOIS, KATE, JESSICA, INGRID, HELEN,
and GLENDA. The husbands (again not respectively) are FRED, EDWARD,
DAVID, CHARLES, BERTRAM, and ALAN.

These 12 persons are (in no particular order) a PHOTOGRAPHER, a
NEWSPAPER COLUMNIST, a COLLEGE PROFESSOR, a MAGAZINE EDITOR, a HIGH
SCHOOL PRINCIPAL, a NOVELIST, a PROFESSIONAL GOLFER, a PHYSICIAN, a
TELEVISION SCRIPTWRITER, a PUBLIC RELATION DIRECTOR, a FASHION
DESIGNER, and a PSYCHOANALYST. Of course, all these careers can be
followed by members of either sex...

From among six countries, DENMARK, ENGLAND, FRANCE, ITALY, NORWAY, and
SPAIN, each couple elected to visit four, spending exactly one week in
each. No two couples visited the same four countries, or spent the
same week in any given country.

The problem is to:
	1) link up each wife with her husband,
	2) match up the first and last names of everybody,
	3) name the occuipation of each of the 12 individuals
	4) name the coutry visited by each couple during each of the
four weeks.

Some additional information is available...

1. The first week found EDWARD in DENMARK, the HIGH SCHOOL PRINCIPAL
in ENGLAND, the FASHION DESIGNER in FRANCE, INGRID in ITALY, the
OGLETHORPEs in NORWAY, and the PSYCHOANALYST in SPAIN.

2. ALAN visited ENGLAND, FRANCE, ITALY, and SPAIN, not necessarily in
that order.

3. DENMARK was visited in succession by the PHOTOGRAPHER, JESSICA,
BERTRAM, and the COLLEGE PROFESSOR.

4. CHARLES and HELEN and the COLLEGE PROFESSOR are three of the four
people who did not visist ENGLAND.

5. GLENDA was in NORWAY after the MAGAZINE EDITOR had been there but
before either the NEWKIRKs or the PSYCHOANALYST.

6. FRED and his wife limited their picture taking to black-and-white
stills, the ROSENs shot color slides exclusively, and the magazine
editor and spouse took only videos. INGRID and her husband were the
only couple who did'nt take at least one camera on the trip.

7. Mr. PALMER and the PSYCHOANALYST and the PHOTOGRAPHER and LOIS all
visited NORWAY, not necessarily in that order. No two were there
during the same week.

8. KATE and her husband took both stills shots and videos in DENMARK,
FRANCE, ITALY, and SPAIN though they did not necessarily tour the
countries in that order.

9. The P. R. DIRECTOR and spouse got a beautiful color shot of Queen
Elisabeth leaving Buckingham Palace to address Parliament. The
following week, they were so engrossed in further picture making that
they barely made the flight back to New York.

10. The NOVELIST, the GOLFER and FRED are three of the four people
that did not visit Denmark.

11. The SCRIPTWRITER visited DENMARK, ENGLAND, ITALY, and NORWAY,
though not necessarily in that order.

12. Just before they reached the midpoint of their trip, HELEN and her
husband finished up their last remaining video cartridge on the top of
the Eiffel Tower, and they had to record the remainder of their
travels via stills.

13. ENGLAND was the last country visited by the NOVELIST and spouse.
It had previsouly been visited, though in no particular order, by Mr.
ROSEN, GLENDA, and BERTRAM, all at different times.

14. During the week that the NEWSPAPER COLUMNIST and spouse were in
NORWAY, LOIS was in DENMARK, and FRED was in ITALY.

15. SPAIN was visited, in no particular order, by CHARLES, JESSICA,
Mrs MORGAN, and the NEWSPAPER COLUMNIST, no two of whom were there at
the same time.

16. HELEN went to NORWAY the same week that the PHYSICIAN was in
FRANCE.

17. Mrs. NEWKIRK and the PHOTOGRAPHER did not tour ITALY.

18. The NEWSPAPER COLUMNIST, the GOLFER, and the MAGAZINE EDITOR are
of the same sex.

19. The NOVELIST and the PHYSICIAN are of the opposite sex.

20. FRANCE was the final country on the GOLFER itinerary.

21. The P.R. DIRECTOR and the HIGH SCHOOL PRINCIPAL are of the same
sex.



-- 
  Jean-Francois Puget		 net : puget@ilog.fr
  ILOG S.A.                      url : http://www.ilog.fr
  2 Avenue Gallieni - BP 85	 tel : +33 1 46 63 66 66
  F-94253 Gentilly Cedex FRANCE	 fax : +33 1 46 63 15 82
