DOC PREVIEW
CMU CS 15381 - Lecture7-CSPLocal09

This preview shows page 1-2-20-21 out of 21 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 21 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 21 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 21 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 21 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 21 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

12Note that in CSPs, the path doesn’t matter, only the solution.3Important things in a graph coloring problem: values (colors), variables (nodes), and the topology of the graph (constraints).Eval is # of pairs attacking queens.4Neighbors are states where one queen has been moved.Hill climbing will try the move that leaves the fewest remaining conflicts. It is a greedy algorithm. Therefore hill climbing doesn’t backtrack, not even for random search between ties. However, you may not want to keep track because a) it takes memory, b) if there are only global maxima/minima, or c) we’re likely to revisit states.Generalize hill climbing algorithm that we used on N-Queens for all CSP’s.5Other methods (DFS, forward search, constraint propagation) did not assign all variables up front.Min-conflicts heuristic - Select variable at random, and then give it the value that results in the fewest conflicts.67If you don’t choose which queen to move randomly, then it is easy to get stuck in a local minimum8(Zebra is a complicated murder mystery-like problem.)9This is why AI is awesome. Because simple ideas produce disturbingly large improvements.MRV is Minimum Remaining ValueDeterministic bias is bad…it is generally much better to choose randomly when choosing which queen to move.10With local search each state is a complete assignment.11How do you generate initial assignment? It is domain specific, though random is generally pretty good.T can be anythingEveryone except T has to be different than SA121314You can really choose any node as the root of the tree.1516After we give V6 a color, the graph can be treated as a tree, where V5 and V3 start 17off with one fewer acceptable colors.Here the complexity of the tree is (N-1 * d^2), done d times, so we have (N-1)*d^3For the HWs/midterm: you should think about these structural ideas, and how the 18algorithms are impacted by structure.1920What you need to


View Full Document

CMU CS 15381 - Lecture7-CSPLocal09

Documents in this Course
Planning

Planning

19 pages

Planning

Planning

19 pages

Lecture

Lecture

42 pages

Lecture

Lecture

27 pages

Lecture

Lecture

19 pages

FOL

FOL

41 pages

lecture

lecture

34 pages

Exam

Exam

7 pages

Lecture

Lecture

22 pages

Handout

Handout

11 pages

Midterm

Midterm

14 pages

lecture

lecture

83 pages

Handouts

Handouts

38 pages

mdp

mdp

37 pages

HW2

HW2

7 pages

nn

nn

25 pages

lecture

lecture

13 pages

Handout

Handout

5 pages

Lecture

Lecture

27 pages

Lecture

Lecture

62 pages

Lecture

Lecture

5 pages

Load more
Download Lecture7-CSPLocal09
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Lecture7-CSPLocal09 and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Lecture7-CSPLocal09 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?