Ripetizioni di Analisi
EN

Theory

Deduction problems and logic tables

How to work out who does what from a set of clues using logic grids, arrangements in a line or around a table, work schedules, truth-teller and liar puzzles, and problems in which a fixed number of statements are true.

On this page
  1. What is a deduction problem?
  2. Logic grids

What is a deduction problem?

Deduction problem

A deduction problem describes a group of people, characteristics to assign to them (a job, a city, a position in line, or a day on duty), and a list of clues, also called constraints. Solving it means finding every assignment that satisfies every clue. The problem almost always specifies that the characteristics are distinct: each person receives exactly one value of a given characteristic, and no two people share that value.

If Anna, Bruno, and Carla work in three different offices, the civil registry, the records office, and the tax office, exactly one of them works in each office. The clue “Carla works in neither the civil registry nor the tax office” leaves her only one possible office, so Carla works in the records office.

One solution or several

The clues of a well-constructed question can leave one possible assignment or several. In the first case the question is direct (“Who works in the tax office?”). In the second it asks what holds in every solution, or what further information would determine a single one. Two solutions can also differ only in details the question does not ask about: if Luca and Nicola can exchange the juice and the water, “Who has the coffee?” may still have just one answer.

Logic grids

1. Logic grid

A logic grid is a two-way table with a row for each person and a column for each possible value of a characteristic. Mark a cell ✗ if the clues rule out the match and ✓ if they establish it. The grid records what has already been deduced so that it does not all have to be kept in mind.

Three friends, Davide, Elisa, and Fabio, each own a different pet: a cat, a dog, or a parrot. Davide does not have the cat, and Fabio has neither the cat nor the dog. After these clues are entered, the grid looks as follows.

catdogparrot
Davide✗
Elisa
Fabio✗✗

2. The row and column rule

If each person has exactly one value and each value belongs to exactly one person, two rules apply to a logic grid.

  • If all but one cell in a row or column are marked ✗, the remaining cell must be ✓.
  • If one cell is ✓, all other cells in its row and column must be ✗.

In the pet grid Fabio’s row has two ✗ marks, so Fabio has the parrot. Consequently, the parrot column gets an ✗ in the rows for Davide and Elisa.

Proof

Each row contains exactly one ✓ because each person has only one value. If all other values are ruled out, only that one remains. Likewise each column contains exactly one ✓ because each value belongs to only one person. A ✓ therefore rules out every other cell in both its column and its row.

Constraint propagation

Applying a rule produces a new ✓ or ✗, which in turn allows another rule to be applied. This process is called constraint propagation. In the pet problem, after Fabio is marked ✓ for the parrot, Davide’s row has an ✗ for both the cat and the parrot, so Davide has the dog. The cat column now has an ✗ for both Davide and Fabio, so the cat belongs to Elisa.

catdogparrot
Davide✗✓✗
Elisa✓✗✗
Fabio✗✗✓

Each step uses a single clue or rule. The grid is complete once each row contains a ✓.

3. Grids with two characteristics

With two characteristics, such as occupation and city, use a table with one row per person and one column per characteristic. Record excluded values alongside it. A clue linking characteristics, such as “the teacher lives in Rome,” can connect information about either characteristic to the other. If the teacher lives in Rome and Giulia lives in Naples, then Giulia is not the teacher. This step uses the contrapositive of the clue: “if a person is the teacher, then that person lives in Rome” is equivalent to “if a person does not live in Rome, then that person is not the teacher.” The equivalence between an implication and its contrapositive is discussed in the topic on connectives, negations, and implications.

Warning

The clue “the teacher lives in Rome” does not say that whoever lives in Rome is the teacher, unless the problem specifies that only one person lives in each city. With three people in three different cities, the two statements are equivalent. With four people in just two cities, one of them Rome, someone who does not teach could also live in Rome.

End of the free preview

The theory of this topic continues with 8 more sections

  1. Arrangements in a line
  2. Seating around a table
  3. Work shifts and schedules
  4. Truth-tellers and liars
  5. Who did it? Contradictory statements
  6. Questions about the answer choices
  7. Quick methods for timed questions
  8. Keep studying

Full access also includes the other 5 worked examples of this topic and the solutions of the 14 practice exercises.

Unlock Logic for exams · €29

Read the first 3 worked examples in this chapter for free.

Report a mistake

Where:

Ripetizioni di Analisi

Keep studying

With a free account, you can pick up where you left off and see your progress next time you visit.

Sign up for free

Already have an account? Sign in

Contents