0% found this document useful (0 votes)
18 views

Midterm Review

The document provides an overview of topics to be covered on the midterm exam, including uninformed and heuristic search algorithms, constraint satisfaction problems and their solving techniques like forward checking with heuristics, and game theory concepts like minimax search trees and alpha-beta pruning. Examples are given for applying A* search, modeling Sudoku as a CSP, and performing game tree search.

Uploaded by

jitendra rauthan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Midterm Review

The document provides an overview of topics to be covered on the midterm exam, including uninformed and heuristic search algorithms, constraint satisfaction problems and their solving techniques like forward checking with heuristics, and game theory concepts like minimax search trees and alpha-beta pruning. Examples are given for applying A* search, modeling Sudoku as a CSP, and performing game tree search.

Uploaded by

jitendra rauthan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Midterm Review

Exam time: 3:15-4:45 (90 minutes) (no aids allowed)

Search
o Uninformed search:
BFS, UCS, DFS, Depth-limited, Iterative Deepening depth-first search
§ How to perform: search order criteria
§ Evaluation: criteria
b: maximum branching factor of the
Criterion BFS UCS DFS
search tree
d: depth of the least-cost solution
Complete? Y(i) Y(ii) N
m: maximum depth of the state
Optimal? Y Y N space (may be ∞)
i: complete if b is finite;
Time O(bd) O(b1+[C*/ε]) O(bm) ii: complete if step costs ≥ ε
(positive ε)
Space O(bd) O(b1+[C*/ε]) O(bm)  
o Heuristic search:
v Greedy best-first search:
Always expand node with lowest h-value
v A*:
§ f = g + h
§ Properties:
o Admissibility: h <= h* (optimistic)
o Monotonicity: h(n1) <= c(n1,n2) + h(n2) (triangle inequality)
o Simple proof: i.e. f value non-decreasing, etc.
Example:
Trace the execution of A* for the graph shown below.

• Show the successive configurations of the frontier where the elements on


the frontier are paths. That is, the path n1 -> n2 -> n3 would be
written [n1,n2,n3]. Under each element of the frontier, indicate the f,
g and h values of the final node in the path (e.g., if g(m) = 5 and
h(m) = 7 write “12=5+7” underneath m, Remember to get the order
right, g(m) followed by h(m).

• Indicate the path that is expanded at each stage.

• Finally show the path to the goal found by A*.

• Is the heuristic admissible? Is it monotonic?

A: 9 G: 3
B: 4 H: 5
C: 5 I: 8
D: 7 J: 2
E: 3 K: 0
F: 10 L: 7

  3+8=11  
 
    I  
2+3=5  

1+4=4   E   3+2=5  
B   J  
0+9=9  
A  
2+3=5   K   4+0=4  
1+5=6    
G  
C   3+5=8   3+7=10  
H   L  
2+7=9  
D   3+10=13  
F  
CSP
o Problem formalization:
§ Variables: definition
§ Domain: possible values
§ Set of constraints (variable scopes): Binary/higher-order constraints
Example: Sudoku
§ Variables: V11, V12, …, V21, V22, …, V91, …, V99
§ Domains:
o Dom[Vij] = {1-9} for empty cells
o Dom[Vij] = {k} a fixed value k for filled cells.
§ Constraints:
o Row constraints:
§ All-Diff(V11, V12, V13, …, V19)
§ All-Diff(V21, V22, V23, …, V29)
§ ...., All-Diff(V91, V92, …, V99)
o Column Constraints:
§ All-Diff(V11, V21, V31, …, V91)
§ All-Diff(V21, V22, V13, …, V92)
§ ...., All-Diff(V19, V29, …, V99)
o Sub-Square Constraints:
§ All-Diff(V11, V12, V13, V21, V22, V23, V31, V32, V33)
§ All-Diff(V14, V15, V16,…, V34, V35, V36)

o Forward Checking algorithm: with heuristics


§ Minimum Remaining Values (MRV)
§ Generalized Arc Consistency (GAC):
Enforced GAC during search, prune all GAC inconsistent values
GAC enforced example:
Domains:
Dom[X, Y, Z]={1,2,3,4}
Dom[W] = {1,2,3,4,5}
Constraints:
C1: X = Y + Z
C2: W > X
C3: W =X+Z+Y
Give the resultant GAC consistent variable values.
Games
o General sum game: i.e. two-player
§ Min-max strategy
§ Min-max game search tree: alpha-beta pruning
§ Alpha cuts
§ Beta cuts
Example: game tree search (slides 38 in week 5)    
 
 
 
 
 
 
 

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy