Intelligence, Agency & Consciousness · Paper 0079

When a complete mistake knows how to repair itself

Minton, Johnston, Philips and Laird replace a carefully protected partial solution with a complete but inconsistent one. The extra mistakes reveal where a local change helps, when it merely moves a boundary, and why representation can determine whether repair looks brilliant or blind.

Intelligence, Agency & Consciousness · Paper 0079

When a complete mistake knows how to repair itself

Rajesh Ranjan Mahapatra

Minton, Johnston, Philips and Laird replace a carefully protected partial solution with a complete but inconsistent one. The extra mistakes reveal where a local change helps, when it merely moves a boundary, and why representation can determine whether repair looks brilliant or blind.

© 2026 Rajesh Ranjan Mahapatra. 30 min read

When a complete mistake knows how to repair itselfAll AI Research Library

TLDR

The argument in five moves

  1. Start complete.A value is assigned to every variable even though some constraints are violated, so the whole candidate solution can inform the next move.
  2. Repair locally.Select a conflicted variable and give it a value that minimises its conflicts with the present assignment, breaking ties randomly.
  3. Separate rule from search.Min-conflicts is a value-ordering heuristic; hill climbing, backtracking and later strategies can use it differently.
  4. Measure the domain.Good initial distance, dense informative constraints and regular structure can create useful local gradients; sparse boundaries can erase them.
  5. Keep the caveats.The method can cycle, is not complete as plain hill climbing, and fails where a small number of critical constraints require global revision.
01 · invert the usual search picture

A complete wrong answer can carry more guidance than a partial right one

Constructive constraint solving keeps every committed value consistent and extends a partial assignment. Repair search fills every slot first, then improves the inconsistent whole.

A constraint-satisfaction problem supplies variables, a domain of possible values for each variable and constraints that rule out combinations. Classical backtracking chooses a variable, assigns a consistent value and recursively extends the partial assignment. When no extension works, it retracts an earlier choice. Its virtue is logical cleanliness: the constructed prefix is always consistent. Its weakness is informational poverty: variables not yet assigned say nothing about how a candidate value fits the eventual whole.

Minton and colleagues begin at the opposite corner. Every variable receives a value, even if the result violates many constraints. The state is already a complete candidate. A repair step chooses a variable involved in at least one violation and changes its value to one that leaves the fewest conflicts with all the other assigned values. Random choice among ties prevents a fixed syntactic order from becoming destiny.

The inversion changes the search space. Constructive search moves through partial assignments of differing sizes. Repair search moves through complete assignments of fixed size, each neighbouring state differing in one variable. Completion does not mean correctness; it means that every relation can be evaluated. The algorithm sacrifices a clean invariant: nothing assigned so far is wrong: to obtain a stronger diagnostic signal: this alternative would agree with this many current commitments.

The paper does not claim that complete states are always superior. It asks when their added information is useful. A complete assignment may reveal a clear local descent direction, or it may hide the need for a coordinated global change. The experiments and statistical analysis are designed to distinguish those regimes.

Worked example 1 · four queens as two search spaces

A constructor places queens row by row. After two rows, it cannot score a column against queens that do not yet exist. A repair solver places four queens immediately. If the queen in row three attacks two others in column one but none in column four, that full-board comparison makes column four an informed repair.

Causal probe 1 · erase the unassigned variables

Turn the complete board into a consistent partial prefix. Violations disappear, but so does the evidence showing which local move agrees with most of the intended structure. The method's advantage is not being wrong; it is being wrong in a fully evaluable state.

Constructive extension compared with complete-assignment repairA clean partial tree on the left contrasts with a complete conflicted grid on the right, where one highlighted value moves to reduce violations.CONSTRUCT A CLEAN PREFIXREPAIR A COMPLETE STATEfuture variables are silent♛♛♛♛every alternative can be scored now
Figure 1. Completeness supplies comparison information even before consistency is achieved.Source scope: Minton et al. 1992, §§1 and 3.2.
02 · the machine behind the heuristic

A neural network is reverse-engineered into a symbolic rule

The paper begins not with an abstract algorithm but with the guarded discrete stochastic network used in Hubble Space Telescope scheduling.

The GDS network modifies a Hopfield-style architecture. A binary CSP variable is represented by a set of neurons, one for each possible value. Inhibitory connections encode incompatible pairs. An auxiliary guard neuron encourages at least one value neuron for each variable to remain active. On each cycle a variable's group is selected and the neuron whose output is most inconsistent with its input is flipped.

Asymmetrical coupling to guards removes the standard symmetry that supports Hopfield convergence. The network can oscillate among unstable states rather than settle. The operational answer is pragmatic: stop a run that fails to converge and start again. What fascinated the authors was not guaranteed convergence but unexpectedly good empirical performance on telescope scheduling, n-queens and some graph-colouring instances.

