Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

Seating Charts and Timetables: Two Planning Puzzles Made Easy

· in Guides

Cover picture: Seating Charts and Timetables: Two Planning Puzzles Made Easy

Who sits where at a wedding, and which class has maths on Monday? Both are the same kind of puzzle. Here is how to set them up so a computer can solve them.

A seating plan for a wedding and a timetable for a school look like different jobs. Underneath, they are the same puzzle: put things into slots so that some rules are never broken and others are kept as often as possible.

Why these puzzles are hard

With 60 guests at 8 tables, there are far more possible seating plans than anyone could check one by one. The same is true for a school week of 30 periods. You cannot try them all, so you need a good method.

The method that works best for most people is simple:

  1. Write down the hard rules: the ones that must never break.
  2. Write down the wishes: things you would like, if possible.
  3. Place the hardest pieces first, then improve the plan in small steps.

Seating a wedding or party

The hard rules are easy: no table gets more guests than it has seats, and people who arrive together sit together. In the planner, each line of the guest list is one party, such as a couple or a family, and a party is never split.

The wishes are your rules:

  • together: Grandma Rose, Ana. She will be happier next to her granddaughter.
  • apart: Uncle Joe, Ben. You know why.

The planner fills the tables, biggest parties first, then keeps moving and swapping parties while that breaks fewer rules. It does this from 40 different starting points and keeps the best plan. If a rule cannot be kept, it tells you which one, so you can decide.

Tip: leave one or two spare seats for late changes. A plan with every seat full has no room to move.

Making a school timetable

Here the hard rules are about clashes. A class cannot have two lessons at once, a teacher cannot be in two rooms, and the one science lab cannot hold two classes in the same period.

Write each lesson as one line: class, subject, teacher, periods a week, and a room if it needs a special one. For example, 7A, Science, Dr Lee, 4, Lab.

The busiest teacher and the shared rooms are the bottlenecks, so the timetable maker places their lessons first. With "spread" on, a class meets each subject at most once a day where possible, so five maths lessons land on five different days.

Before you start, add up the totals. If one teacher has 32 periods and the week has 30 slots, no method can help: the maker spots this and tells you straight away.

The same skill in both

In both puzzles, the people with the most rules attached are the ones to place first. A guest who must avoid three others, or a part-time teacher who shares the gym, decides more of the plan than anyone else.

For a wedding or party, try the seating chart planner; for a school week, the timetable maker; and for desks in a classroom, the classroom seating tool.

Tags:

All blog posts

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product