Odds and Ends Modeling Examples & Graphical Representations

Slides:



Advertisements
Similar presentations
Foundations of Constraint Processing Lookahead Schemas 1 Foundations of Constraint Processing CSCE421/821, Spring
Advertisements

Constraint Satisfaction Problems
Foundations of Constraint Processing Temporal Constraints Networks 1Topic Foundations of Constraint Processing CSCE421/821, Spring
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:
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 2005 November 16, 2005nFCi1 Foundations of Constraint Processing CSCE421/821, Fall 2005:
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 Sep 20, 2005BT: A Theoretical Evaluation1 Foundations of Constraint Processing CSCE421/821, Fall 2005:
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:
Constraint Systems Laboratory Presented by: Robert J. Woodward, Amanda Swearngin 1 Berthe Y. Choueiry 2 Eugene C. Freuder 3 1 ESQuaReD Laboratory, University.
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.
Foundations of Constraint Processing, Fall 2012 Odds and Ends: Modeling Examples & Graphical Representations 1Odds & Ends Foundations of Constraint Processing.
Foundations of Constraint Processing, Spring 2009 Structure-Based Methods: An Introduction 1 Foundations of Constraint Processing CSCE421/821, Spring 2009.
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
Structure-Based Methods Foundations of Constraint Processing
A First Practical Algorithm for High Levels of Relational Consistency
Digital Logic and Design
Rationale & Strategies Foundations of Constraint Processing
Structure-Based Methods Foundations of Constraint Processing
Foundations of Constraint Processing
CSPs and Relational DBs
Foundations of Constraint Processing
More on Constraint Consistency
Structure-Based Methods Foundations of Constraint Processing
Problem Solving with Constraints
Intelligent Backtracking Algorithms: A Theoretical Evaluation
Structure-Based Methods Foundations of Constraint Processing
Foundations of Constraint Processing All questions to Piazza
Evaluation of (Deterministic) BT Search Algorithms
Rationale & Strategies Foundations of Constraint Processing
More on Constraint Consistency
Extensions to BT Search Foundations of Constraint Processing
Lookahead Schemas Foundations of Constraint Processing
Extensions to BT Search Foundations of Constraint Processing
Guidelines for Reports Problem Solving with Constraints
Concept of a Function.
Evaluation of (Deterministic) BT Search Algorithms
Intelligent Backtracking Algorithms: A Theoretical Evaluation
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
Intelligent Backtracking Algorithms: A Theoretical Evaluation
Rationale & Strategies Foundations of Constraint Processing
Foundations of Constraint Processing All questions to Piazza
Evaluation of (Deterministic) BT Search Algorithms
Problem Solving with Constraints
Problem Solving with Constraints
Foundations of Constraint Processing
Extensions to BT Search Foundations of Constraint Processing
Intelligent Backtracking Algorithms: A Theoretical Evaluation
Revisiting Neighborhood Inverse Consistency on Binary CSPs
Improving the Performance of Consistency Algorithms by Localizing and Bolstering Propagation in a Tree Decomposition Shant Karakashian, Robert J. Woodward.
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:

Odds and Ends Modeling Examples & Graphical Representations Foundations of Constraint Processing CSCE421/821, Spring 2019 www.cse.unl.edu/~choueiry/S19-421-821/ Berthe Y. Choueiry (Shu-we-ri) Avery Hall, Room 360 Tel: +1(402)472-5444 Odds & Ends

Outline Modeling examples Graphical representations Minesweeper, Game of Set Graphical representations Odds & Ends

Minesweeper Variables? Domains? Constraints? Odds & Ends

Minesweeper as a CSP 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) Exactly two mines: 0000011 0000101 0000110, etc. Exactly three mines: 0000111 0001101 0001110, etc. Joint work with R. Woodward, K. Bayer & J. Snyder Odds & Ends

Game of Set [Falco 74] Deck of 81(=34) cards, each card with a unique combination of 4 attributes values Number  {1,2,3} Color  {green,purple,red} Filling  {empty,stripes, full} 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 Joint work with Amanda Swearngin and Eugene C. Freuder Odds & Ends

Set: Constraint Model I Three variables Same domain (12 cards) One ‘physical’ constraints Four 1-dimensional constraints Size of model? c1 c2 c3 c4 c5 c6 c7 c8 c9 c1,c2,c3,…,c12 C=⊕C≠ F=⊕F≠ S=⊕S≠ N=⊕N≠ id≠ Odds & Ends

Set: Constraint 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 & Ends

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 & Ends

Binary CSPs Macrostructure G(P)=(V,E) V= E= Micro-structure  (P)=(V,E) Co-microstructure co-(P)=(V,E) a, b a, c b, c  V1 V2 V3 Supports (V1, a ) (V1, b) (V2, a ) (V2, c) (V3, b ) (V3, c) No goods (V1, a ) (V1, b) (V2, a ) (V2, c) (V3, b ) (V3, c) Odds & Ends

Non-binary CSPs: Hypergraph Hypergraph (non-binary CSP) V= E= R3 A B C D E F R1 R4 R2 R5 R6 R3 A B C D E F R1 R4 R2 R5 R6 Odds & Ends

Non-binary CSPs: Primal Graph V= E= R3 A B C D E F R1 R4 R2 R5 R6 B A E F D C Odds & Ends

Dual Graph V= G= Hypergraph Dual graph R3 A B C D E F R1 R4 R2 R5 R6 ABDE CF EF AB R3 R1 R2 C F E BD D AD A B R5 R6 Hypergraph Dual graph Odds & Ends