The analysis asks which part of this connectionist mechanism does the work. The answer is the update criterion. Reinterpreted symbolically, flipping the most inconsistent output is equivalent to changing a conflicted variable to a value that minimises conflicts with the current assignment. A simple program can therefore approximate the network without storing its O(n²) neuron-level structure.

This extraction is a methodological contribution. A successful implementation can bundle representation, dynamics, randomisation and hardware metaphor. Reproducing its behaviour with a symbolic rule separates the causal ingredient from incidental machinery. The comparison does not show that neural networks are generally reducible to heuristics; it shows that this network's measured advantage was largely captured by one conflict-informed update.

Worked example 2 · from inhibition to a count

Suppose a variable has three possible values. Their currently active neighbours create five, two and two violated binary constraints. The GDS inputs favour either of the latter neurons. The symbolic program stores the same relevant ordering as conflict counts [5,2,2] and selects randomly between the two minima.

Causal probe 2 · keep the network but choose flips uniformly

If the conflict-sensitive input is removed and every value is equally likely, the network form remains but the informative gradient vanishes. Similar performance between GDS and symbolic min-conflicts therefore supports a mechanism claim about updates, not a mystique about substrate.

The GDS network distilled into min-conflictsGroups of value neurons with inhibitory links and a guard converge visually into a small symbolic table of conflict counts.DISTIL THE BEHAVIOUR, NOT THE METAPHORGUARDvalue neuronsCONFLICT COUNTSv₁5v₂2v₃2choose a minimumconnectionist dynamics → explicit value-ordering heuristic
Figure 2. The symbolic reconstruction isolates the conflict-minimising update from the network architecture.Source scope: §§2–3.
03 · the rule and its contracts

Choose a conflict, minimise what remains, randomise ties

The compact rule is easy to state, but its exact inputs and guarantees matter.

Given a complete assignment, two variables conflict when their assigned values violate a constraint. A repair cycle first selects some variable currently involved in a conflict. It then evaluates every value in that variable's domain against the other assigned variables, chooses a value with the smallest conflict count and breaks equal minima randomly. The current value remains eligible; a step need not change the assignment if it is already one of the minima.

For binary constraints, counting conflicting variables is direct. With higher-arity constraints, how many other variables will need repair depends on the representation and counting convention. The paper explicitly limits several derivations to binary CSPs while noting that the Hubble scheduler is more general. A modern implementation should expose whether it counts violated constraints, conflicting neighbours, weighted penalties or some decomposed surrogate.

The heuristic is not the same thing as hill climbing. It orders values by their residual conflicts. The authors use it in a hill climber that repeatedly repairs a conflicted variable, and in informed backtracking that explores sequences of repairs while forbidding a variable from being repaired more than once on a branch. Hill climbing is fast but can cycle; backtracking is complete in principle but can still take impractical time to prove failure.

Variable choice is a separate policy. The basic form picks a conflicted variable at random. Later experiments combine min-conflicts value ordering with Brelaz-style or max-conflicts variable ordering. Conflating these layers makes results impossible to interpret: a change in success may come from deciding what to repair, which value to use, how to escape cycles or how the initial state was constructed.

MIN-CONFLICTS(A): choose V from variables conflicting under complete assignment A; score each value x by conflicts in A[V ← x]; choose randomly among argmin values; return A with V assigned the chosen value.

Worked example 3 · ties are part of the algorithm

A queen currently has four conflicts. Columns two, five and seven would leave one conflict each. Deterministically choosing the leftmost can force the same cycle on every run. Random tie-breaking makes three equal-scoring repairs genuinely available while preserving the minimum contract.

Causal probe 3 · exclude the current value

Forcing a move seems energetic, but it changes the stated heuristic. If the present value is tied for minimum, compulsory change may worsen longer-run behaviour or create a two-state oscillation. Repair means minimise current conflicts, not necessarily move.

A conflicted queen chooses among minimum-conflict columnsAn eight-column row shows scores above candidate positions, with three tied minima highlighted and a die indicating random tie-breaking.ONE VARIABLE · EIGHT CANDIDATE VALUES31241213♛argmin = {2, 5, 7} · choose one at random
Figure 3. A repair step has two clauses: minimise conflict count and randomise among equal minima.Source scope: §3.2 and footnote 2.
04 · initialisation is part of the result

The starting assignment determines whether repair begins near a solution

The dramatic n-queens result is not produced by repair alone. A greedy preprocessing pass supplies a complete assignment with remarkably few conflicting queens.

For n-queens the program represents one variable per row and one value per column, so row constraints are satisfied by construction. During initialisation it visits the rows and places each queen in a column that conflicts with the fewest previously placed queens, breaking ties randomly. The repair phase then selects a conflicted queen and moves it within its row to a minimum-conflict column.

