Solve a constraint problem with Prolog search
8 steps · about 3 h 50 min · Intermediate
- Run first Prolog queries (guide, SWI-Prolog manual, 20 min)
This establishes the concepts the later implementation relies on.
- Read terms and clauses accurately (guide, SWI-Prolog manual, 30 min)
This adds the next capability while keeping the design explicit.
- Control conjunction and alternatives (guide, SWI-Prolog manual, 40 min)
This step turns the concept into a checkable part of the finished program.
- Understand goals as data (guide, SWI-Prolog manual, 20 min)
This establishes the concepts the later implementation relies on.
- Trace a search (guide, SWI-Prolog manual, 30 min)
This adds the next capability while keeping the design explicit.
- State finite-domain constraints (guide, SWI-Prolog manual, 40 min)
This step turns the concept into a checkable part of the finished program.
- Reuse recursive results (guide, SWI-Prolog manual, 20 min)
This establishes the concepts the later implementation relies on.
- Turn examples into tests (reference, SWI-Prolog manual, 30 min)
This adds the next capability while keeping the design explicit.