Skip to content
Astera Technology

Require adjacent seats for a venue party

Model row adjacency and held seats before allocating a party.

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.

Synthetic adjacent-seat requirements
ConstraintRequired recordExample decision rule
Seat identityRow + position + stateA3 breaks A1–A4 continuity
Party ruleThree seats, same row, adjacentDo not use A1,A2,A4
Hold stateB4 heldHeld seat is not free
Download editable CSV ↓

Compare free count and actual adjacency

Synthetic seat plan; F free, X blocked, H held
Row A: A1[F] A2[F] A3[X] A4[F]
Row B: B1[F] B2[F] B3[F] B4[H]
Filled synthetic acceptance cases
CaseInputExpected decision
A1,A2,A43 free but not adjacentReject party allocation
B1,B2,B33 adjacent and freeEligible group
Download editable CSV ↓
  1. Read party adjacency requirement
  2. Read seat positions and holds
  3. Find contiguous free run
  4. 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.

Related resources