Record seat positions as well as availability
Synthetic party needs three adjacent seats in one row. A1,A2,A4 are free but A3 blocked; B1,B2,B3 are free and B4 held. Six seats are free overall, yet only B1–B3 form a valid three-seat group. The rule is a customer seating requirement, not a venue capacity certification.
| Constraint | Required record | Example decision rule |
|---|---|---|
| Seat identity | Row + position + state | A3 breaks A1–A4 continuity |
| Party rule | Three seats, same row, adjacent | Do not use A1,A2,A4 |
| Hold state | B4 held | Held seat is not free |
Compare free count and actual adjacency
Row A: A1[F] A2[F] A3[X] A4[F]
Row B: B1[F] B2[F] B3[F] B4[H]| Case | Input | Expected decision |
|---|---|---|
| A1,A2,A4 | 3 free but not adjacent | Reject party allocation |
| B1,B2,B3 | 3 adjacent and free | Eligible group |
- Read party adjacency requirement
- Read seat positions and holds
- Find contiguous free run
- Allocate exact seat identities
Unknown seat state must not be treated as free when constructing a contiguous group.
Can a two-person party use A1 and A2 under the same adjacency rule?
Show the worked answer
Yes. They are two adjacent free seats in row A. The blocked A3 does not interrupt that two-seat pair.
Keep the seat map and table aligned, and test a free-count pass that fails positional requirements.