Constraint Graph - PowerPoint PPT Presentation

1 / 5
About This Presentation
Title:

Constraint Graph

Description:

... the condition of while loop was corrected as follows G5BAIP AI Programming Constraint Graph Binary CSPs If ... G5BAIP Artificial Intelligence Programming ... – PowerPoint PPT presentation

Number of Views:89
Avg rating:3.0/5.0
Slides: 6
Provided by: rxq8
Category:

less

Transcript and Presenter's Notes

Title: Constraint Graph


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
3
2
4
5
6
2
Arc Consistency Algorithms
  • AC-1 algorithm
  • Any value removed from a variable
  • All constraints in the constraint graph are
    re-checked

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

1
3
2
4
5
6
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
3
2
4
5
a
6
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 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 UNTIL NOT Changed Return (Z, D, C) END
Write a Comment
User Comments (0)
About PowerShow.com