review test1. robotics & future technology future of intelligent systems / ray kurzweil futurist...

15
Review Test1

Upload: alban-ferguson

Post on 20-Jan-2016

219 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: Review Test1. Robotics & Future Technology Future of Intelligent Systems / Ray Kurzweil futurist Ray Kurzweil / A Long Bet A Long Bet / Robot Soccer

Review Test1Review Test1

Page 2: Review Test1. Robotics & Future Technology Future of Intelligent Systems / Ray Kurzweil futurist Ray Kurzweil / A Long Bet A Long Bet / Robot Soccer

Robotics & Future Technology

Robotics & Future Technology

Page 3: Review Test1. Robotics & Future Technology Future of Intelligent Systems / Ray Kurzweil futurist Ray Kurzweil / A Long Bet A Long Bet / Robot Soccer

Future of Intelligent SystemsFuture of Intelligent Systems

Ray Kurzweil futurist A Long Bet Robot Soccer

BBC News - What happened to the Robotic Age?

Robotic Dance?

Ray Kurzweil futurist A Long Bet Robot Soccer

BBC News - What happened to the Robotic Age?

Robotic Dance?

Page 4: Review Test1. Robotics & Future Technology Future of Intelligent Systems / Ray Kurzweil futurist Ray Kurzweil / A Long Bet A Long Bet / Robot Soccer

REVIEW of some important

concepts to remember…

REVIEW of some important

concepts to remember…

CHAPTER 5 CHAPTER 5

Page 5: Review Test1. Robotics & Future Technology Future of Intelligent Systems / Ray Kurzweil futurist Ray Kurzweil / A Long Bet A Long Bet / Robot Soccer

Incremental Problem Formulation

(The N-Queens Problem)

Incremental Problem Formulation

(The N-Queens Problem)

Page 6: Review Test1. Robotics & Future Technology Future of Intelligent Systems / Ray Kurzweil futurist Ray Kurzweil / A Long Bet A Long Bet / Robot Soccer
Page 7: Review Test1. Robotics & Future Technology Future of Intelligent Systems / Ray Kurzweil futurist Ray Kurzweil / A Long Bet A Long Bet / Robot Soccer

Constraint Satisfaction Constraint Satisfaction A constraint satisfaction problem (CSP) is a problem composed of

variables and constraints. The objective is to assign values to variable in such a way that all of the constraints are satisfied.

A CSP can be more formally viewed as a triple <D,X,C> where:

D represents a set of n domains X represents a set of n variables, each variable xi takes it value from Di C represents a set of constraints.

A constraint satisfaction problem (CSP) is a problem composed of variables and constraints. The objective is to assign values to variable in such a way that all of the constraints are satisfied.

A CSP can be more formally viewed as a triple <D,X,C> where:

D represents a set of n domains X represents a set of n variables, each variable xi takes it value from Di C represents a set of constraints.

Page 8: Review Test1. Robotics & Future Technology Future of Intelligent Systems / Ray Kurzweil futurist Ray Kurzweil / A Long Bet A Long Bet / Robot Soccer

Two types of CSPsTwo types of CSPs

Finite domain CSPs Queens, Domains, Boolean

Infinite Domain CSPs If Job1 takes 5 days, then Job3 will start Job1 +5 < Job3

Finite domain CSPs Queens, Domains, Boolean

Infinite Domain CSPs If Job1 takes 5 days, then Job3 will start Job1 +5 < Job3

Page 9: Review Test1. Robotics & Future Technology Future of Intelligent Systems / Ray Kurzweil futurist Ray Kurzweil / A Long Bet A Long Bet / Robot Soccer

thrashingthrashingWasteful” backtracking is known asWasteful” backtracking is known as

Page 10: Review Test1. Robotics & Future Technology Future of Intelligent Systems / Ray Kurzweil futurist Ray Kurzweil / A Long Bet A Long Bet / Robot Soccer

Variable & Value OrderingVariable & Value Ordering

Variable order selection seldom results in the most efficient search

One efficient strategy Minimum Remaining Value (MRV) which

chooses the value with the fewest legal values

