csp by symmetrical search Flashcards

1
Q

what is the generate and test algorithm

A

generating all possibe solutions and then testing the solutions, returns the correct solution that satisfies all the constraints
It needs to store all 𝑑𝑛 complete assignments, where 𝑑 is the
domain size and 𝑛 is the number of variables

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

describe solving the csp by the standard search function:
what is intial state, successor function and goal state

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

can we solve csp by breadth first search

A

not ideal - solutions will be at the bottom of the tree/search will have to search through the entire tree and traverse through all the nodes

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

can we solve csp by depth first search

A

better then bfs but have to take constraints into account
so you have to check constraints as you go
Consider only values which do not conflict previous assignments.
May have to do some computation to check the constraints,
like “Incremental goal test

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

what is backtracking

A

Backtracking is a DFS method with two additional things: 1) Check
constraints as you go and 2) Consider one variable at a layer
commutative so fix ordering

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

how to improve backtracking

A

General-purpose ideas give huge gain in speed
◆ Two ideas:
◆ Filtering: Can we detect inevitable failure early
◆ Ordering: Which variable should be assigned next

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

what is filtering

A

detecting inevitable failure early
keep track of unassigned domains and cross off bad options
many different ways of filtering

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

name one way of filtering in backtracking

A

foward checking

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

what is foward checking

A

Forward Checking: cross off values of neighbouring
variables that violate a constraint when added to the
existing assignment. That is, when assign a variable, cross
off anything that is now violated on all its neighbours’
domains

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

what is ordering

A

considering value with minimum remianing values to store

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