DIRECTIONAL ARC-CONSISTENCY ANIMATION Fernando Miranda 5986/M

Slides:



Advertisements
Similar presentations
YOSI! BLUE (30 sec play) Ball moves to X1 from X2
Advertisements

An Introduction to Calculus. Calculus Study of how things change Allows us to model real-life situations very accurately.
February 21, 2002 Simplex Method Continued
February 14, 2002 Putting Linear Programs into standard form
The Derivative in Graphing and Application
Chapter 4 Section 3 Matrix Multiplication. Scalar Multiplication Scalar Product - multiplying each element in a matrix by a scalar (real number) –Symbol:
Non-binary Constraints Toby Walsh
Constraint Programming Peter van Beek University of Waterloo.
Maximal Independent Subsets of Linear Spaces. Whats a linear space? Given a set of points V a set of lines where a line is a k-set of points each pair.
Cenni di Machine Learning: Decision Tree Learning Fabio Massimo Zanzotto.
Rule Learning – Overview Goal: learn transfer rules for a language pair where one language is resource-rich, the other is resource-poor Learning proceeds.
PROLOG MORE PROBLEMS.
BASED ON THE TUTORIAL ON THE BOOK CD Verilog: Gate Level Design 6/11/
Inverting a Singly Linked List Instructor : Prof. Jyh-Shing Roger Jang Designer : Shao-Huan Wang The ideas are reference to the textbook “Fundamentals.
TS: Explicitly assessing information and drawing conclusions Increasing & Decreasing Functions.
Constraint Satisfaction Problems Russell and Norvig: Chapter
Global Constraints Toby Walsh National ICT Australia and University of New South Wales
Global Constraints Toby Walsh NICTA and University of New South Wales
2 x0 0 12/13/2014 Know Your Facts!. 2 x1 2 12/13/2014 Know Your Facts!
2 x /18/2014 Know Your Facts!. 11 x /18/2014 Know Your Facts!
2 x /10/2015 Know Your Facts!. 8 x /10/2015 Know Your Facts!
2.4 – Factoring Polynomials Tricky Trinomials The Tabletop Method.
SAT Encoding For Sudoku Puzzles
Distributed Constraint Satisfaction Problems M OHSEN A FSHARCHI.
PERMUTATIONS AND COMBINATIONS
The Max-Cut problem: Election recounts? Majority vs. Electoral College? 7812.
1 Lecture 5 PRAM Algorithm: Parallel Prefix Parallel Computing Fall 2008.
A man-machine human interface for a special device of the pervasive computing world B. Apolloni, S. Bassis, A. Brega, S. Gaito, D. Malchiodi, A.M. Zanaboni.
16.410: Eric Feron / MIT, Spring 2001 Introduction to the Simplex Method to solve Linear Programs Eric Feron Spring 2001.
5 x4. 10 x2 9 x3 10 x9 10 x4 10 x8 9 x2 9 x4.
Parallel algorithms for expression evaluation Part1. Simultaneous substitution method (SimSub) Part2. A parallel pebble game.
EMIS 8374 LP Review: The Ratio Test. 1 Main Steps of the Simplex Method 1.Put the problem in row-0 form. 2.Construct the simplex tableau. 3.Obtain an.
Linear Programming – Simplex Method: Computational Problems Breaking Ties in Selection of Non-Basic Variable – if tie for non-basic variable with largest.
The Problem of K Maximum Sums and its VLSI Implementation Sung Eun Bae, Tadao Takaoka University of Canterbury Christchurch New Zealand.
Optimization of order-picking using a revised minimum spanning table method 盧坤勇 國立聯合大學電子工程系.
Multiplication Facts Practice
Parameter identifiability, constraints, and equifinality in data assimilation with ecosystem models Dr. Yiqi Luo Botany and microbiology department University.
Graphical Models and Applications CNS/EE148 Instructors: M.Polito, P.Perona, R.McEliece TA: C. Fanti.
A Case Study  Some Advice on How to Go about Solving Problems in Prolog  A Program to Play Connect-4 Game.
Constraint Optimization We are interested in the general non-linear programming problem like the following Find x which optimizes f(x) subject to gi(x)
SATISFIABILITY Eric L. Frederich.
CS4101 嵌入式系統概論 Program Organization Prof. Chung-Ta King Department of Computer Science National Tsing Hua University, Taiwan ( Materials from MSP430 Microcontroller.
Hillier and Lieberman Chapter 4.
Variational Inference Amr Ahmed Nov. 6 th Outline Approximate Inference Variational inference formulation – Mean Field Examples – Structured VI.
Chapter 8: The Solver and Mathematical Programming Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University.
Computational Facility Layout
LINEAR PROGRAMMING Modeling a problem is boring --- and a distraction from studying the abstract form! However, modeling is very important: --- for your.
Shannon Expansion Given Boolean expression F = w 2 ’ + w 1 ’w 3 ’ + w 1 w 3 Shannon Expansion of F on a variable, say w 2, is to write F as two parts:
Graeme Henchel Multiples Graeme Henchel
Constraint Satisfaction taking advantage of internal structure of states when paths don’t matter.
(1) MAX X1+3X2+2X3+4X4 X1=AM PHONE, X2=AM RIDE, X3=AFT PHONE, X4=AFT RIDE CONSTRAINTS AM: X1+20X2 < 12(60)=720 AFT: 2X3+30X4 < 14(60) = 840 GAS: X2+X4.
The Project Problem formulation (one page) Literature review –“Related work" section of final paper, –Go to writing center, –Present paper(s) to class.
0 x x2 0 0 x1 0 0 x3 0 1 x7 7 2 x0 0 9 x0 0.
C2 Part 4: VLSI CAD Tools Problems and Algorithms Marcelo Johann EAMTA 2006.
Simplex (quick recap). Replace all the inequality constraints by equalities, using slack variables.
Constraint Networks (cont.) Emma Rollón Postdoctoral researcher at UCI April 1st, 2009.
BINARY/MIXED-INTEGER PROGRAMMING ( A SPECIAL TYPE OF INTEGER PROGRAMMING)
Maintaining Arc Consistency We have a constraint graph G of variables X 1,...X n, and constraint relations {X i  X j}, and each Xi has a value set V (X.
7x7=.
ICS-271:Notes 5: 1 Lecture 5: Constraint Satisfaction Problems ICS 271 Fall 2008.
SOLUTION EXAMPLE 1 Represent relations Consider the relation given by the ordered pair (–2, –3), (–1, 1), (1, 3), (2, –2), and (3, 1). a. Identify the.
Goal: Identify and graph functions..  Relation: mapping or pairing, of input values with output values.  Domain: Set of input values.  Range: set of.
Constraint Satisfaction
EXAMPLE 1 Represent relations
Here is the graph of a function
Notes Over 2.1 Function {- 3, - 1, 1, 2 } { 0, 2, 5 }
Arc Consistency – AC-1 PROCEDURE AC-1(Z, D, C) BEGIN
Directional consistency Chapter 4
Cat 1 Cat 2 Cat 3 Cat 4 Cat 5 $100 $100 $100 $100 $100 $200 $200 $200 $200 $200 $300 $300 $300 $300 $300 $400 $400 $400 $400 $400 $500 $500 $500 $500 $500.
Constraint Graph Binary CSPs
Presentation transcript:

DIRECTIONAL ARC-CONSISTENCY ANIMATION Fernando Miranda 5986/M

DIRECTIONAL ARC-CONSISTENCY (DAC) ALGORITHM This presentation animates the directional arc- consistency algorithm using the coloring graph problem as an example. For a better comprehension it is also presented here the arc-consistency algorithm between two variables also called here as revise.

DIRECTIONAL ARC-CONSISTENCY (DAC) ALGORITHM procedure DAC(  ) input: a network  =(X,D,C), its constraint graph G, and an ordering d = (x1, …, xn). output: a directional arc-consistent network for i = n to 1 by -1 do for each j < i such that Rij   Dj ← Dj ∩  j(Rij  Di), this is revise((xj), xi)) endfor end procedure procedure REVISE((x1), x2) input: a subnetwork defined by two variables X = {xi, xj}, a distinguished variable xi, domains Di and Dj, and constraint Rij output: Di, such that xi is arc-consistency relative to xj. for each ai  Di if there is no aj  Dj such that (ai, aj)  Rij then delete ai from Di endif endfor end procedure

x1 First, it's explained how REVISE algorithm works. There are two variables x1 and x2 with their domain D1 and D2. D1 = {,,, } D2 = {,, } There is a constraint between x1 and x2. R12 = {equal} x2 Final domain: D1 = {, } D2 = {,, } x1 is arc-consistency relative to x2 = One or more equal: stays No equal: removes

COLORING GRAPH PROBLEM x1 x2 x6x4x5 x3 x7      

x5 x1x3x2x7x6x4 Now, the variables of the network are put in the order d with all it’s relations. In this case it was chosen the order d = {x4, x5, x6, x7, x2, x3, x1} From x1 to x3 and x2 From x3 to x6 and x7 From x2 to x4 and x5

Finally, the DAC algorithm is applied to the variables in the reverse order: x1 to x3 and revise((x3), x1) X1 to x2 and revise((x2), x1) X3 to x7 and revise((x7), x3) X3 to x6 and revise((x6), x3) X2 to x5 and revise((x5), x2) X2 to x4 and revise((x4), x2) x5 x1x3x2x7x6x4 x1 x2 x6x4x5 x3 x7       A directional arc-consistency network and luckily a solution!