Foundations of Constraint Processing, Fall 2012 Odds and Ends: Modeling Examples & Graphical Representations 1Odds & Ends Foundations of Constraint Processing.

Slides:



Advertisements
Similar presentations
Foundations of Constraint Processing Temporal Constraints Networks 1Topic Foundations of Constraint Processing CSCE421/821, Spring
Advertisements

Constraint Systems Laboratory February 18, 2009 CSP Modeling Examples CSP: Examples Industrial applications: scheduling, resource allocation, product configuration,
Foundations of Constraint Processing, Spring 2008 April 9, 2008 nFCi1 Foundations of Constraint Processing CSCE421/821, Spring 2008:
Foundations of Constraint Processing More on Constraint Consistency 1 Foundations of Constraint Processing CSCE421/821, Spring
Foundations of Constraint Processing, Spring 2008 April 16, 2008 Tree-Structured CSPs1 Foundations of Constraint Processing CSCE421/821, Spring 2008:
Foundations of Constraint Processing, Fall 2005 Aug 22, 2005Guidelines for reports1 Foundations of Constraint Processing CSCE421/821, Fall
A First Practical Algorithm for High Levels of Relational Consistency Shant Karakashian, Robert Woodward, Christopher Reeson, Berthe Y. Choueiry & Christian.
Problem Solving with Constraints, Fall 2011 Odds and Ends: Modeling Examples & Graphical Representations 1Odds & Ends Problem Solving with Constraints.
Foundations of Constraint Processing, Fall 2005 October 21, 2005CSPs and Relational DBs1 Foundations of Constraint Processing CSCE421/821, Fall 2005:
Foundations of Constraint Processing, Spring 2008 Evaluation to BT SearchApril 16, Foundations of Constraint Processing CSCE421/821, Spring 2008:
Foundations of Constraint Processing, Fall 2004 November 8, 2004Ordering heuristics1 Foundations of Constraint Processing CSCE421/821, Fall 2004:
Foundations of Constraint Processing, Fall 2005 November 16, 2005nFCi1 Foundations of Constraint Processing CSCE421/821, Fall 2005:
A Constraint Satisfaction Problem (CSP) is a combinatorial decision problem defined by a set of variables, a set of domain values for these variables,
Foundations of Constraint Processing, Fall 2005 November 16, 2005nFCi1 Foundations of Constraint Processing CSCE421/821, Fall 2005:
 i may require adding new constraints, except for… o i =1  domain filtering o i =   constraint filtering Robert Woodward & Berthe Y. Choueiry Constraint.
