L13: Combining Search and Propagation Flashcards

1
Q

Fundamentally, how do systematic solvers work?

A
  1. Guess an assignment.
  2. Propagate consequences of that assignment.
  3. If all is well (and not done) go to 1.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is forward checking?

A

Forward checking is a strategy used in constraint satisfaction problems to efficiently prune the search space by checking the remaining domain values of unassigned variables after a variable is assigned a value.

After an assignment to xi, revise arcs from every future variable to xi once.
I.e., enforce local arc consistency on a subset of the arcs.

Forward checking guarantees to find a solution if it exists.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the advantages of forward checking?

A

We can spot dead ends earlier, and reduce the space to search (and hence the search time).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Why doesn’t forward checking need to check backwards?

A

Consider a past variable xp and the current variable xc.
When xp was assigned, arc(xc, xp) was revised.

This removed all values in the domain of xc incompatible with the assignment to xp.

When later considering an assignment to xc, all possible assignments are guaranteed to be compatible with the assignment to xp.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

When does forward checking beat backtracking?

A

If there is a constraint that cannot be satisfied, the backtracking in forward checking is more effective as it goes back potentially multiple levels of depth to satisfy the constraint.

Forward checking is guaranteed to explore a search tree smaller than or equal to backtracking. This saves the search time compared to backtracking whenever there is a wipeout of a future variable.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do we enforce arc consistency?

A

We need an algorithm that efficiently re- revises arcs as necessary.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is AC3?

A

It is an algorithm of effectively maintaining arc consistency.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

In AC3, when are arcs added to the queue?

A

If there has been an arc(xi, xj) where the domain of i has been changed, all arcs with xi are added to the queue.

Support is bi-directional.

If a value is supported on arc(x1,x2), then it is supporting some value(s) on arc(x2,x1)

Conversely: if a value is not supported on arc(x1,x2), then it is supporting no values on arc(x2,x1)

No need to revise arc(x2,x1) after revising arc(x1,x2)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the time complexity of AC3?

A

AC3 has worst-case time complexity of O(ed^3).
Where:
- e is the number of edges in the constraint graph.
- d is the maximum domain size.

Each arc(xi, xj) is revised if it enters the queue. This only happens if Dj loses a value.

Each arc can enter the queue/be revised at most d times. There are 2e arcs, so Revise() is executed O(ed) times.

Complexity of Revise() is O(d^2).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Compare forward checking with arc consistency.

A

Full arc consistency is stronger than mere forward checking.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly