
190 PUZZLE 47 BLOCKS OF SEATS
PUZZLE
47 BLOCKS OF SEATS
The original version of this puzzle came from Bob Stearns at the
University of Georgia and dealt with allocating pages on an Internet
server. I will reword it as a block of seat reservations in the front row of a
theater. The reservations consist of the reserver’s name and the
start_seat and finish_seat seat numbers of his block.
The rule of reservation is that no two blocks can overlap. The table for
the reservations looks like this:
CREATE TABLE Reservations
(reserver CHAR(10) NOT NULL PRIMARY KEY,
start_seat INTEGER NOT NULL,
finish_seat INTEGER NOT NULL);
Reservations
reserver start_seat ...