Foundations of Constraint Processing Evaluation to BT Search 1 Foundations of Constraint Processing CSCE421/821, Spring
Foundations of Constraint Processing, Fall 2005 October 20, 2005Ordering heuristics1 Foundations of Constraint Processing CSCE421/821, Fall 2005:
Foundations of Constraint Processing, Fall 2005 Sep 20, 2005BT: A Theoretical Evaluation1 Foundations of Constraint Processing CSCE421/821, Fall 2005:
A Constraint Satisfaction Problem (CSP) is a combinatorial decision problem defined by a set of variables, a set of domain values for these variables,
Support: UCARE grant awarded to Chris Reeson & CAREER Award # from the National Science Foundation. To the public: –Illustrate the power of CP For.
Ken Bayer, Josh Snyder, and Berthe Y. Choueiry Constraint Systems Laboratory University of Nebraska-Lincoln A Constraint-Based Approach to Solving Minesweeper.
Foundations of Constraint Processing, Fall 2005 November 2, 2005Weak Commitment1 Foundations of Constraint Processing CSCE421/821, Fall 2005:
Foundations of Constraint Processing, Fall 2004 November 18, 2004More on BT search1 Foundations of Constraint Processing CSCE421/821, Fall 2004:
Because the localized R(*,m)C does not consider combinations of relations across clusters, propagation between clusters is hindered. Synthesizing a global.
Problem Solving with Constraints Lookahead Schemas 1 Foundations of Constraint Processing CSCE496/896, Fall
Foundations of Constraint Processing, Spring 2008 Jan 14, 2008 Overview 11 Foundations of Constraint Processing CSCE421/821, Spring 2008:
Explorations in Artificial Intelligence Prof. Carla P. Gomes Module 6 Binary CSP.
Constraint Systems Laboratory Presented by: Robert J. Woodward, Amanda Swearngin 1 Berthe Y. Choueiry 2 Eugene C. Freuder 3 1 ESQuaReD Laboratory, University.
Foundations of Constraint Processing, CSCE421/821 Overview 11 CSCE421/821, Fall Questions: Piazza Berthe Y.
1 Constraint Symmetry and Solution Symmetry Presented by Beau M. Christ Symmetry in CSP’s Spring 2010 Presented by Beau M. Christ Symmetry in CSP’s Spring.
Constraint Systems Laboratory R.J. Woodward 1, S. Karakashian 1, B.Y. Choueiry 1 & C. Bessiere 2 1 Constraint Systems Laboratory, University of Nebraska-Lincoln.
Principles of Intelligent Systems Constraint Satisfaction + Local Search Written by Dr John Thornton School of IT, Griffith University Gold Coast.
Foundations of Constraint Processing, Fall 2004 October 3, 2004Interchangeability in CSPs1 Foundations of Constraint Processing CSCE421/821, Fall 2004:
Foundations of Constraint Processing, Spring 2009 Structure-Based Methods: An Introduction 1 Foundations of Constraint Processing CSCE421/821, Spring 2009.
Constraint Systems Laboratory Robert J. Woodward Joint work with Shant Karakashian, Daniel Geschwender, Christopher Reeson, and Berthe Y. UNL.
Constraint Systems Laboratory Robert J. Woodward Constraint Systems Laboratory Department of Computer Science & Engineering University of Nebraska-Lincoln.
Foundations of Constraint Processing Constraint Graphical Models 1Odds & Ends Foundations of Constraint Processing CSCE421/821, Fall
Problem Solving with Constraints CSPs and Relational DBs1 Problem Solving with Constraints CSCE496/896, Fall
Foundations of Constraint Processing, CSCE421/821 Overview 11 CSCE421/821, Fall Questions: Piazza Berthe Y.
Structure-Based Methods Foundations of Constraint Processing
A First Practical Algorithm for High Levels of Relational Consistency
Rationale & Strategies Foundations of Constraint Processing
Structure-Based Methods Foundations of Constraint Processing
Foundations of Constraint Processing
CSPs and Relational DBs
Structure-Based Methods Foundations of Constraint Processing
Problem Solving with Constraints
Structure-Based Methods Foundations of Constraint Processing
Evaluation of (Deterministic) BT Search Algorithms
Rationale & Strategies Foundations of Constraint Processing
Lookahead Schemas Foundations of Constraint Processing
Evaluation of (Deterministic) BT Search Algorithms
Intelligent Backtracking Algorithms: A Theoretical Evaluation
3-Variable K-map AB/C AB/C A’B’ A’B AB AB’
Intelligent Backtracking Algorithms: A Theoretical Evaluation
Rationale & Strategies Foundations of Constraint Processing
Odds and Ends Modeling Examples & Graphical Representations
Evaluation of (Deterministic) BT Search Algorithms
Problem Solving with Constraints
Problem Solving with Constraints
Foundations of Constraint Processing
Intelligent Backtracking Algorithms: A Theoretical Evaluation
Revisiting Neighborhood Inverse Consistency on Binary CSPs
Structure-Based Methods Foundations of Constraint Processing
Revisiting Neighborhood Inverse Consistency on Binary CSPs
An Introduction Structure-Based Methods
Reformulating the Dual Graphs of CSPs
Structure-Based Methods Foundations of Constraint Processing
Rationale & Strategies Foundations of Constraint Processing
Foundations of Constraint Processing CSCE421/821, Fall 2003
Presentation transcript:

Foundations of Constraint Processing, Fall 2012 Odds and Ends: Modeling Examples & Graphical Representations 1Odds & Ends Foundations of Constraint Processing CSCE421/821, Fall Berthe Y. Choueiry (Shu-we-ri) Avery Hall, Room 360 Tel: +1(402) Sep 21, 2011

