Ai 6
Ai 6
• Stochastic Games
• Monte Carlo Tree search
• Constraint Satisfaction Problems (CSPs)
This week
• When same resource is required for two di erent tasks, can’t overlap in time
— Disjunctive constraint
ff
A constraint can have precedence over the other task
• Lets consider an assembly problem for automotive industry
• Install AXELS, each axel installation is in 10 minutes
• Install WHEELS, each wheel needs 1 minute
• Tighten their NUTS, each needs 4 minutes
• A x HUBCAPS, 1 minute each
• INSPECT for proper Installation, 3 minutes
• Only assign the non-con icting values, if a con ict exists back-track to
previously assigned values for updating
fl
fl
Back-tracking can be improved using multiple techniques
• Filtering
• Ordering
• Structural exploitation
Back-tracking can be improved using multiple techniques
• Filtering
• Pruning the values beforehand that can result in back-tracking
• Ordering
• Fixing some ordering both for variables and values involved
• Structural exploitation
• Assuming CSP as tree structured with cut-sett conditioning
Filtering prunes the con icting values before it occurs
• When assigning a value to Xi, prune the domains of variable that share constraint with Xi, — Forward
checking
• Removing inconsistencies from the CSP graph using forward checking is termed as local consistency
• Node consistency
• If all values satisfy unary constraints — node consistent graph
• Usually done in the start by reducing domain of variables unary constraints
• Arc consistency
• All values satisfy binary constraints — principle of arc consistency
• AC-3 algorithm is applied to achieve arc consistency
fl
Arc consistency — removing binary constraints
2
• Lets consider x = y , how to make is x-consistent and y-consistent
Arc-consistency is implemented using AC-3 Algorithm
• 1-consistency, 2-consistency
• If the Graph is K, K-1, …..1 consistent — Strong K-consistency
Ordering also improves the e ciency of CSPs
ffi
Ordering also improves the e ciency of CSPs
ffi
Exploiting structure of problem can improve the CSP