Preview

Constraint Satisfaction Problem

Powerful Essays
Open Document
Open Document
4030 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Constraint Satisfaction Problem
Artificial Intelligence

Instructor: Dr. Malek Mouhoub

Department of Computer Science
University of Regina

CS 820

1

7. Constraint-Based Reasoning

7. Constraint-Based Reasoning

7.1 Introduction
7.2 Systematic Search for CSPs
7.3 Constraint Propagation
7.4 Heuristics for CSPs
7.5 Iterative (non systematic) Algorithms for CSPs
7.6 Tree-structured CSPs
7.7 Constraint-Based Systems

CS 820

2

7.1 Introduction

7.1 Introduction
“Constraint programming represents one of the closest approaches computer science has yet made to the holy grail of programming : the user states the problem, the computer solves it.”
Eugene C. Freuder, Constraints, April 1997

CS 820

3

7.1 Introduction

Constraint satisfaction problems (CSPs)
Standard search problem: state is a “black box”—any old data structure that supports goal test, eval, successor
CSP:
state is defined by variables Vi with values from domain Di goal test is a set of constraints specifying allowable combinations of values for subsets of variables
Simple example of a formal representation language
Allows useful general-purpose algorithms with more power than standard search algorithms

CS 820

4

7.1 Introduction

Constraint Satisfaction Problem (CSP)
• A Constraint Satisfaction Problem (CSP) consist of:
– a set of variables X

= {x1 , . . . , xn },

– for each variable xi , a finite set Di of possible values (its domain),
– and a set of constraints restricting the values that the variables can simultaneously take. • A solution to a CSP is an assignment of a value from its domain to every variable, in such a way that every constraint is satisfied. We may want to find:
– just one solution, with no preference as to which one,
– all solutions,
– an optimal, or at least a good solution, given some objective function defined in terms of some or all of the variables.

• A CSP is often represented as a (hyper)graph.

CS 820

5

7.1 Introduction

You May Also Find These Documents Helpful

  • Good Essays

    The optimal solution is not sensitive to small changes in the profit contributions for the…

    • 730 Words
    • 11 Pages
    Good Essays
  • Good Essays

    The domain is the set of input values in a relation. The input values are the x-coordinates in the ordered pairs.…

    • 506 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Jackpine Mall Case

    • 501 Words
    • 3 Pages

    The Present Value function was then restricted by many constraints to find our optimal solution. Those constraints were as follows:…

    • 501 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    The Missouri Compromise

    • 263 Words
    • 3 Pages

    7. What does it mean to be a solution to a system to a system of inequalities?…

    • 263 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Mat 540 Week 1 Quiz

    • 501 Words
    • 3 Pages

    5. Which of the following is an equation or an inequality that expresses a resource restriction in a mathematical model?…

    • 501 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Comparison and Constrast

    • 1175 Words
    • 3 Pages

    Calvin Cordozar Broadus Jr. is one artist who had an incredible change in his career and his personal life. Cordozar best known as Snoop Dogg claims that he is Bob Marley reincarnated. After he visited Jamaica he said that this island changed his mind and his life, he had a spiritual and artistic awakening. The 41 years old rapper believe that peace and love are better than drugs and guns, is hard to believe that one of the greatest and famous rappers in the world would change from one day to other. The dog became a lion, those lyrics that used to talk about money and drug dealing now talk about peace, love and forgiveness, the gangsta rapper that everybody know had change to a Rastafarian.…

    • 1175 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    MS2 Assignment1

    • 1704 Words
    • 6 Pages

    2. For a system that is intended to solve a problem that is difficult to define precisely…

    • 1704 Words
    • 6 Pages
    Powerful Essays
  • Satisfactory Essays

    Course Project Tutorial

    • 818 Words
    • 4 Pages

    5. If the conditions you note could be defined as assignable conditions and they are…

    • 818 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Linear programming, the ability to find the smallest or biggest possible value under some constraints, is used in a typical optimization problem. In business this method helps to optimize solutions for politics, transportation scheduling, hospital stuffing, purchasing and many other problems. In biotechnology the same equation is used to optimize cell-factories, enabling the production of drugs, plastics, or any desired products.…

    • 501 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    Curriculum For Excellence

    • 6401 Words
    • 26 Pages

    — were any such to exist — they are instead a mixture of values which relate to a…

    • 6401 Words
    • 26 Pages
    Powerful Essays
  • Good Essays

    Theory of Constraints

    • 541 Words
    • 2 Pages

    Everyone has heard the saying that the chain is only strong as its weakest link and this is exactly what the theory of constraints actually defines and reflects. Constructed by Dr. Eli Goldratt, the theory was published in the book The Goal, in 1984. According to this book, any organization’s performance is greatly dependent on the constraints. These constraints prevent the enterprise from delivering its optimal performance and thereby failing to reach the designated goals. This is the weakest link and it can be anything right from the hired resource to the people, supplies, data, equipments and even regulatory policies. No matter how well the organization performs, there are always constraints. When the enterprise identifies the constraints, it can change the way the work is done to achieve the results that will help in overcoming it. The first time that the theory was used was in the manufacturing sector, however, it is not limited only there. It can also be used for other situations and it is the most useful when the theory is being applied in the frequently used processes held within the organizations.…

    • 541 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Constraint programming is a special sub-paradigm of declarative programming that helps in the establishment of correlations between different variables but the correlations are formed under the presence of different constraints. Different constraints are used to establish the relationship and on the basis of the same, relationships are built and then declarative programming makes use of that particular logic for getting better results.…

    • 471 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Adopt Algorithm

    • 1063 Words
    • 5 Pages

    Given l Variables {x1, x2, …, xn}, each assigned to an agent l Finite, discrete domains D1, D2, … , Dn, l For each xi, xj, valued constraint fij: Di x Dj → N. Goal l Find complete assignment A that minimizes F(A) where,…

    • 1063 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    ME101 Lecture05 KD

    • 994 Words
    • 11 Pages

    Fz  0 M x  M y  0 M z  M O…

    • 994 Words
    • 11 Pages
    Satisfactory Essays
  • Good Essays

    Simplex-Big M Method

    • 530 Words
    • 3 Pages

    In fact, this notion is an old trick in optimization in general; we simply associate a penalty value with variables that we do not want to be part of an ultimate solution (unless such an outcome Is unavoidable).…

    • 530 Words
    • 3 Pages
    Good Essays