Aditya, Basil, Cecilia, and Dimitri each teach one class at $\text{8:00},$ $\text{9:00},$ $\text{10:00},$ or $\text{11:00}.$ At those times, they each teach algebra, calculus, geometry, or probability. Everybody teaches at a different time, and everybody teaches a different class.

For each teacher, we’d like to know *when* they teach and *which course* they teach. Given a set of clues, how can we figure it out?

These are the makings of a logic grid puzzle. To work through this problem, keep reading. Or, skip to the challenge for a puzzle of your own.

Here are the clues:

- One of Basil's class and the $\text{9:00}$ class is calculus and the other is geometry.
- The four classes are Cecilia’s, the $\text{10:00}$ class, geometry, and probability.
- Aditya’s class is one hour before calculus.
- Calculus is two hours before geometry.$\\[-0.7em]$

The information is hard to make sense of in this form — most of the clues involve information relating to all three categories (teacher, class time, and course). It's easier to interpret the clues if we use an organizational tool that allows us to track the relationships by two categories at a time. $\\[-1em]$

$\\[-1em]$ The grid has three large regions, one for each pairing of categories — teacher and class time, teacher and course, and class time and course. In each region, there is a square for each possible pair of attributes within those two categories. We can mark up the grid when we know that a pair of attributes does or does not make a match.

First, let's go through and eliminate every pair that we can, based on the clues given.

Clue 1 implies that Basil's class is different from the $\text{9:00}$ class. Additionally, both Basil's class and the $\text{9:00}$ class can only be calculus or geometry.

Clue 2 tells us that the four attributes listed are for different classes. That is, Cecilia's class isn't at $\text{10:00},$ isn't geometry, and isn't probability. Also, the $\text{10:00}$ class isn't geometry or probability.

Clue 3 means that Aditya doesn't teach calculus. We also get that calculus can't be at $\text{8:00}$ since there's no class one hour earlier. Similarly, Aditya's class can't be at $\text{11:00}$ because there's no class one hour later.

Finally, clue 4 means calculus can only be at $\text{8:00}$ or $\text{9:00},$ and geometry can only be at $\text{10:00}$ or $\text{11:00}.$

$\\[-1em]$

$\\[-1em]$ At this point, from the grid, we can see that the class times for all of the courses are forced:

Calculus must be at $\text{9:00},$ and geometry must be at $\text{11:00}.$ The only course that can take place at $\text{10:00}$ is algebra. Then probability must be the $\text{8:00}$ class.

Furthermore, since Aditya's class is one hour before calculus (clue 3), she must teach at $\text{8:00}.$ That means Aditya teaches probability.

$\\[-1em]$

$\\[-1em]$ When we place a check mark in the grid, it represents a match between attributes. Within each region of the grid, each row and column can only have one check mark.

Since Aditya teaches at $\text{8:00},$ none of the other teachers can. Additionally, Aditya cannot teach at any of the other times. Similarly, since Aditya teaches probability, none of the other teachers can, and Aditya cannot teach any of the other courses.

With the class time and course region of the grid complete, we can transfer some of that information to other regions.

Basil can only teach at $\text{10:00}$ or $\text{11:00},$ so he can only teach algebra or geometry. We already found that he doesn't teach algebra, so he must teach geometry. Geometry is at $\text{11:00},$ so Basil teaches at $\text{11:00}.$

$\\[-1em]$

$\\[-1em]$ Everything else we need to know is forced:

The $\text{10:00}$ class has to be taught by Dimitri, so he teaches algebra. That leaves Cecilia to teach at $\text{9:00},$ so she teaches calculus.

$\\[-1em]$

$\\[-1em]$ Now that you’ve seen how to translate a set of clues to the grid, can you solve a logic grid puzzle of your own?