The paper reports that the mean number of conflicting queens after preprocessing grows slowly: from 3.11 at n=10 through 7.35 at 100 and 9.75 at 1,000 to 12.80 at one million. By contrast, a random assignment begins with conflicts that grow roughly linearly. When the GDS network receives the greedy program's initial states, its performance becomes comparable to the symbolic hill climber; when the hill climber receives random states, its repairs grow linearly like the network's original behaviour.

This comparison identifies an interaction rather than a single hero. Initialisation controls the distance and conflict geometry of the starting state. The repair rule controls how information in that state becomes a local move. Efficient counters control the cost of evaluating moves. Reporting only the final method name would erase the mechanism that made the scaling curve possible.

Distance d in the later model means the number of variable values that must change to reach the designated solution, not simply the number of violated constraints. A board may violate only a few constraints yet be far from any solution, or violate many constraints that one change removes. Greedy initialisation is useful when it reduces the more relevant repair distance or creates reliable local evidence, not merely when it makes a dashboard count look small.

Worked example 4 · twelve conflicts can be close

On a million-row representation, twelve conflicted queens are negligible only if their positions can be corrected without displacing a macroscopic part of the board. The reported success shows that the particular n-queens structure makes those residual conflicts locally repairable.

Causal probe 4 · compare a greedy start with a random start

Keep the repair code fixed and alter only initialisation. Repairs then shift from roughly constant under the reported greedy starts to growth with n under random starts. The causal lesson is that preprocessing belongs in the algorithmic specification and in every fair benchmark.

Greedy initialisation enters a shallow repair basinTwo paths descend a conflict landscape: a random start begins far away while a greedy complete assignment begins near a solution basin.INITIALISATION CHOOSES THE BASINrandomgreedy0same repair rule · radically different starting information
Figure 4. Greedy preprocessing and local repair form a coupled procedure, not two interchangeable details.Source scope: §§4.1 and 5.1.
05 · n-queens evidence

About fifty repairs survive six orders of magnitude

The result is striking, carefully measured and narrower than the slogan that min-conflicts solves NP-complete problems.

The authors ran each compared program one hundred times for n from ten to one million. A run was capped at 100n queen movements and a capped run was charged the whole allowance. Standard constructive backtracking becomes ineffective by n around 1,000. Most-constrained backtracking is highly variable and expensive. The min-conflicts hill climber averages about 57 repairs at n=10, 55.6 at 100 and between 48.3 and 48.8 from one thousand to one million.

Informed repair backtracking does even fewer moves in the table: roughly 25 to 31 beyond n=100: and for those large n runs never needs to repair a queen twice. Yet moves are not total time. Each ordinary repair scans candidate columns and costs O(n). With the approximately constant number of repairs, runtime grows approximately linearly. The unoptimised program reportedly solves one million queens in under four minutes on a SPARCstation 1.

An optimised implementation first searches empty columns for a zero-conflict destination and, failing that, samples positions likely to have one conflict. This reduces the reported million-queen average below a minute and a half. The number is historical evidence on a named implementation and machine, not a timeless hardware benchmark.

The task itself has analytic linear-time constructions, and other contemporary heuristics also solve it quickly. The experiment demonstrates that a general repair idea can exploit n-queens structure far better than the tested constructive baselines. It does not prove that n-queens is intrinsically hard, that all CSPs share the scaling curve or that local search replaces complete reasoning.

nConflicting queens after greedy initialisationMean hill-climb repairsMean informed-repair moves
103.1157.046.8
1007.3555.625.0
1,0009.7548.830.7
10,00010.9648.527.5
100,00012.0252.827.8
1,000,00012.8048.326.4

Worked example 5 · count operations, not just repairs

Fifty repairs at n=1,000 and fifty at n=1,000,000 are not equal workloads if each move inspects n columns. The stable repair count supports an approximately O(n) runtime only after the per-repair O(n) cost is restored.

Causal probe 5 · use the analytic construction

A specialised pattern can generate an n-queens solution directly. That does not falsify the min-conflicts result; it changes the research question from general heuristic repair to exploiting a closed-form domain construction.

Repair counts remain almost flat as n growsA log-scale horizontal axis runs from ten to one million queens while repair counts stay near fifty and initial conflicts rise slowly toward thirteen.REPAIR COUNT IS NOT BOARD SIZE1010²10³10⁴10⁵10⁶repairs ≈ 50initial conflicts ≈ 3→13problem size n on logarithmic axis
Figure 5. The flat repair curve depends on greedy initialisation and hides the O(n) work of an ordinary repair.Source scope: §4.1, Tables 1–2 and Figure 3.
06 · Hubble scheduling

Representation turns hidden consequences into visible conflicts

The practical application is not a toy board but SPIKE, a long-term scheduler for a scarce scientific instrument.

