Vocabulary coding helps teenagers identify the objects, possible choices and restrictions contained in a problem. A constraint satisfaction problem gives those distinctions a formal structure: variables receive values from specified domains, and constraints restrict which combinations are allowed. Unlike a procedure that simply checks a proposed answer, a constraint-solving method tries to find an assignment that satisfies the stated conditions.
Language engineering is essential because a solution can satisfy an incorrectly translated constraint while failing the intended task. EduKate’s educational approach introduces a small fictional scheduling problem, then examines ambiguity, multiple solutions, incompatible requirements and the limitations of automated synthesis. The objective is to turn a bounded stream of thought into a constructive method without confusing mathematical feasibility with real-world permission.
- Identify variables, domains and constraints before solving.
- Translate ordinary instructions into testable relationships.
- Construct and verify assignments using a bounded search.
- Distinguish one solution, multiple solutions and no solution.
- Separate feasibility, preferences, authorisation and real-world execution.
Chapter navigation
- 1. A problem contains more than a list of instructions
- 2. Specify the domain and the constraints
- 3. Worked solution: enumerate the possible arrangements
- 4. Search can use constraints before completing every assignment
- 5. Ambiguity can change the solution set
- 6. Recognise incompatible requirements
- 7. Preferences are different from hard requirements
- 8. A solution needs an independent checker
- 9. AI and civilisation zoom
- 10. Four-week constraint-solving studio
- 11. Continue learning in the eduKate vocabulary ecosystem
A problem contains more than a list of instructions
Imagine a fictional art studio with three activities: drawing D, painting P and sculpture S. The activities are to be assigned to three distinct morning time slots labelled 1, 2 and 3. Each activity must occupy exactly one slot, and each slot must contain exactly one activity. These are the initial classroom conditions.
The UC Berkeley introduction to constraint satisfaction problems explains the use of variables, possible values and restrictions to specify a problem. A teenager can represent the invented studio on paper before writing code. The point is to make each part of the instruction explicit.
Specify the domain and the constraints
Define variables D, P and S, each with domain {1, 2, 3}. Require all three values to be different. Suppose drawing must occur before painting, and sculpture cannot occupy slot 1. Translate those conditions as D less than P and S not equal to 1.
The meaning of before is important. In this invented model, it means an earlier numbered slot, not necessarily the immediately preceding slot. If the studio requires drawing immediately before painting, that is a stronger restriction. Write the distinction before searching for a schedule.
Worked solution: enumerate the possible arrangements
With three activities and three distinct slots, there are six possible orders. D-P-S satisfies both added constraints. D-S-P also satisfies them because drawing precedes painting and sculpture is not first. P-D-S and P-S-D fail the drawing-before-painting rule. S-D-P and S-P-D fail the sculpture-not-first rule; S-P-D also fails the drawing-before-painting rule.
The feasible orders are therefore D-P-S and D-S-P. Both are valid under the stated model. A learner who finds just one has demonstrated a solution, not uniqueness. A learner who checks all six can establish the complete solution set for this particular bounded problem.
Search can use constraints before completing every assignment
Instead of listing all six arrangements, begin with the possible positions of sculpture. It must be in slot 2 or 3. If sculpture is in slot 2, the remaining slots are 1 and 3, and drawing must be in 1. If sculpture is in slot 3, drawing must be in 1 and painting in 2.
This reasoning prunes choices that cannot satisfy the restrictions. Larger constraint problems may use systematic search and propagation techniques to reduce unnecessary exploration. Our paper exercise demonstrates the underlying idea without claiming to implement a sophisticated solver.
Ambiguity can change the solution set
Now suppose drawing must occur immediately before painting. In the first feasible order D-P-S, the two activities occupy consecutive slots. In the second D-S-P, they do not. The strengthened restriction therefore leaves only D-P-S.
A small change from before to immediately before changes the formal problem. Preserve both versions and explain which one reflects the intended task. A mathematically correct solution to the wrong specification is still unsuitable for the original purpose.
Recognise incompatible requirements
Starting from the strengthened specification, add a new condition requiring sculpture to occupy slot 2. The only original solution has sculpture in slot 3, so no assignment satisfies all the conditions together. For this small example, the earlier enumeration provides a direct demonstration of incompatibility.
Do not secretly relax a constraint just to return a schedule. Identify the conflicting requirements and ask which, if any, an authorised decision-maker may revise. An impossibility conclusion is valid only for the specified model and complete search or proof. Failure to find a solution in a limited search is not necessarily proof that no solution exists.
Preferences are different from hard requirements
The two original feasible schedules could have different advantages. A fictional participant might prefer sculpture earlier, while another prefers to finish painting first. Unless those preferences are established as mandatory constraints, they should not remove feasible options from the solution set.
Record the hard conditions and preferences separately. If an optimisation criterion is introduced, state its meaning and how it compares solutions. A feasible assignment is not automatically the most desirable one, and a preferred assignment is not automatically authorised.
A solution needs an independent checker
Construct a checklist that verifies each activity has one allowed slot, no two occupy the same slot, drawing precedes painting and sculpture is not first. Apply it to every candidate solution. Use ordinary, invalid and incomplete assignments, and identify which constraint each invalid case violates.
A solver and checker may share a mistaken translation of the original instruction. Inspect the natural-language source as well as the mathematical conditions. Record expected and actual results separately. The purpose of the independent check is to make errors easier to discover, not to manufacture a guarantee from a limited exercise.
AI and civilisation zoom
Give an age-appropriate AI the fictional studio specification and ask it to enumerate the feasible orders, then evaluate the strengthened and conflicting variants. Independently verify all six original permutations. Do not connect the exercise to real scheduling systems or submit private data.
Institutions use formal constraints in many kinds of resource planning, but a model cannot decide which real-world restrictions are legitimate or whether relevant practical requirements have been omitted. Portable knowledge can include a problem representation, solver method, checker and limitations. Actual deployment still depends on resources, expertise, permissions and accountable governance.
Four-week constraint-solving studio
At 13 assign objects to simple slots; at 14 state restrictions; at 15 enumerate candidates; at 16 investigate incompatible requirements; at 17 design a checker and compare search methods; at 18 document a reusable specification and its limits. These are adaptable opportunities.
Week one: construct a small fictional assignment problem. Week two: define variables, domains and restrictions. Week three: solve ordinary and conflicting versions and test each solution independently. Week four: invite a willing reader to reproduce the solution set and revise unclear definitions. Distinguish a calculated feasible solution from an actual approved plan.
