Presentation is loading. Please wait.

Presentation is loading. Please wait.

Constraint Graph Binary CSPs

Similar presentations


Presentation on theme: "Constraint Graph Binary CSPs"— Presentation transcript:

1 Constraint Graph Binary CSPs
If all the constraints of a CSP affect two variables The variables and constraints can be represented in a constraint graph (constraint network) nodes represent variables edges represent constraints 1 2 3 4 5 6 G5BAIP AI Programming

2 Arc Consistency Algorithms
AC-1 algorithm Any value removed from a variable All constraints in the constraint graph are re-checked 1 2 3 4 5 6 G5BAIP AI Programming

3 Arc Consistency Algorithms
AC-3 algorithm Any value removed from a variable Only affected constraints are re-checked 1 2 3 4 5 6 G5BAIP AI Programming

4 Arc Consistency Algorithms
AC-4 algorithm Any value v removed from a variable Only those values that are supported of affected variables are re-checked b v 1 2 3 4 5 a 6 G5BAIP AI Programming

5 Correction of Lecture Slide
In slide 12, the condition of while loop was corrected as follows PROCEDURE AC-3(Z, D, C) BEGIN Achieve node consistency Construct the constraint list Q WHILE (Q is not empty) Delete item xy from Q; IF Revise(xy, (Z,D,C)) THEN Update Q to include item zx UNTIL NOT Changed Return (Z, D, C) END PROCEDURE AC-3(Z, D, C) BEGIN Achieve node consistency Construct the constraint list Q WHILE (Q is not empty) Delete item xy from Q; IF Revise(xy, (Z,D,C)) THEN Update Q to include item zx Return (Z, D, C) END G5BAIP AI Programming


Download ppt "Constraint Graph Binary CSPs"

Similar presentations


Ads by Google