The paper describes between ten thousand and thirty thousand astronomical observations per year, constrained by power, priority, orbital conditions, moving bodies, stray light and temporal relations. An earlier system was estimated to require more than three weeks to schedule one week of observations. SPIKE decomposed the problem: its long-term component assigned roughly a year's exposures to multi-day bins, while separate techniques produced detailed short-term commands.

Some observations must precede calibrations or target acquisitions; some occur at fixed times or phases; some repeat regularly or within a specified interval. Hard constraints cannot be violated, while soft constraints express operating preferences and scientific goals. In the reported network logic, hard constraints determine the least-conflicted destinations, and soft constraints break ties.

SPIKE explicitly computes the transitive closure of temporal precedence. If A precedes B and B precedes C, it stores A precedes C as well. The extra edge is logically redundant but heuristically informative: a move that disrupts an important chain accumulates multiple visible conflicts. Representation thereby amplifies critical consequences into the local score.

The symbolic min-conflicts scheduler matched the network on representative SPIKE data and ran about an order of magnitude faster, though the authors warn that language and implementation differences prevent a precise causal attribution. Its simplicity reduced space overhead, enabled efficient C code and made modifications easier when transferring the scheduler to related telescope problems.

Repair also fits dynamic scheduling. When an event invalidates part of an existing schedule, a constructor may discard a large plan; a repair system can preserve unaffected assignments and revise the damaged region. This is a domain-level advantage separate from raw benchmark speed: the state already resembles the artefact that human schedulers must inspect and modify.

Worked example 6 · transitive closure as heuristic engineering

A move places C before A. If only A≺B and B≺C are stored, the assignment registers direct violations but may understate the long-range reversal. Storing A≺C makes that consequence explicit, increasing the penalty of moves that invert the whole chain.

Causal probe 6 · remove inferred precedence edges

The feasible schedules remain the same, but the conflict landscape becomes flatter. This separates logical equivalence from heuristic equivalence: two encodings can define identical solutions while guiding local repair very differently.

Transitive temporal constraints sharpen a Hubble scheduling repairTasks A, B and C sit on a timeline with direct precedence arrows and a highlighted transitive A-to-C arrow, while an exposure card moves to a lower-conflict bin.MAKE TEMPORAL CONSEQUENCES COUNTABCexplicit A ≺ Cexposure repairhard constraints choose minima · soft constraints break ties
Figure 6. Redundant closure edges leave feasibility unchanged while strengthening local conflict information.Source scope: §§4.2 and 6.
07 · graph colouring as a negative result

Dense constraints guide; sparse boundaries can merely wander

The authors do not present min-conflicts as a universal winner. Their three-colouring experiments expose a domain where constructive Brelaz search is better.

Solvable graphs were generated by first dividing n vertices among three colour classes and then adding edges only between classes. Sparse instances use m=2n edges, giving average degree four. Dense instances use m=n(n−1)/4. The GDS network and min-conflicts hill climber behave similarly: dense graphs converge quickly, with mean transitions growing roughly linearly, while success on sparse graphs under a 9n step limit declines sharply with n.

Dense planted graphs are overconstrained enough that an incorrect colour receives strong local evidence. Many neighbours vote against it, and a corrective colour stands out. Sparse graphs near the hard underconstrained/overconstrained boundary can contain two large regions that are internally consistent under different colour permutations. Only a narrow interface conflicts. A local repair pushes that boundary left, then right, without revealing which global convention should win.

Brelaz's constructive rule chooses the uncoloured vertex with the fewest consistent colours, breaking ties by greatest degree in the uncoloured subgraph. It decisively outperforms the repair variants on the sparse instances. Using Brelaz to initialise min-conflicts improves repair, and solves every tested dense instance during initialisation, but does not erase the sparse disadvantage.

The paper also tries informed repair backtracking and a hybrid Brelaz/min-conflicts procedure. The hybrid is more likely than Brelaz to finish without backtracking after initialisation, yet its difficult cases backtrack more and its total time grows faster. Publishing this mixed result is evidence fairness: a heuristic should be judged across the instance structures that expose both its gradient and its blindness.

For each size between thirty and 180, the network study used three instances and three thousand runs per graph; the symbolic reproduction followed the same design. A later comparison used eight graphs per size and one hundred runs per graph. These sample details matter because graph generators produce difficulty variation that a single average can hide.

Worked example 7 · two correct regions, one wrong interface

The left half uses red–green–blue labels; the right half uses the same valid colouring with red and green swapped. Each half is consistent. Three crossing edges conflict. Recolouring one boundary vertex can shift the seam without selecting a single global permutation.

Causal probe 7 · add more cross-region edges

The feasible planted colouring remains, but more neighbours communicate which permutation aligns the regions. Dense connectivity can improve min-conflicts because it increases diagnostic evidence, not because more constraints mechanically make every search problem easier.