Foundations of Constraint Processing, Fall 2012 Outline Modeling examples – Minesweeper, Game of Set Graphical representations Odds & Ends2Sep 21, 2011

Foundations of Constraint Processing, Fall 2012 Minesweeper Variables? Domains? Constraints? Odds & Ends3Sep 21, 2011

Foundations of Constraint Processing, Fall 2012 Minesweeper as a CSP demo demo Variables are the cells Domains are {0,1} (i.e., safe or mined) One constraint for each cell with a number (arity 1...8) Odds & Ends4 Exactly two mines: , etc. Exactly three mines: , etc. Joint work with R. Woodward, K. Bayer & J. Snyder Sep 21, 2011

Foundations of Constraint Processing, Fall 2012 Game of Set[Falco 74] Odds & Ends5 Joint work with Amanda Swearngin and Eugene C. Freuder Deck of 81(=3 4 ) cards, each card with a unique combination of 4 attributes values 1.Number  {1,2,3} 2.Color  { green,purple,red } 3.Filling  { empty,stripes, full } 4.Shape  { diamond,squiggle,oval } Solution set: 3 cards  attribute, the 3 cards have either the same value or all different values 12 cards are dealt, on table [3,21] Recreational game, favorite of children & CS/Math students New toy problem for AI: a typical multi-dimensional CSP Sep 21, 2011

Foundations of Constraint Processing, Fall 2012 Set: Constraint Model I Odds & Ends6 Model I – Three variables – Same domain (12 cards) – One ‘physical’ constraints – Four 1-dimensional constraints Size of model? c 1,c 2,c 3,…,c 12 C=⊕C≠C=⊕C≠ F=⊕F≠F=⊕F≠ S=⊕S≠S=⊕S≠ N=⊕N≠N=⊕N≠ id ≠ c 1,c 2,c 3,…,c 12 c1c1 c2c2 c3c3 c4c4 c5c5 c6c6 c7c7 c8c8 c9c9 Sep 21, 2011

Foundations of Constraint Processing, Fall 2012 Set: Constraint Model II Model II – 12 variables (as many as on table) – Boolean domains {0,1} – Constraints: much harder to express Exactly 3 cards: Sum(assigned values)=3? AllEqual/AllDiff constraints? Size of model? Odds & Ends7Sep 21, 2011

Foundations of Constraint Processing, Fall 2012 Graphical Representations Always specify V,E for a graph as G=(V,E) Main representations – Binary CSPs Graph (for binary CSPs) Microstructure (supports) Co-microstructure (conflicts) – Non-binary CSPs Hypergraph Primal graph – Dual graph Odds & Ends8Sep 21, 2011

Foundations of Constraint Processing, Fall 2012 Binary CSPs Odds & Ends9 Macrostructure G(P)=(V,E) V= E= Micro-structure  (P)=(V,E) V= E= Co-microstructure co-  (P) =(V,E) V= E= a, b a, c b, c    V1 V2 V3 (V1, a ) (V1, b) (V2, a ) (V2, c) (V3, b ) (V3, c) (V1, a ) (V1, b) (V2, a ) (V2, c) (V3, b ) (V3, c) No goods Supports Sep 21, 2011

Foundations of Constraint Processing, Fall 2012 Non-binary CSPs: Hypergraph Hypergraph (non-binary CSP) – V= – E= Odds & Ends10 R3R3 A B C D E F R1R1 R4R4 R2R2 R5R5 R6R6 R3R3 A B C D E F R1R1 R4R4 R2R2 R5R5 R6R6 Sep 21, 2011

Foundations of Constraint Processing, Fall 2012 Non-binary CSPs: Primal Graph Primal graph – V= – E= Odds & Ends11 R3R3 A B C D E F R1R1 R4R4 R2R2 R5R5 R6R6 A B C D E F Sep 21, 2011

Foundations of Constraint Processing, Fall 2012 Dual Graph V= G= Odds & Ends12 R4R4 BCD ABDE CF EF AB R3R3 R1R1 R2R2 C F E BD AB D AD A B R5R5 R6R6 R3R3 A B C D E F R1R1 R4R4 R2R2 R5R5 R6R6 HypergraphDual graph Sep 21, 2011