Constraint satisfaction: describe the choices before solving them
约束满足问题
Build a finite-domain model, distinguish complete solutions from local support, and verify an original scheduling example by enumeration.
constraint-satisfactionCan four activities fit into three time slots?
Consider a small teaching lab with four activities: preparation A, a sensor lesson B, demonstration C and assembly D. Each activity lasts exactly one slot and uses one of two interchangeable workstations. Slots are numbered 0, 1 and 2. Every activity must run once; an activity cannot be split across slots.
| Variable | Allowed slots | Meaning |
|---|---|---|
| A | 0, 1 | Preparation |
| B | 0, 1, 2 | Sensor lesson |
| C | 1, 2 | Demonstration |
| D | 0, 1, 2 | Assembly |
Preparation must finish before the demonstration starts, so A must have a smaller slot number than C. A and B share a presenter and cannot run together. At most two activities can occupy any slot. These are the entire rules of this hypothetical example; changing activity durations or workstation capabilities would require a different model.
The schedule (A,B,C,D) = (0,1,1,0) works. Slot 0 holds A and D; slot 1 holds B and C. The schedule (0,1,1,1) breaks the workstation limit, even though preparation finishes before C and the presenter has no clash.
A constraint satisfaction problem, or CSP, describes choices through variables, their domains and constraints on combinations of values. The task is to identify an acceptable assignment. A sequence of physical actions for reaching that assignment is a separate modeling question. Berkeley CS188, §2.1
This chapter builds and checks the model by enumerating complete assignments. Backtracking later uses the same constraints to reject partial assignments earlier.
A solution satisfies every constraint at once
Let the variables be , with explicitly finite domains . A constraint has an ordered scope and a relation containing its allowed tuples in that order. An assignment is a solution when it gives every variable an in-domain value and passes every relation:
Here means “read the values of in the order specified by scope .” Constraints can also be written as predicates; a table lists the satisfying tuples explicitly. A complete assignment may still violate constraints. These definitions, including scope and total assignments, follow the authors’ terminology in Poole and Mackworth, §4.1.
For the lab, the preparation constraint has scope (A,C) and allowed rows (0,1), (0,2) and (1,2). Changing the scope order without changing row coordinates can alter the meaning or produce out-of-domain values. For this table, reversing only the scope to (C,A) would put 0 in C and 2 in A; the constructor rejects those rows. The workstation constraint has scope (A,B,C,D) and tests the count in each slot:
The symbol equals 1 when statement is true and 0 otherwise. There are complete assignments before the constraints are checked. In general that number is
A domain already imposes a restriction. C cannot run in slot 0, whether or not a separate unary constraint says so. One variable per activity also enforces exactly one start slot for each activity. It does not enforce that different activities use different slots.
A partial assignment leaves some variables unassigned. If a fully assigned constraint is false, no extension can repair it without changing an assigned value. If every fully assigned constraint passes, the partial assignment is merely open in our implementation.
A stronger check asks whether each constraint has at least one allowed tuple agreeing with the assigned values. Different constraints may find incompatible witnesses. For example, let X, Y and Z each have domain {0,1}, with X unequal to Y and Y unequal to Z. Under X=0 and Z=1, the first relation needs Y=1 while the second needs Y=0. Each relation has its own support; there is no joint extension.
Arc consistency asks for such support for every value of a variable in each incident constraint. It still does not generally establish a complete solution. Poole and Mackworth, §4.3 explains the support condition and why nonempty arc-consistent domains can remain inconclusive. Our five-cycle example makes the distinction visible: five variables form a ring, each has domain {0,1}, and every edge requires unequal values. Every value has support across every edge. Alternating colors around five edges returns to the first vertex with the wrong color, so the whole CSP has no solution.
The requested output matters:
| Task | What would establish the result? |
|---|---|
| Find a feasible schedule | One complete assignment that passes every constraint |
| Decide whether a schedule exists | A witness for yes; exhaustive coverage or another sound proof for no |
| Count or enumerate schedules | Account for every distinct solution |
| Optimize a preference | A feasible schedule and a proof that no feasible schedule has lower cost |
Our optional preference cost is : B earns its best preference score in slot 2, and earlier D is preferred. It is not a hard constraint. The first enumerated solution costs 2; the minimum is 0, attained by three solutions. An empty solution set has no minimum-cost feasible schedule. Stopping an enumeration early establishes neither an exact count nor an unsatisfiability result.
Use complete enumeration to audit a small model
The following Python 3.10+ program uses only the standard library. Relation stores an immutable table with an explicit scope. FiniteCSP copies the supplied domains, checks their structure and enumerates complete assignments in domain insertion order. Domain values are distinct integers; an empty domain represents an impossible choice rather than malformed input. Zero-variable constraints are permitted: the allowed row () is true, while an empty allowed set is false.
status checks only constraints whose scopes are fully assigned. has_local_support checks each table separately against a partial assignment; it does not propagate domains, reconcile different witnesses or run a general CSP solver. solutions() tries the full Cartesian product, so fully consuming it provides a small correctness baseline. The generated tables in the example are original and deliberately small.
from collections.abc import Mapping
from dataclasses import dataclass
from itertools import product
from types import MappingProxyType
@dataclass(frozen=True)
class Relation:
name: str
scope: tuple[str, ...]
allowed: frozenset[tuple[int, ...]]
class FiniteCSP:
def __init__(self, domains, relations):
if not isinstance(domains, Mapping):
raise TypeError("domains must be a mapping")
copied = {}
for variable, values in domains.items():
if not isinstance(variable, str) or not variable:
raise ValueError("variable names must be nonempty strings")
if not isinstance(values, tuple):
raise TypeError("each domain must be a tuple")
if any(type(v) is not int for v in values):
raise TypeError("domain values must be integers, not bools")
if len(set(values)) != len(values):
raise ValueError("domain values must be distinct")
copied[variable] = values
self.domains = MappingProxyType(copied)
self.variables = tuple(copied)
self._domain_sets = {x: frozenset(d) for x, d in copied.items()}
self.relations = tuple(relations)
names = set()
for relation in self.relations:
if not isinstance(relation, Relation):
raise TypeError("relations must contain Relation objects")
if not isinstance(relation.name, str) or not relation.name:
raise ValueError("relation names must be nonempty strings")
if relation.name in names:
raise ValueError("relation names must be distinct")
names.add(relation.name)
scope = relation.scope
if not isinstance(scope, tuple):
raise TypeError("a scope must be a tuple")
if any(not isinstance(x, str) or x not in copied for x in scope):
raise ValueError("scope contains an unknown variable")
if len(set(scope)) != len(scope):
raise ValueError("a scope cannot repeat a variable")
if not isinstance(relation.allowed, frozenset):
raise TypeError("allowed rows must be a frozenset")
for row in relation.allowed:
if not isinstance(row, tuple) or len(row) != len(scope):
raise ValueError("row length must match scope length")
if any(type(v) is not int for v in row):
raise TypeError("row values must be integers, not bools")
if any(v not in self._domain_sets[x] for x, v in zip(scope, row)):
raise ValueError("row contains an out-of-domain value")
def _assignment(self, partial):
if not isinstance(partial, Mapping):
raise TypeError("assignment must be a mapping")
assignment = dict(partial)
for x, value in assignment.items():
if x not in self.domains:
raise ValueError("assignment contains an unknown variable")
if type(value) is not int or value not in self._domain_sets[x]:
raise ValueError("assignment contains an invalid value")
return assignment
def status(self, partial):
assignment = self._assignment(partial)
for relation in self.relations:
if all(x in assignment for x in relation.scope):
row = tuple(assignment[x] for x in relation.scope)
if row not in relation.allowed:
return "violated"
return "solution" if len(assignment) == len(self.variables) else "open"
def has_local_support(self, partial):
assignment = self._assignment(partial)
if any(not domain for domain in self.domains.values()):
return False
for relation in self.relations:
if not any(all(x not in assignment or assignment[x] == v
for x, v in zip(relation.scope, row))
for row in relation.allowed):
return False
return True
def solutions(self):
pools = (self.domains[x] for x in self.variables)
for values in product(*pools):
assignment = dict(zip(self.variables, values))
if all(tuple(assignment[x] for x in relation.scope) in relation.allowed
for relation in self.relations):
yield assignment
domains = {"A": (0, 1), "B": (0, 1, 2), "C": (1, 2), "D": (0, 1, 2)}
names = tuple(domains)
relations = (
Relation("before", ("A", "C"),
frozenset((a, c) for a in domains["A"] for c in domains["C"] if a < c)),
Relation("host", ("A", "B"),
frozenset((a, b) for a in domains["A"] for b in domains["B"] if a != b)),
Relation("capacity", names,
frozenset(row for row in product(*(domains[x] for x in names))
if all(row.count(slot) <= 2 for slot in (0, 1, 2)))),
)
model = FiniteCSP(domains, relations)
feasible = list(model.solutions())
cost = lambda a: 2 * abs(a["B"] - 2) + a["D"]
best_cost = min((cost(a) for a in feasible), default=None)
best = [a for a in feasible if cost(a) == best_cost]
print("schedules", len(feasible), "first", tuple(feasible[0][x] for x in names))
print("first cost", cost(feasible[0]), "best cost", best_cost, "best count", len(best))
print("without capacity", len(list(FiniteCSP(domains, relations[:2]).solutions())))
path_domains = {x: (0, 1) for x in ("X", "Y", "Z")}
not_equal = frozenset(((0, 1), (1, 0)))
path = FiniteCSP(path_domains, (
Relation("XY", ("X", "Y"), not_equal),
Relation("YZ", ("Y", "Z"), not_equal),
))
partial = {"X": 0, "Z": 1}
extensions = [a for a in path.solutions() if all(a[x] == v for x, v in partial.items())]
print("partial", path.status(partial), path.has_local_support(partial), len(extensions))
cycle_domains = {f"V{i}": (0, 1) for i in range(5)}
cycle = FiniteCSP(cycle_domains, tuple(
Relation(f"edge{i}", (f"V{i}", f"V{(i + 1) % 5}"), not_equal)
for i in range(5)
))
print("odd cycle", cycle.has_local_support({}), len(list(cycle.solutions())))
The output is:
schedules 15 first (0, 1, 1, 0)
first cost 2 best cost 0 best count 3
without capacity 18
partial open True 0
odd cycle True 0
The last two lines each report a local-support result of True with zero complete extensions or solutions. The odd cycle also has support for every individual variable-value pair, which the tests check separately. A successful local check must not be printed as “solved.”
For a model already stored as tables, let be the number of constraints and the sum of their arities. A safe expected-time upper bound for complete enumeration is under constant-cost integer operations and ordinary hash-table behavior. The first terms cover iterator initialization, including when an empty domain makes ; the per-assignment terms cover construction and scoped membership checks, including the empty assignment when there are no variables. This bound excludes model construction and validation. Rejection can skip later constraints. Large integers, expensive equality or adverse hashing change the cost assumptions.
The iterator’s working storage is bounded by references, excluding the stored model. Saving solutions as dictionaries adds references; the constant terms include the iterator and empty-dictionary overhead when there are no variables. Tables themselves can be large: a relation on variables with domain size may contain rows of length . The code builds the capacity table before enumeration, so its construction cost belongs in an end-to-end measurement. No timing or general speed advantage is claimed.
A correct solver can solve the wrong model
Removing the capacity relation admits 18 schedules, three of which exceed the two-workstation limit. Adding AllDifferent(A,B,C,D) has the opposite problem: it forbids all simultaneous activities and makes four activities in three slots impossible. Neither error is fixed by using a faster solver. Before running search, check that variable units, domains and constraints match the situation being described.
A global constraint describes a joint restriction over several variables, often with a dedicated implementation. AllDifferent(X,Y,Z) is semantically equivalent to all three pairwise inequalities. However, equivalent solution sets need not give equally strong local checks. Give X and Y domain {0,1} and Z domain {0,1,2}. The global relation allows only (0,1,2) and (1,0,2), so it rejects Z=0 and Z=1 immediately. Each pairwise inequality separately finds support for those values; those separate supports cannot coexist. This is a concrete comparison of support checks, not a claim that the example implements a specialized global propagator.
Some higher-arity relations cannot be replaced by binary relations on the same original variables. Consider three bits with even parity:
Each projection of onto a pair contains all four binary tuples. Joining these three pairwise projections therefore admits all eight triples, including the four forbidden ones. An exact alternative introduces a new variable T whose values identify allowed rows, then uses binary constraints to link T to each row coordinate. This preserves the original solutions after projecting away T, but writing the allowed rows can be expensive. Extra variables can also change raw solution counts unless each original solution has exactly one extension. An unconstrained extra bit doubles the count without changing the projected answers.
A constraint graph with only variable nodes and binary edges is convenient for binary models. A high-arity constraint needs its scope recorded as well, for example with a constraint node joined to every variable in its scope. A clique drawn between those variables shows co-occurrence; it does not record which tuples are legal. CS188, §2.1.1, Poole and Mackworth, §4.3
The general decision problem for explicitly listed finite domains and explicitly listed constraint tables is NP-complete. The encoding matters. A proposed assignment has polynomial length in that input and can be checked by scanning the tables, so this problem is in NP. For hardness, translate a 3-CNF formula into Boolean variables and one relation per clause, listing its satisfying assignments on at most three distinct variables. Each clause needs at most eight rows, and the CSP has a solution exactly when the formula is satisfiable. This is a polynomial reduction from 3-SAT, whose NP-completeness is stated and proved in Rafael Oliveira’s Waterloo lecture, Theorem 3.
This claim concerns the general family under that encoding. It does not say every instance is hard, prove that every algorithm needs exponential time, or assign the same complexity class to counting and optimization. A “constraint” supplied as arbitrary program code might run forever; it does not automatically satisfy the polynomial verification premise. Succinct domains and other representations also require their own input-size analysis.
Change the model before changing the solver
- In the lab schedule
(0,1,1,1), which constraint fails? How many complete assignments and feasible schedules remain if the workstation limit is omitted?
Answer: B, C and D occupy slot 1, so the capacity count is 3. The domains still produce 36 complete assignments. Removing capacity leaves 18 feasible assignments under the remaining rules, including three that violate the original capacity limit.
- For X unequal to Y and Y unequal to Z with all domains
{0,1}, explain the result ofstatusandhas_local_supportunder X=0, Z=1. Could an additional search budget turn this partial assignment into a solution without changing its assigned values?
Answer: status is open because neither scope is complete. has_local_support is True: the first relation supports Y=1, the second supports Y=0. There is no common Y, so extra search cannot produce an extension of those fixed values. The unconditioned model does have two solutions, (0,1,0) and (1,0,1).
- Replace the global
AllDifferent(X,Y,Z)relation by pairwise inequalities with domains X=Y={0,1}and Z={0,1,2}. What changes in the complete solution set and in the support check for Z=0?
Answer: Both models have exactly (0,1,2) and (1,0,2). The global table has no row with Z=0. Each binary relation does have a row compatible with Z=0 considered in isolation: X=1 supports X unequal to Z and Y=1 supports Y unequal to Z, but X and Y cannot both be 1. Semantics are preserved while this local check becomes weaker.
- The lab’s first solution costs 2. Give all solutions with minimum cost under , and explain what happens to counts if an unconstrained bit E is added.
Answer: The cost is nonnegative and is 0 exactly when B=2 and D=0. The feasible tuples are (0,2,1,0), (0,2,2,0) and (1,2,2,0). Adding E in {0,1} gives two extensions of every schedule: 30 full solutions and 6 optimal full solutions. Projecting away E recovers 15 schedules and 3 optimal schedules.
Test the representation as carefully as the algorithm
Start with a relation small enough to list. Compare the intended rule against every row, including forbidden cases. Then compare whole-model solutions against an independent formulation. Here the tests use direct slot-occupancy conditions for the schedule and a natural join of relation rows for arbitrary models, rather than calling the article’s membership checker again. They also test domain restrictions, parity encodings, auxiliary-variable counts, empty domains and zero-variable constraints.
Poole and Mackworth’s variables-and-constraints chapter is useful for checking what a symbol means and what output the task requests. Their consistency chapter provides the next step from testing assignments to reducing domains. The numerical examples and Python in this article are original; no course assignment solution, textbook figure or source code is reproduced.
To continue, study backtracking for exploring partial assignments, arc consistency for removing unsupported values, and constraint propagation for coordinating deductions. Keep the complete enumerator as an oracle for reduced test instances when changing any of those methods.
Make a prediction, then check
X, Y and Z have domains {0,1}, with X≠Y and Y≠Z. After fixing X=0 and Z=1, each relation has its own support. Does that guarantee a complete extension?
Learning objectives
- Express requirements as variables, finite domains and ordered-scope relations, and identify omitted-capacity or mistaken-AllDifferent modeling errors.
- Distinguish complete solutions, passing partial assignments and per-constraint support, and verify solution sets, counts and objectives by enumeration and natural joins.
- Explain semantic versus propagation differences in binary decomposition and state the NP-completeness claim for explicitly represented finite-table CSPs precisely.
Prerequisites & connections
Explore related knowledge →References
- CS188 — 2.1 Constraint Satisfaction Problems
University of California, Berkeley; CS188 course staff - Artificial Intelligence: Foundations of Computational Agents, 3e — 4.1 Variables and Constraints
David L. Poole; Alan K. Mackworth · 2023 - Artificial Intelligence: Foundations of Computational Agents, 3e — 4.3 Consistency Algorithms
David L. Poole; Alan K. Mackworth · 2023 - CS360 — Satisfiability & Cook-Levin, Theorem 3
Rafael Oliveira; University of Waterloo · 2024
Version1 · Editorial status: Recorded technical checks completed
View technical check record (AI)
Codex · 2026-09-05 · Codex technical check: primary-source locations, original runnable models, independent finite-state oracles, bilingual review and second-agent cross-checks; not independent human peer review.
- Reread both languages for finite domains, ordered scopes, complete solutions, open partial assignments versus per-constraint support, arc-consistent unsatisfiable five-cycles, global AllDifferent versus binary decomposition, lossy parity projections, auxiliary-variable counts, explicit-table NP-completeness and enumeration costs. Four display equations, the full Python block, six anchors and four answered exercises correspond.
- Eight independent tests passed: 1,024 schedule-domain restrictions against 81 base-three slot encodings with direct occupancy conditions; 200 random relation-table models against a natural-join oracle with 2,329 partial-assignment soundness checks. Also checked 512 AllDifferent domain combinations, 256 3-CNF clause sets, two-color cycles of 3–9 vertices, parity auxiliary encodings/counts, zero variables, empty domains and invalid inputs.
- Executed the full article code: 36 candidates and 15 solutions, first (0,1,1,0) at cost 2, optimum 0 with three optimal solutions; omitting capacity gives 18. Partial-assignment and five-cycle cases have local support True but no extension or solution. An initial test’s arbitrary greater-than-3,000 sample-count assertion failed because the fixed seed generates 2,329 partial assignments; it now checks that exact count, with no algorithm-correctness assertion relaxed.
- Both temporary locales compiled individually with the repository MDX compiler, remark-math, KaTeX strict:error/throwOnError:true and project display-math plugins, with no compiler messages or KaTeX errors; each has four display equations. Targeted stock-phrase scanning passed. Only /tmp/aiwiki-next-csp was written, with review written; no repository/shared registry edits or whole-site check/build. Checks were performed by Codex, not claimed as independent human expert review or rendered-page acceptance.
- A second Codex agent independently verified the drafts: assigning activities to distinct workstation×slot positions reproduced 15/18/0 solutions and three cost-0 optima. Compiling relations to one-hot Boolean CNF and enumerating Boolean vectors checked 256 two-relation models, 6,912 partial assignments (including reversed scopes) and 12 zero-variable/empty-domain models. The agent independently opened all four sources and reread both locales, identifying initialization/constant/empty-dictionary terms needed in time/space bounds and the out-of-domain consequence of reversing only the before scope. These were corrected and a rejection regression added without changing algorithms; final eight tests and both individual strict MDX/KaTeX compilations passed. This is a second AI technical cross-check, not human expert review.
- A second AI agent reread both complete articles, the complete program, metadata, SOURCE_NOTES and all eight tests. Checked complete assignments versus solutions, open versus extendible partial assignments, incompatible per-constraint witnesses and arc-consistent unsatisfiable five-cycles. Verified global AllDifferent versus binary solution equivalence with different support strength, lossy parity projections, and auxiliary-variable extension/counting semantics.
- Built a separate workstation-placement reference: inject four activities into distinct workstation×slot positions, then project and deduplicate schedules. Two workstations give 15 solutions; four remove the original capacity limit and give 18 with exactly three extra schedules; one gives zero under the mistaken AllDifferent restriction. Also checked 36 domain candidates, first-solution cost 2, and the nonnegative objective's zero-cost condition B=2/D=0 with three optima. Did not call the author's natural-join or base-three oracle.
- Separately compiled relations into one-hot Boolean CNF with exactly-one clauses for each variable and a clause for each forbidden row, then exhausted Boolean vectors rather than using the article's Cartesian-product membership solver. All 256 two-relation combinations, 6,912 partial assignments and 12 zero-variable/empty-domain models matched. The second relation deliberately uses reversed scope (Z,Y). Compared status, local support and complete solutions separately, without conflating local witnesses and joint existence.
- Identified and reread the author's corrections: the original time bound omitted initialization when N=0; it now includes initialization and per-assignment constants, with iterator and empty-dictionary space overhead. Reversing only the before scope violates domains; the article now explains constructor rejection and adds a regression. Checked exclusion of model storage/construction/validation, ordinary hashing and constant-cost integer assumptions, and NP membership plus a 3-SAT reduction under explicit-domain/table encoding without an exponential lower-bound claim.
- Reran all eight tests successfully on the final snapshot; separately compiled both locales for MDX syntax using @mdx-js/mdx and remark-math. Python blocks match example.py and four equations, six anchors and four answers correspond. The author separately reports strict KaTeX/project math-plugin checks; this cross-reviewer did not independently repeat strict KaTeX or browser visual QA. This is AI technical review, not human peer review. No author draft or repository was edited, and no whole-site check/build was run.
- Root integrated the complete bilingual drafts; migrated tests read only formal src/content/articles files. All 112 search checks and 109 article Python programs passed, with paired code, display formulas, major anchors and sources. Draft-stage written/temp-path notes describe their earlier phase; current hashes are registered after actual checking. No independent human peer review is claimed.
- Root integration found related articles not yet published: arc-consistency, constraint-propagation. Both locales now explicitly label their real catalogue links as article pending; teaching claims and code are unchanged.
- Scoped navigation review: arc consistency and constraint propagation now have complete bilingual articles, so the final paragraph links directly to them and removes the pending labels. Reversing those substitutions reproduces each entire prior file. Arguments, equations, code, exercises and existing review evidence are preserved.
Source locations checked:
- CS188 — 2.1 Constraint Satisfaction Problems · Actually reread §2.1 lines87–90 on variables/domains/constraints and §2.1.1 lines113–124 on arity and constraint graphs. Read lines95–106 for context; did not import the N-queens formulation, figures or the loose NP-hardness gloss at line104. Our lab is an original 4-variable/3-slot model.
- Artificial Intelligence: Foundations of Computational Agents, 3e — 4.1 Variables and Constraints · Actually reread §4.1.1 lines19–35 (clear variable meanings and assignments), §4.1.2 lines110–122 (scope, satisfaction and intensional/extensional relations), and §4.1.3 lines150–200 (complete solutions and distinct decision/search/count/enumerate/optimization tasks). Model counts, table-order examples and objective are independently constructed and tested.
- Artificial Intelligence: Foundations of Computational Agents, 3e — 4.3 Consistency Algorithms · Actually reread lines21–36 (bipartite constraint network),49–58 (per-value support),83–84 (GAC context),119–138 (nonempty arc-consistent domains may not imply a solution). The article’s has_local_support tests constraint rows against one partial assignment; it is explicitly not GAC. Arc consistency of the 5-cycle is separately checked for every variable/value. Does not reproduce Figure4.4 pseudocode or rely on its asymptotic summary.
- CS360 — Satisfiability & Cook-Levin, Theorem 3 · Actually read Definition2 and Theorem3 lines71–97, including polynomial witness verification and Circuit-SAT to3-SAT proof discussion; checked displayed update date line108 (2024-10-06). Only the established 3-SAT NP-completeness result is cited. The article independently maps each clause to a table over ≤3 distinct Boolean variables (≤8 rows), keeping a polynomial-size input and explicitly excluding arbitrary unbounded program predicates.
- CS188 — 2.1 Constraint Satisfaction Problems · Independently opened and read section 2.1 lines 87–106 and section 2.1.1 lines 113–124: variables, domains, constraints, complete goal assignments and constraint-graph arity. Confirmed the article does not depend on the page's loose NP-hardness gloss or copy its examples.
- Artificial Intelligence: Foundations of Computational Agents, 3e — 4.1 Variables and Constraints · Independently opened and read section 4.1, especially lines 19–35 for variable meaning and total assignments, 74 for product counts, 110–122 for scope and satisfaction, and 150–200 for CSP solutions and decision/search/counting/enumeration/optimization tasks. Read displayed copyright 2023 and generated date 2025-06-28 separately.
- Artificial Intelligence: Foundations of Computational Agents, 3e — 4.3 Consistency Algorithms · Independently opened and read section 4.3 lines 21–36 for variable/constraint bipartite networks, 49–58 for support at every variable value, 83–84 for GAC context, and 119–138 for inconclusive nonempty arc-consistent domains and higher-order consistency. The draft's per-partial table-support check is correctly distinguished from propagation.
- CS360 — Satisfiability & Cook-Levin, Theorem 3 · Independently opened and read Definition 2, Theorem 3 and proof at lines 71–97, and the displayed update date at line 108 (2024-10-06). Verified the cited 3-SAT NP-completeness premise; separately checked the draft's own polynomial translation to explicit relations over at most three distinct Boolean variables. No gate encoding copied.
Related topics