Dense and sparse colour graphs create different local guidanceA dense graph on the left has many constraint edges pointing to a corrective colour; a sparse graph on the right has two consistent regions separated by a wavering boundary.DENSE: MANY LOCAL VOTESSPARSE: A MOBILE SEAMincorrect value is conspicuousboundary vacillatessame heuristic · different information geometry
Figure 7. Connectivity changes how reliably conflict counts identify a globally useful repair.Source scope: §4.3, Figures 4–6.
08 · a model of repair information

Distance, constraint degree, conflict probability and domain size shape mistakes

The paper's theory asks a strategy-independent question: when a variable is repaired, how likely is min-conflicts to choose the solution value?

The simplified model has n variables, k values per variable, exactly c binary constraints incident on each variable and one solution. For a complete assignment, d is the number of variables whose values must change to reach that solution. When repairing V, one candidate is correct and k−1 are incorrect. The correct value can conflict only with variables currently assigned incorrectly, so it has at most d conflicts. An incorrect value can conflict across as many as c neighbouring variables.

Assume an incorrect value conflicts with an arbitrary neighbour's assigned value independently with probability p. Its conflict count has expectation pc. If every incorrect candidate has more than d conflicts, the solution value must win. Hoeffding's inequality bounds the chance that an incorrect value falls at or below d; a union bound across k−1 wrong candidates yields the paper's qualitative mistake bound.

The expression predicts lower mistake probability as connectivity c grows, as p grows, as the domain k shrinks or as distance d becomes small relative to expected wrong-value conflicts. This explains why a good initial assignment and dense informative constraints can help. It also explains why counting violations is not identical to distance: the proof refers to the number of wrong variables, a hidden quantity in ordinary use.

The assumptions are intentionally stark. Real conflicts are dependent, variables have unequal degrees, problems have many solutions and a heuristic never knows which solution defines d. The result is therefore not a runtime guarantee. It is an explanatory lens that connects observable domain statistics to the information content of a local score.

For d < pc: Pr(an incorrect value has at most d conflicts) ≤ exp[−2(pc−d)²/c]. Across k−1 incorrect values: Pr(repair mistake) ≤ (k−1) exp[−2(pc−d)²/c].

Worked example 8 · dense evidence

Let c=60, p=0.4 and d=5. Wrong values expect 24 conflicts while the correct value can conflict with at most five wrong variables. A wrong value must undergo an unusually large downward fluctuation to compete, so min-conflicts is strongly informed.

Causal probe 8 · correlate all constraints

If sixty constraints are copies of one latent relation, their votes are not sixty independent observations. The Hoeffding calculation overstates concentration. Degree helps only when additional constraints contribute sufficiently distinct evidence.

Correct and incorrect value conflict distributions separate near a solutionA narrow correct-value distribution near low conflict counts separates from an incorrect-value distribution centred at pc, with d marking the mistake threshold.WHEN LOCAL CONFLICT COUNTS BECOME EVIDENCEdcorrect candidateincorrect candidates · mean pcmistake requires a wrong candidate to enter the ≤ d tail
Figure 8. The simple bound formalises a separation argument, not a universal convergence proof.Source scope: §5.1.
09 · from one bound to a stochastic walk

Improvement and damage must be modelled separately

The augmented analysis decomposes a repair into variable selection and value selection, then treats distance as a Markovian walk.

Four conflict distributions distinguish whether a variable currently holds its solution value and whether a candidate value is correct. They support two movement probabilities. Distance falls only when the variable selector chooses a wrong variable and the value selector changes it to its correct value. Distance rises only when a correct variable is selected because another wrong variable makes it appear conflicted, and the value selector changes it away from the solution.

The authors compare three value rules: min-conflicts uses the full conflict count; random-conflicts distinguishes only zero from non-zero; random choice ignores conflict information. For a sparse random three-colouring model, all three are more likely to worsen than improve the state, though min-conflicts is least poor. For the dense model, min-conflicts approaches reliable correct-value selection while the coarser rules tend to worsen the state.

Empirical checks average 200 generated states at each tested distance and agree closely with the model for those random problem classes. Agreement matters because the formal assumptions: especially independent conflicts and a distinguished solution: do not hold automatically. The n-queens approximation gets the trend right but is quantitatively limited by a simplified three-conflict assumption and the presence of many solutions.

The ratio of move-toward to move-away probabilities is a compact diagnostic. Above one, local repair has drift toward a solution; below one, it has drift away. A single best-looking move cannot establish that ratio. It is a property of distributions across states and of both selection stages.

P(d→d−1) = P(select wrong variable) × P(select correct value | wrong). P(d→d+1) = P(select correct variable) × P(select wrong value | correct). P(d→d) is the remainder.

Worked example 9 · the blamed innocent variable

Variable A has its solution value, but wrong variable B creates a violated constraint between them. If the selector picks A and repair moves it, distance increases even when the total visible conflict count stays flat. The analysis retains this failure mode.

