Seating

Classroom keep-apart rules and a 24-seat room

By default, keep-apart forbids the seats immediately left and right in the same row. It does not forbid the seat directly behind someone or a diagonal seat. Choose the adjacency definition you need before generating a chart. Locks are hard rules; a front or back preference can be missed.

For this worked example, start a fresh classroom chart. Import a one-column roster named Person 1 through Person 24, in that order. Use 6 rows and 4 columns, no blocked seats, left/right adjacency and seed 11. Lock Person 1 to seat 1, keep Person 1 and Person 2 apart, and give Person 3 a front preference. The solver produces the chart below. In the table, P1 means Person 1. Columns 1 to 4 run left to right, and row 1 is at the front.

Worked example: 24 people in a 6 by 4 classroom
Row1234
1P1P15P5P9
2P16P11P6P17
3P8P14P2P12
4P22P4P21P18
5P10P23P13P24
6P7P20P3P19

How to read this classroom result

Seat numbers run across each row: 1 to 4 in row 1, 5 to 8 in row 2, continuing through 21 to 24 in row 6. All 24 people occupy distinct seats, and the 24-place grid has no empty seats. Person 1 is at seat 1 as locked. Person 2 is at seat 11, outside the left/right adjacency forbidden by their apart rule.

Person 3 is at seat 23 in row 6. The solver reports that their front preference was missed. In this six-row grid, the front zone is rows 1 to 3. A solved chart means the hard rules passed, not that every preference was met. Check the unmet-preference message before deciding to use the chart.

A conflict stops the chart

For a small conflict check, use the same room with Person 1 locked to seat 1 and Person 2 locked to seat 2, while keeping them apart left/right. Those locks contradict the apart rule, so the editor reports the conflict before searching. Remove or change a rule rather than expecting the solver to ignore it.

Capacity is separate. Blocking one seat leaves 23 open seats for 24 people and fails the capacity check. A search that reaches its time limit says no layout was found within the limit. It does not prove that no layout exists.

Common classroom-rule mistakes

  • Writing a keep-apart pair but leaving the wrong adjacency selected. Left/right does not also forbid front/back or diagonal neighbors.
  • Treating seat 4 and seat 5 as side-by-side because their numbers are consecutive. They are on different rows in a four-column grid.
  • Using a front preference as a required seat. A preference is soft; a lock fixes a person to a specific seat.
  • Counting blocked places as available seats. A 24-place grid with one blocked seat has room for 23 people.
  • Copying the sample names without checking your current roster and rules. A different set of ids, rules or seed can change the arrangement.

Use a chart after checking the room

Use this tool to test arrangements and produce an editable classroom chart. It does not assess fire-code, accessibility or legal compliance. Check the physical desks, routes through the room and any requirements that a grid cannot establish before using the plan.

This guide has no name fields and does not embed the editor. Enter your roster in the ad-free seating editor. You can use sample names instead of real ones. A saved project or download can still contain names, and a shared browser profile can retain a saved copy.

Sources and tools