Forward checking

ssuserd3b76e 3,630 views 18 slides Nov 27, 2019
Slide 1
Slide 1 of 18
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18

About This Presentation

constrain satisfection problem of forword checking


Slide Content

CSP-F orward Checking Presented by , Sourav Kairy ID:171-115-128 Md. Juwel Ahmad ID:171-115-152

Constraint satisfaction problems An assignment is complete when every value is mentioned. A solution to a CSP is a complete assignment that satisfies all constraints. Applications: Scheduling the time of observations on the Hubble Space Telescope, Floor planning, Map coloring, Cryptography

CSP example: Map-Coloring Variables WA, NT, Q, NSW, V, SA, T Domains D i = {red,green,blue} Constraints : adjacent regions must have different colors e.g., WA ≠ NT, or (WA,NT) in {(red,green),(red,blue),(green,red), (green,blue),(blue,red),(blue,green)}

Goal Solutions are complete and consistent assignments, e.g., WA = red, NT = green, Q = red, NSW = green, V = red, SA = blue, T = green

Introduction Constraints between the current variable and the future variables. That it detects also the conflicts between future variables and therefore allows branches of the search tree. Forward checking is a type of filtering used in backtracking search. Useful for detecting inevitable failures early. Forward checking:

Degree heuristic Use degree heuristic Rule: select variable that is involved in the largest number of constraints on other unassigned variables. Degree heuristic is very useful as a tie breaker. In what order should its values be tried?

Minimum remaining values(variable ordering) A.k.a. most constrained variable heuristic. Rule: choose variable with the fewest legal moves . Which variable shall we try first?

Least constraining domain value(value ordering) Remaining 1 value for SA Remaining 0 value for SA Least constraining value heuristic. Rule: given a variable choose the least constraining value i.e. the one that leaves the max imum flexibility for subsequent variable assignments.

Forward Checking Example • Idea : – Keep track of remaining legal values for unassigned variables – Terminate search when any variable has no legal values

Forward Checking WA NT SA Q NSW V T

Forward Checking WA NT SA Q NSW V T

Forward Checking WA NT SA Q NSW V T

Forward Checking WA NT SA Q NSW V T

WA NT SA Q NSW V T Forward Checking

WA NT SA Q NSW V T Forward Checking

WA NT SA Q NSW V T Forward Checking

Advantages Forward checking allows us to see when problems arise as we assign a new variable and to exit early to avoid doing unnecessary work Disadvantages Forward checking does not provide early detection for all failures. Particularly, it does not detect failures between two unassigned variables.
Tags