Causal probe 9 · evaluate only accepted improvements

Discarding steps that preserve or worsen distance conditions on success and inflates the apparent gradient. The three-way transition ledger is required to reason about long-run drift.

Repair distance moves toward, stays, or moves away from solutionA central distance state d has arrows to d minus one and d plus one, with the forward and backward probabilities decomposed below.A REPAIR IS A THREE-WAY TRANSITIONd−1dd+1wrong variable × correct valuecorrect variable × wrong valuedrift ratio = P(toward) / P(away)greater than one is useful evidence, not guaranteed arrival
Figure 9. Variable selection can mistakenly target a correct value, so improvement and damage require distinct terms.Source scope: §§5.2–5.6.
10 · two asymptotic regimes

Poisson sparsity drifts away; Gaussian density points home

The limiting distributions explain why increasing problem size can make one family easier and another less likely to succeed under a linear step budget.

In the sparse Poisson limit, pairwise conflict probability shrinks like 1/n while the expected number of conflicts remains bounded. Performance depends mainly on the incorrect fraction d/n, not size alone. For the hard sparse three-colouring model, the probability of moving away exceeds the probability of moving toward. A bounded random walk therefore drifts away from the absorbing solution state, and the chance of reaching it within a number of steps proportional to n declines exponentially.

In the dense Gaussian limit, an incorrect value's expected conflicts grow linearly with n and its distribution concentrates. For n much larger than d, min-conflicts chooses correct values with probability approaching one, selects an incorrect variable with probability approximately d/n and almost never moves away. The expected wait to reduce distance from d to d−1 is approximately n/d.

Summing those waits from initial distance d₀ gives n times a harmonic sum, approximately n(ln d₀+γ). Thus the expected repairs are linear in n and only logarithmic in starting distance under the stated limiting premises. This is a conditional theoretical story, not the same as the empirical near-constant repair count produced by greedy n-queens initialisation.

The contrast overturns a simple fewer-constraints-is-easier intuition. Underconstrained, overconstrained and phase-boundary instances differ. Dense planted instances can be easy because wrong values are exposed by many constraints; sparse instances can be hard because local counts cannot coordinate large consistent regions. Instance generation and representation are therefore part of any scaling claim.

Worked example 10 · harmonic repair time

If the dense-limit chance of reducing d is d/n, correcting the last wrong variable takes about n steps on average, the second-last n/2, and so on. The slow final corrections dominate the harmonic sum even though moving away is negligible.

Causal probe 10 · hold mean degree fixed while n grows

The system stays in the sparse regime; added variables do not add evidence to a candidate value. Importing the Gaussian conclusion would confuse larger problem size with growing diagnostic connectivity.

Poisson and Gaussian conflict regimes have opposite repair driftA sparse Poisson panel shows a wandering path moving away from zero, while a dense Gaussian panel shows a directed path descending toward zero with harmonic waiting times.POISSON · SPARSEGAUSSIAN · DENSE0drift away · success falls0toward zero · wait ≈ n/dconnectivity controls whether conflict counts carry direction
Figure 10. The limiting regimes connect local score distributions to global random-walk behaviour.Source scope: §§5.7–5.8.
11 · executable laboratory

Repair a complete n-queens assignment

The laboratory keeps one queen in every row, highlights conflicted queens and exposes how initialisation, tie-breaking and restarts affect the route.

State
Last repair
Exact conflict pairs

Each board is a complete assignment: array position is a row and its integer value is a column. That representation makes the one-queen-per-row constraint structural. Conflicts therefore mean shared columns or diagonals. A red outline marks a queen currently attacking at least one other queen, but the live state and pair total make colour non-essential.

Single repair shows the chosen row, old and new columns, minimum local score and all tied minima. Run mode allows up to 120n repairs per restart and twenty-four starts. This escape policy is explicit rather than silently attributed to the original value rule. Changing the seed changes all tie choices reproducibly.

The audit enumerates 1,024 deterministic eight-queen starts. It validates the final board with an oracle independent of the solver's stopping message, checks one in-range queen per row after every initialisation and repair, and recomputes the minimum score for every chosen destination. Passing these tests establishes implementation contracts, not a proof for every n or every CSP.

Worked example 11 · one move, two accounting systems

Select a red-outlined queen. The value rule scores every column against the other rows, while the display counts attacking pairs globally. Moving one queen can remove several pairs, preserve the total or move conflict elsewhere; the chosen destination is only guaranteed locally minimal for that queen.

Causal probe 11 · switch to random complete initialisation

The same rule usually needs more moves and restarts. This interactive intervention reproduces the paper's separation between starting distance and repair policy without treating one fortunate seed as evidence.

12 · limits, fairness and modern reading

A local minimum can be a cycle, a seam or a misrepresented priority

The method is most valuable when its failure modes remain attached to its success stories.

