CS Ch2

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/20

encourage image

There are no tags or description

Looks like no tags are added yet.

21 Terms

1
New cards

Describe how propagators operate

2
New cards

Construct an explanation and checker to justify propagations andverify their correctness, providing a principled safety net against implementation errors.

3
New cards

Decompositions VS Propagators

4
New cards

What are explanations:

A propositional condition that justifies why the propagation is correct in the

current state of the solver

An explanation is a propositional statement that specifies the logical reason why a

propagation or conflict occurred.

Explanations are constructed using atomic constraints, which are elementary predicates involving a single variable.

5
New cards

What are checkers

Small and independent pieces of code that verify the correctness of explanations.Because checkers are intentionally simple,

they can be trusted more readily than the often complex propagators whose behaviour they

verify.

6
New cards

What is a fixed point

A situation where no further propagation is possible.

7
New cards

Correct explanations needs to be … and ….

both valid and applicable.

8
New cards

How can we refine explanations?

By removing implicit redundancies predicates that do not contribute to the reasoning.

9
New cards

Lifted explanations

Explanations which reasoning extends beyond the specific situation in which they are generated.

10
New cards

When is a propagator idempotent

When it is guaranteed to reach a fixed point after a single application.

11
New cards

Domain consistency and Bound consistency

Bound consistency considers only the lower and upper bounds of each variable, ensuring that at a fixed point feasible full assignments exist that contain these bound values.

Domain consistency considers every value in the domain ensuring that each value participates in at least one feasible assignment.

12
New cards

What trade off is there when designing propagators?

  1. Computational efficiency: Propagators should run fast

  2. Propagation strength: Propagators should prune domains aggressively

Since the practical value

of a propagator lies in its ability to reduce the overall runtime of solving a problem, it is

important to strike the right balance between propagation strength and computational effort,

and design careful experiments to measure the effectiveness.

13
New cards

Difference Propagation explanation and conflict explanation

a1 ∧ a2 ∧ · · · ∧ an−1 =⇒ an,
where an is the propagated atomic constraint
vs

a1 ∧ a2 ∧ · · · ∧ an =⇒ ⊥

where ⊥ denotes contradiction.

Lefthandside = reason (or premise)

The reason specifies why the right hand side (the consequent) must hold.

14
New cards

When is an explanation correct?

Validity: When it is logically entailed by the constraint: every feasible assignment of the constraint must satisfy the explanation.
Applicability: when it can be used as a justification given state of the seach.

15
New cards

What do Checkers do?

Independantly verfies the explanations it produces. Implemented separately from the algorithms. The simpler the checker the easier it is to trust. Checkers are tailored to specific propagators, with checker achieving full completeness is sstill difficult. Checkers does not need to validate all possible explanations, only those produced by a specific propagation method,

16
New cards

What is decomposition

Alternative to using propagators, decompose the constraint into typically simpler constraints e.g., into linear inequalities.

17
New cards

Why is propagation better then decomposition?

A propagator may run faster than its decomposition or exploit additional problem struc-ure to achieve stronger propagation.

18
New cards

When is a problem infeasible?

When there is a conflict at decision level 0.
A conflict means some domain has become empty.

  • At level 0, no decisions have been made, so there is no choice left to undo.

  • At level 2, the conflict only rules out those two choices together. The solver backtracks and continues.

  • The solver doesn't test every assignment. One conflict can rule out many at once.


19
New cards

What is a Trail?

A stack that records every explicit change to a domain.


It separates decisions from propagations and keeps their decision levels.

  • For backtracking: the order and decision level tell the solver what to undo. It also needs the old domain values.

  • For conflict analysis: each propagation needs its reason, so the solver can trace why it happened


20
New cards

What do bound-consistent and domain-consistent mean? Why does it matter, is it necessary, and can a propagator be neither?

Definitions (once the propagator has nothing left to remove):

  • Bound-consistent: for every variable, the smallest and the largest value each appear in some feasible solution to the constraint.

  • Domain-consistent: for every variable, every remaining value appears in some feasible solution to the constraint.

The solutions must use values still in the domains. Domain-consistent always implies bound-consistent, but not the other way around.


Why it matters: it tells you how strong the pruning is guaranteed to be. Stronger pruning means less search, but usually more time per propagation.

Is it necessary? No. The solver stays correct as long as propagators never remove a feasible value and detect a violation once everything is assigned.

Can it be neither? Yes. For some constraints, reaching either level is NP-hard, so practical propagators settle for less.

Propagator

Consistency

Linear inequality

Bound

All-different with max flow and SCCs

Domain

Equality split into two inequalities

Neither

Cumulative, circuit

Neither


21
New cards

Explain decomposition and its advantages/disadvantages compared with a dedicated propagator.

What it is: replacing one constraint with several, usually simpler, constraints. The same solutions stay allowed.
Example: all-different(x, y, z) becomes x ≠ y, x ≠ z, y ≠ z.

Advantages

  1. Easy: it reuses propagators the solver already has.

  2. Always possible: it is needed when the solver has no dedicated propagator.

  3. Can help learning: its extra variables can appear in learned nogoods, which may make those nogoods stronger.

Disadvantages

  1. Can prune less: each small constraint sees only part of the problem.
    Example: x, y, z ∈ {1, 2} must all differ. No pair fails, but three variables can't share two values.

  2. Can be slow or large: it may create many constraints.
    Example: cumulative gets one resource constraint per time point. Making every duration 100 times longer creates 100 times as many. Timetabling's work stays the same.

Watch out: a decomposition is not always weaker.

Constraint

Decomposition compared with the propagator

All-different

Weaker than the domain-consistent propagator

Cumulative

Same strength as timetabling, but less efficient