constraint satsfaction problem Flashcards

1
Q

what is planning

A

a sequence of actions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what do we care about in planning

A

We care about the path to the goal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what is identification

A

an assignment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what do we care about in identification

A

We care about the goal itself, not the path

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what is constraint satisfaction problem

A

: Identification problems have
constraints to be satisfied; there is no preference in CSPs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what is constraints

A

refers to hard constraints which a legal solution cannot violate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what are preferences referring too

A

Preferences sometimes are referred to as soft constraints (or objectives),
where we need to optimise, e.g., to minimise cost.
Search -> Identification -> CSP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what does a csp consists of

A

A set of variables
A domain for each variable
A set of constraints

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

In csp when is an assignment complete

A

if every variable has a
value,

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

in csp if some variables do not have a value, what is the assignment referred too

A

partial

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

what is a partial assignment in csp

A

not every variable has a value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

what is an assigment called in csp when every variable has a value

A

complete

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

describe standard search problem

A

State is a “black-box”: arbitrary data structure
◆ Goal test can be any function over state

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

describe csp states

A

State is defined by variables 𝑋1, 𝑋2,… with values from domains
𝐷1, 𝐷2, …

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

describe csp goal test

A

Goal test is a set of constraints specifying allowable combinations
of values of variables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

give example of csp

A

An example of a formal representation language, in which many
search problems can be abstracted. This allows useful general-
purpose algorithms with more power than standard search
algorithms.
Standard Search Problems vs CSPs

17
Q

what is a constraint graph

A

Constraint graphs are used to represent relations among
constraints in CSPs, where nodes correspond to the variables
and arcs reflect the constraints

18
Q

How to draw a constraint graph when a constraint
relates to more than two variables? e.g like in soduku

A

Use a square to represent a constraint, and connect all the
variables involved in that constraint

19
Q

formalise minesweeper as a csp (please check slides to find out what a mindsweeper is )

A

Variables:
◆ All squares to be uncovered
◆ 𝑋1, 𝑋2, 𝑋3, 𝑋4
Domain:
◆ 𝐷 = {0, 1}, where 0 denotes not
a mine and 1 denotes a mine
Constraints:
◆ The number on a square is the
sum of its neighbour’s values.
◆ 𝑋1 = 1
◆ 𝑋1 + 𝑋2 = 1
◆ 𝑋1 + 𝑋2 + 𝑋3 + 𝑋4 = 3
◆ 𝑋4 = 1
◆ …

20
Q

different types of variables and domains in csp

A

◆ Finite domains (discrete), e.g. all the above examples.
◆ Infinite domains (discrete or continuous), e.g., variables involving
time

21
Q

different types of constraints in csp

A

Unary, binary and high-order constraints; i.e., how many variables
involved in a constraint

22
Q

why are CSPs are difficult search problems

A

◆ If a CSP has 𝑛 variables, the size of each domain is 𝑑, then there
are 𝑂(𝑑𝑛) complete assignments.
◆ For the previous Sudoku problem, there are 951 complete
assignments

23
Q

exapmles of csps in the real world

A

Assignment problems, e.g. who teaches which class
◆ Timetabling problems, e.g. which class is offered when and
where
◆ Hardware configuration
◆ Transportation scheduling
◆ Factory scheduling
◆ Circuit layout
◆ Fault diagnosis
Many of CSP problems can also consider the preferences
(i.e., objectives), in which case they turn into constrained
optimisation problems.

24
Q

what is the difference between planning and identification

A

planning –> we care about the path to the goal
identification –> we only care about the goal itself