Plain hill climbing can fail to terminate. Random tie-breaking changes the path but does not prove escape. A restart policy converts persistent cycles into repeated trials, still without completeness. Informed backtracking is complete for finite search under its rules, yet a complete method can be computationally useless on a large unsatisfiable instance.

A few critical constraints amid many weak ones can defeat raw conflict counting. The paper's university-course example places a course in a year when it is unavailable; if that course is a prerequisite for many later courses, repairing it requires broad revision. A state may satisfy almost everything while being structurally far from feasible. Weighting, explanations, tabu memory, breakout penalties or larger neighbourhoods can help, but each changes the algorithm and evidence burden.

The theoretical model assumes independent conflicts and one solution. Structured tasks violate independence; n-queens has many solutions. The model omits initialisation and path-specific cycles. Its successful fit to selected random ensembles supports those comparisons, not an unqualified law of all CSPs.

The paper's comparison with a neural network is also bounded. Similar performance across three domains suggests min-conflicts captures the GDS network's critical search behaviour. It does not establish functional identity at every state or say that all learned systems reduce to a human-readable rule.

Finally, optimisation objectives carry values. Hubble hard and soft constraints encode scientific priorities and safety rules. A solver that efficiently minimises the supplied conflict score does not validate who selected those priorities, whose observations are displaced or whether all real constraints are represented.

Worked example 12 · one critical prerequisite versus twenty preferences

A four-year study plan violates one prerequisite chain and twenty minor time preferences. Moving a course to satisfy ten preferences can lower the count while making graduation impossible. Unweighted min-conflicts follows the supplied score faithfully; the representation is at fault.

Causal probe 12 · duplicate a critical relation through closure

Making consequences explicit may correctly strengthen local evidence, but arbitrary duplication can also smuggle weights into a nominal count. Every derived edge needs a semantic justification and a documented counting policy.

Evidence boundary

A complete assignment knows nothing phenomenally. It contains evaluable relations from which a program computes a score. Repair competence is evidence about search architecture, not subjective awareness, frustration or intention.

Claim ledger

What the evidence does and does not establish

ClaimEvidenceScope guard
Symbolic min-conflicts captures the useful GDS behaviour.Similar performance patterns on n-queens, HST scheduling and dense/sparse three-colouring.Behavioural approximation on tested domains, not general equivalence of neural and symbolic systems.
Greedy-start n-queens repair scales unusually well.One hundred runs per size, ten through one million; around fifty hill-climb repairs after preprocessing.Special representation, greedy start, named implementations and historical hardware.
Dense constraints can improve guidance.Dense planted three-colouring and the statistical separation of conflict distributions.Requires informative, sufficiently independent constraints; density alone is not a universal ease measure.
Sparse three-colouring is a counterexample.Falling success under 9n steps; Brelaz backtracking performs better.Generated graph ensemble and tested sizes n=30–180.
The theory explains repair tendencies.Hoeffding bound, conflict-distribution model and Poisson/Gaussian limits with empirical checks.Independence, regularity and solution assumptions; no unconditional convergence theorem.
Two comprehensive reviews

Fidelity, teaching and implementation review

Review one: scholarship. The reconstruction preserves the complete-versus-partial assignment contrast, GDS origin, exact min-conflicts rule, current-value eligibility, binary/general-CSP distinction, separation of value ordering from search strategy, greedy n-queens initialisation, one-hundred-run table, historical timings, SPIKE decomposition, hard/soft constraints, transitive closure, sparse/dense graph generator, 9n bound, Brelaz counterexample, hybrid result, Hoeffding mistake bound, transition decomposition, Poisson/Gaussian limits, model caveats and discussion of critical constraints.

Review two: teaching and execution. Ten paper-specific SVGs each carry a unique title, description, caption and source scope; motion is disabled by reduced-motion preference. Twelve worked examples and twelve causal probes target load-bearing mechanism claims. The laboratory separates initialisation from repair, marks conflicts redundantly with outline and state text, and tests 1,024 deterministic runs rather than showcasing one easy seed.

Evidence and AI-telltale review. No universal NP-hard-solved claim survives. Repair counts are separated from per-move cost; the million-queen timing retains machine and optimisation context; Brelaz's victory on sparse graphs is given equal prominence; symbolic extraction is not inflated into a substrate thesis; knowledge and intention remain explicitly operational metaphors.

Accessibility and responsive review. Colour is redundant with labels, shapes and conflict totals; form controls have visible labels; changing results use a live region; the board has a textual state summary; tables scroll at small widths; grids collapse at 900 and 600 pixels. The executable oracle independently checks final validity, the one-queen-per-row invariant and the argmin value rule.

Memory studio

Twelve cards for reconstruction

