LOGIC4FUN

Login ∨ Register

A Harder PuzzleNext Things Next

Now for a slightly more elaborate example. Have a look at the puzzle of the Inconsequential Seminars .

INCONSEQUENTIAL SEMINARS

The Faculty of Inconsequential Studies has a monthly seminar. Each month, the seminar is hosted by a different department, and the lecture by an enormously erudite professor is followed by an even more enormous Departmental Dinner. It has been that way since before the ivy started growing on the walls.

Next semester’s programme of lectures has just been announced. There wil be one each month, from January to May. From the clues, you are to discover the name of each month’s speaker, the title of the talk and which department is the host.

  1. “The Concept of Lunch in Early Schopenhauer”, which is to be expounded in the Logic Chopping Department, is not Professor Scatter’s subject.
  2. The March meeting will be held in the Nitpicking Department.
  3. Prof Madder, the Head of Trivia, will speak in his own department; this will not happen in April, but it will take place immediately before the talk on Vagueness.
  4. “How to Put Things On Top of Other Things” by Prof Dodder is also not scheduled for April.
  5. The first talk, given by Professor Plodder, is not about lunch in Schopenhauer. Nor is it the one called “String Lengths: A Comparative Study”, and it will not be given in the Footling Department.

I realise I have not mentioned Professor Lupi. Nor have I told you anything about the keynote talk entitled “A Hundred Years of Inconsequentialism”. We all look forward to that! Even more, we all look forward to seeing which department gets the Best Dinner Award, won for the past two years by the Department of Minor Matters.

Again the problem is to match up people against dates, venues and subjects. The basic idea is the same as in the Four Spies problem, but this time there are five things of each sort rather than four, and four sorts rather than three. Hence the puzzle is more complex.

After trawling through the puzzle description, we can isolate the list of professors: Dodder, Plodder, Madder, Lupi and Scatter. The months, of course, you know. The venues are the departments of: Trivia, Logic-Chopping, Nitpicking, Footling and Minor Matters. The five titles, in no particular order, are:

  • A Hundred Years of Inconsequentialism (Keynote Address)
  • The Concept of Lunch in Early Schopenhauer
  • Vagueness Revisited
  • How To Put Things On Top Of Other Things
  • String Lengths: A Comparative Study

For conciseness, the department names and (especially) the talk titles should be abbreviated. All four sorts (months, professors, departments, titles) can be given as enumerated sorts, though only in the case of the months does the order within the enumeration matter.

On the right is my suggested formulation. If you don’t like it, you can edit it as much as you like. After each edit, re-run the solver to make sure you still get the same solution!

We want the solver to determine three functions, assigning to each month the speaker, the venue and the topic. There is nothing magic about picking “months” as the starting point: any representation of the four-way mapping will do. Of course, all three functions are one-to-one mappings between the respective sorts.

Again, most of the constraints are quite straightforward. If you followed the ones for the Four Spies, you should be able to read these. The only constraint that really requires comment at this point is the one saying that Professor Madder speaks in the month immediately before the talk on vagueness:

ALL x (speaker(x)=Madder IMP topic(x+1)=Vagueness).

Note the keyword IMP for saying that one statement implies another: if the speaker in month x is Madder, then the topic in month x+1 is vagueness. Note also that month x+1 is the month after x (adding one to a month gives you the next month). Note also that in the case where x is the last month (May) month x+1 does not exist! In that case, it so happens that the constraint comes out true anyway, for the vacuous reason that May’s speaker is not Professor Madder, but in general you will need to take care over things like that, because strange effects tend to happen when some term like “x+1” takes you off the map.

Solver

Insert a logical symbol:
  
Powered by:                 

  Auto Parser Results

No errors found.