Constraint Propagation

Definition

Constraint propagation repeatedly applies relationships among variables and their possible values. When one option is removed, check whether dependent options still have support. Keep propagating reductions until nothing changes or a contradiction appears.

Core rule: List each option set and the constraints linking them. After a change, follow those links and remove unsupported options until no new removals occur. Trace an empty set back to the constraints that created it.

Say your neighborhood's Saturday talks use a ground-floor room that has thirty seats and is wheelchair accessible. The room upstairs seats fifteen and you have to take the stairs. Each room has a morning slot and an afternoon slot, four talks in all.

The accessible travel speaker uses a wheelchair and needs the room downstairs, so you give her the morning slot. She could have used either time, but after the posters come back, you discover the photography teacher can only come in the morning. Twenty people signed up and the fifteen-seat room is all that's left.

Even if you fill every chair upstairs, five people will still be standing. Where did the schedule go wrong?

That's where constraint propagation helps: settle one choice, then follow the rules to see which other choices that rules out. Let's schedule Saturday again, and see what to do if we run out of options.

How it works

Before we redo the schedule, look at where the idea came from. In the early 1970s, artificial intelligence researcher David Waltz was teaching computers to read line drawings of blocks. A line could stand for several different kinds of edge.

He had the computer check whether each possible reading fit the readings of the lines it touched. Drop the ones that have no compatible neighbor, then check whatever else they connect to. Most possibilities disappear quickly, leaving only a few to try.

  1. 01 · List option sets Write down the remaining choices for times, places and resources.
  2. 02 · Remove unsupported options Check whether each candidate still has a compatible partner.
  3. +1 more mechanism steps & animation in the app

When it fails & limits

A schedule can look fine one square at a time and still give you trouble. It helps to know what to do when the crossing out stops.

✦ Unlock full lesson in ConceptFlow

Unlock the full Constraint Propagation lesson in ConceptFlow

You’ve read the core idea and opening case. Get the ConceptFlow app to continue through the full breakdown, failure modes, 5-minute audio lesson, and decision practice.

  • ▸5-minute English & Mandarin audio lesson
  • ▸5 more deep-dive case & mechanism insights
  • ▸All 5 failure boundaries & counter-examples
  • ▸4-point decision checklist + 6-step practice

Tap a store button on mobile, or scan with your phone camera on desktop.