Complete assignmentEvery variable has a value; constraints may still be violated.
Repair spaceNeighbouring states differ in one variable value, not assignment length.
Min-conflictsChoose a conflicted variable and a value with minimum residual conflict.
Tie-breakingRandom choice among equal minima is part of the rule.
Initial distance dNumber of variable changes needed to reach a designated solution.
GDS extractionConflict-informed neuron updates become explicit symbolic value ordering.
Hill climbingFast local repair that can cycle and is not complete.
Informed backtrackingComplete assignment guides a backtracking search through repairs.
Conflict geometryConnectivity and representation determine whether counts reveal direction.
Poisson regimeBounded mean conflict; sparse information; drift may point away.
Gaussian regimeGrowing concentrated counts; incorrect values become conspicuous.
Critical constraintA low-count violation whose repair may require global revision.
Place in the canon

From bounded recomputation to heuristic repair

Canon 0078 repeated whole depth-limited traversals because shallow recomputation was cheaper than storing an exponential frontier. Canon 0079 makes a complementary bargain: it stores a complete assignment, including its errors, because the resulting conflicts can make the next correction cheap. Both papers reject a simple equation between repeated work and waste; value depends on which information is expensive to preserve or reconstruct.

Canon 0077 propagated local impossibility before search. Minton and colleagues instead begin with violated constraints and let their current pattern guide search. The contrast exposes a central design choice: compile consequences into domains, preserve them in a complete state, or discover them through traversal.

Canon 0080, Sabin and Freuder's “Contradicting conventional wisdom in constraint satisfaction” (1994), continues the empirical challenge to simple heuristics by examining when variable-ordering intuitions fail.

Interpretive synthesis

A mistake becomes useful only when the representation makes its causes local

The conceptual reversal is deeper than trying a greedy heuristic. Constructive search treats inconsistency as a boundary never to cross. Repair search treats inconsistency as a measurement instrument. Violations are not merely defects; their distribution is the data from which a move is selected.

That instrument is designed, not discovered ready-made. One variable per queen row removes row conflicts structurally. Transitive closure makes long-range scheduling consequences count locally. Dense graph constraints cause neighbours to vote strongly. The same objective solution set can therefore generate different search landscapes under different encodings.

The paper's neural-network analysis is an early example of mechanism extraction. Instead of accepting an opaque success, the authors construct a simpler symbolic rival, match qualitative behaviour across positive and negative cases, then formalise when the shared update signal should work. The negative sparse-graph case is especially important: a rival that matches only wins has not explained the original system.

Repair also separates solution identity from construction history. A complete assignment can be revised without replaying the decisions that produced it. This makes dynamic rescheduling natural, but it also raises governance questions: local preservation may entrench historical choices unless the scoring system distinguishes protected commitments from accidents.

The general lesson is conditional. Local improvement is powerful when violations expose correctable causes, when a good initial state is available and when critical structure is represented in the score. Without those conditions, a complete mistake may provide confidence without direction.

Publication brief

What this companion adds

This companion reconstructs all seven substantive sections and the appendix-level theory of Minton et al.'s 45-page article. It joins the GDS network origin to the symbolic rule, keeps value ordering separate from variable choice and search strategy, restores the n-queens sample design and historical runtime context, and treats Hubble scheduling and graph colouring as distinct evidence regimes.

The statistical material is taught in two layers: a qualitative Hoeffding mistake bound and a transition model whose Poisson and Gaussian limits predict opposite drift. The catalogue's supplied DOI suffix is corrected against the journal article itself: the verified article DOI is 10.1016/0004-3702(92)90007-K.

Ten animated accessible SVGs, twelve examples, twelve probes, twelve memory cards, a claim ledger and a deterministic n-queens laboratory make the method auditable. The laboratory's 1,024-case review checks actual solutions, structural invariants and the minimum-conflict choice contract.

References

Primary and contextual sources

  1. Steven Minton, Mark D. Johnston, Andrew B. Philips and Philip Laird, “Minimizing conflicts: a heuristic repair method for constraint satisfaction and scheduling problems”, Artificial Intelligence 58(1–3), 161–205 (1992). Publisher DOI.
  2. NASA Technical Reports Server, Minimizing conflicts, NASA-TM-108121 / FIA-92-21, record 19930006097 (1992). Archival record.
  3. Hans-Martin Adorf and Mark D. Johnston, “A discrete stochastic neural network algorithm for constraint satisfaction problems”, International Joint Conference on Neural Networks (1990), the GDS source discussed by Minton et al.
  4. Daniel Brélaz, “New methods to color the vertices of a graph”, Communications of the ACM 22(4), 251–256 (1979).
  5. Peter Cheeseman, Bob Kanefsky and William M. Taylor, “Where the really hard problems are”, IJCAI-91, 331–337 (1991).
  6. Bart Selman, Hector J. Levesque and David G. Mitchell, “A new method for solving hard satisfiability problems”, AAAI-92, 440–446 (1992).