Professional Documents
Culture Documents
1-AI Excercises
1-AI Excercises
1-AI Excercises
(breadth-first) = # 0-3:; .1
(uniform-cost) 4 0 ? . 0-3:; .2
(depth-first) A2# 0-3:; .3
3 A2# (depth-limited) 1' A2# 0-3:; .4
(iterative deepening) A2# ?' + . 0-3:; .5
E; = # 0-3:; F3% = (bidirectional) &3E; 0-3:; .6
1
\ : (consistent) I % (admissible) & 3 [P hD Q &% .1
. &% ! 0 & 3 [P !Q E " P Z:' N ; & "3 Y * 8 .2
. U * ? E Q ! ?' K 0M : 6' hD & "3 Y * W)X 0% E " P & "3 Y * .3
0-3:; G3 0 8 hD & "3 Y * F3% , Z:' N W (frontier) , 6' #02-' /* 01
: !"
(greedy best-first) ] N 3E 0-3:; .4
A* 0-3:; .5
8 . &' F3% ?* 8 "I I0J; (explored set) "' #02-' H G3 0
*, 6' ()* ' &3 (successor) QOP KH N ) K L' &* 0M
KH N &3 0 &' O V' ! 0 # . 0 &' R S3 T !0 # % &: J )F U* *
. 0 &' R S3 R W)X K 3 0; QOP
A B C D E F G H
1 7 5 6 3 5 6 9 8
2 6 5 2 1 5 5 8 7
3 4 4 3 4 4 5 5 6
4 3 4 3 3 3 1 4 4
5 4 2 2 1 1 1 2 4
6 2 3 3 2 1 3 5 6
7 4 4 3 3 1 5 8 8
8 2 3 5 2 1 6 8 8
N -' KH &? & ]* R S3 K 0M ) !" 0-3:;
W' # KH G3 0 8 [I 01
.( b c0d0'
.3 Tabu : F3% G -' 4 & 03' 5 V ! ?' (hill climbing) 0 e* .1
T -' c a &Q .- &' -' c 3 (random restart) & ]* -' c 0 e* .2
. F5 D2
(ΔE < 0) * T R S3 ! ?' K 0M . ?* 10 (simulated annealing) % ) )* .3
: % K 0M % ^_ U * * ?*
Step 1 2 3 4 5 6 7 8 9 10
P(next-worse) 0 1 0 0 1 0 0 0 1 0
2
. % 4 " % 2% 4 Minimax 6' !Q % W? 4 8 &"S – 4
\ % 6_ !Q ^_ 2% 4 % 4 ( ply g] ) A2# .1
. ! W b Minimax G 2]* .2
3
; (minimum remaining values – MRV) 2 X 6' N 32 & "3 Y 0* U * * /3' R S3 •
R S3 W ) 0 &' R S3 32 2 /3' 0 ! :? 0 /3' _ G I . 0 &' F3% (degree)
.( 0 b /3'
. 0 &' F3% (least constraining value – LCV) 2 &I 6' 6' & "3 Y * 6' R S3 •
. 0 &' F3% (arc consistency) I % & 3)' (forward checking) 0J; &% 7 ` 3 3% •
#02-' /3') * #02-' /3' N * * (backjumping) U6# 7 P 7 IU6# K 0M •
. 0 &' F3% ( % & 6' 2 * (conflict set) *
8.6 .1
8.9 .2
8.10 .3
8.24 .4
9.9 .5