A.K.A “Most Constrained Value” A.K.A “Fail-First” Heuristic because it is the

most likely to cause failure first

Variable order selection seldom results in the most efficient search

One efficient strategy Minimum Remaining Value (MRV) which

chooses the value with the fewest legal values

A.K.A “Most Constrained Value” A.K.A “Fail-First” Heuristic because it is the

most likely to cause failure first

Page 11: Review Test1. Robotics & Future Technology Future of Intelligent Systems / Ray Kurzweil futurist Ray Kurzweil / A Long Bet A Long Bet / Robot Soccer

Propagating through constraintsPropagating through constraints

When every variable X is assigned, the forward checking process looks at each unassigned variable Y AND Deletes from Y’s domain any value that is inconsistent with the value chosen for X.

When every variable X is assigned, the forward checking process looks at each unassigned variable Y AND Deletes from Y’s domain any value that is inconsistent with the value chosen for X.

Forward Checking is a better use of constraints

Forward Checking is a better use of constraints

Think of Forward Checking as a way to incrementally compute the info needed for MRV to do its job

Think of Forward Checking as a way to incrementally compute the info needed for MRV to do its job

Page 12: Review Test1. Robotics & Future Technology Future of Intelligent Systems / Ray Kurzweil futurist Ray Kurzweil / A Long Bet A Long Bet / Robot Soccer

Arc ConsistencyArc Consistency nother backtrack-based algorithm that is even

more efficient is called the maintaining arc consistency (MAC) algorithm.

Arc Consistency provides fast method of constraint propagation stronger than forward checking.

Arc Consistency can be provided as preprocessing step (just as forward checking can be used to preprocess).

nother backtrack-based algorithm that is even more efficient is called the maintaining arc consistency (MAC) algorithm.

Arc Consistency provides fast method of constraint propagation stronger than forward checking.

Arc Consistency can be provided as preprocessing step (just as forward checking can be used to preprocess).

Page 13: Review Test1. Robotics & Future Technology Future of Intelligent Systems / Ray Kurzweil futurist Ray Kurzweil / A Long Bet A Long Bet / Robot Soccer

MAC Algorithm p146MAC Algorithm p146

Rather than just revising each domain corresponding with the value of each instantiated variable MAC makes the network arc-consistent with respect to the instantiated variables (all arcs must be consistent).

MAC is applied repeatedly until no more inconsistencies remain.

Node Consistency 1- consistency means that each individual variable by itself is

consistent (node consistency) 2- consistency is arc consistency

3- consistency means that any pair of adjacent variables can always be extended to a third neighboring variable (i.e. path consistency or AC-3)

AC-3 uses a queue to keep track of nodes that need to be checked for inconsistency

Rather than just revising each domain corresponding with the value of each instantiated variable MAC makes the network arc-consistent with respect to the instantiated variables (all arcs must be consistent).

MAC is applied repeatedly until no more inconsistencies remain.

Node Consistency 1- consistency means that each individual variable by itself is

consistent (node consistency) 2- consistency is arc consistency

3- consistency means that any pair of adjacent variables can always be extended to a third neighboring variable (i.e. path consistency or AC-3)

AC-3 uses a queue to keep track of nodes that need to be checked for inconsistency

Page 14: Review Test1. Robotics & Future Technology Future of Intelligent Systems / Ray Kurzweil futurist Ray Kurzweil / A Long Bet A Long Bet / Robot Soccer

Intelligent backtracking: looking backward

Intelligent backtracking: looking backward

Chronological backtracking: a policy for when a branch of the search fails by backing up to the preceding variable and try a different value for it

Chronological uses the more recent decision point to revisit

Chronological backtracking: a policy for when a branch of the search fails by backing up to the preceding variable and try a different value for it

Chronological uses the more recent decision point to revisit

Page 15: Review Test1. Robotics & Future Technology Future of Intelligent Systems / Ray Kurzweil futurist Ray Kurzweil / A Long Bet A Long Bet / Robot Soccer

Things that cause a failureThings that cause a failure

The conflict set

Backjumping backtracks to the most recent variable in the conflict set

The conflict set

Backjumping backtracks to the most recent variable in the conflict set