70
CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial Intelligence Semester 2 - 2007 Part II: Lecture 1 1 of 70

CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

CS 367

Artificial Intelligence

Part II: Search & Planning

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 1 of 70

Page 2: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

Contact Info Lecturer: Mike Barley Office: C-394 Email: [email protected] Office Hours: by arrangement

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 2 of 70

Page 3: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

Course Info for Part II

Assignment 2: Available on web: 20 August

Due: 24 September Topics: • Problem Solving and Search • Search Algorithms

o Uninformed Search Algorithms o Informed Search Algorithms

• Planning o Totally-Ordered Plans o Partially-Ordered Plans

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 3 of 70

Page 4: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� �� �� �� �� � � � � � � � �� �

�� �� �� � � ��� � � �� �� � ! "

#$ % &'() * +, (- '. /0 123 4 2

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 4 of 70

Page 5: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

�� ��� ��

� � " �� ) � ' � ! � ) �� � # # �� � !

� � " �� ) � ' � 1 + � !

� � " �� ) � ' , � " '0 ) �� ��

� � � ' + ) � +" �� ) � ' !

� � !� 3 ! � " 3 - ) # � "� �- ' !

#$ % &'() * +, (- '. /0 123 4 *

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 5 of 70

Page 6: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � �� �� � � � � � �� � � � �� � � �

� � ! �"� 3 � �� , � " ' � , # �� �" ) # �� � 7

� �� � ��� ��� � � ��� � � � � �� � � �� � � � �� � � � "! #$! "% &(' ) � ' *+, +- ./ 0,

*�1 � �2 3! 45 +, +- ./ 0, 67 8"9 7, - 7 5 /, / ./+: : ; 7< = . ;3% >% ! 5 6 0< 7? 7 6- @/ = ./ 0, 0A .B 7- 9 @ @7, .C 0 @: ? 6 .+ .7

DFE >G 5 + H 0+: 5 /, / ./+: : ;, 9: :

#EI G! J 5 + = @ 0K: 7< A 0 @< 9: + ./ 0,

3% >% ! L M �NO �� � � �O �� � 3% >% ! P "! #$! "% & � 3! 4 / 6 7< = . ; �Q )

DFE > G LR � �� S �O �� � T � O � � 3% >% ! &

#EI G! J L R � �� S �O �� � � ��� � � � � 3% >% ! P DFE >G &3! 4 L �� O �UV � #EI G! J &> $% WEX L Y� U � � � � � NO � � � � � 3! 4 P 3% >% ! &3! 4 L Y� � O �� N � � � 3! 4 P 3% >% ! &' ) � ' > $% WE X

5 � � � 7 �-� !� !Z [\] ^ +" � � ) � ' ! � ) �� � #_ ! � )0 �� �� � � �30 � � � @ � 1 � ! 3 ) � ! � � � B

`] a\] ^ +" �� ) � ' ! � ) �� � #� � � � ) � � ! 3 �� � # / � �- �0 � 3 � ' + ) � � � <� � / ) � � # ��#$ % &'() * +, (- '. /0 123 4b

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 6 of 70

Page 7: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

�� � � � �� � � � � � �� �

�� - � )� � 1� � � � ' � � _ 30 " " �� � ) 1� � " � �

4 )� # - � ) � � � ! � � ' � " " � / , " � ' �0 3 - " � ! �

4 � " '0 ) � � # � ) 7

� �� � �0 3 - " � ! �

4 � " '0 ) � � +" �� ) � ' 7

��� � ^ � 7 � "� �0 ! 3� �� � !

� � �\ Z ] � 7 � "� � �� � �/ � �� 3� �� � !

4 � � � ! � )0 �� �� 7! � �0 �� 3 � � , 3� �� � !9 �� # � 9 " � 9 �� � � 0 9 4 # " !9 �0 3 - " � ! �

#$ % &'() * +, (- '. /0 123 4 4

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 7 of 70

Page 8: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

�� � � � �� � � � � � �� �Giurgiu

UrziceniHirsova

Eforie

Neamt

Oradea

Zerind

Arad

Timisoara

Lugoj

Mehadia

DobretaCraiova

Sibiu Fagaras

Pitesti

Vaslui

Iasi

Rimnicu Vilcea

Bucharest

71

75

118

111

70

75

120

151

140

99

80

97

101

211

138

146 85

90

98

142

92

87

86

#$ % &'() * +, (- '. /0 123 4�

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 8 of 70

Page 9: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � �� �� � � � �� �

� � � �" '� � � ! �� 3 9 ,0 ) ) 1 �� ! �" � � ) �� � �\] � a ^�� ��� � ^ ��� Z a ^ # �� � <� � / ! � � 3 � ) 1 / -� 3 - ! � � �� � / � ) ) � �� � _ ! � )0 �� �� � ! ! � �0 �� 3 �

5 �� �� � ! �" � � ) �� � �Z ] �Z � � ] � ��� Z a ^ # �� � ' 1 - � �� �� � � / - �" �� �� !_ ! � )0 �� �� (� , � 1 .� ! ! � �0 �� 3 �

5 �� � � � �" '� � � ! �� 3 � � & � " + " �� ) ) 1 �� ! �" � � ) �� � �Z ] �\] � ^] � � ��� Z a ^

+ �" 3 � + � ! +" � �� � �] ^ � � , � " ' �� �� � �0 � 30 " " �� � ! � � �

! � )0 �� �� � ! � � ^ ^ � " �Z a\ � �� , � �� \] � ^� a ^� � ^ ! � " 3 - 9 � � �30 �� ��

�� <� � / � ! � � � ! + 3 �� � ^� � aZ � � �\ Z ] �� Z a ^ ( @�� )� � � B .#$ % &'() * +, (- '. /0 123 4�

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 9 of 70

Page 10: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

�� � � � �� � � �� � � � � � � � �

�� � # ) � � ! � � � 9 ! � " �� � � �� � � )0 �� �� � �

1 2

3 4

5 6

7 8

#$ % &'() * +, (- '. /0 123 4�

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 10 of 70

Page 11: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

�� � � � �� � � �� � � � � � � � �

�� � # ) � � ! � � � 9 ! � " �� � � �� � � )0 �� �� � �

� �� ��� � �� � �

� �� , � " ' � �9 ! � " �� � ��� ��� ��� ��� ��� ��� ��� ��� ��� # � 9 � � ��� � # � � ! � � � � �� ��� �� �� � � )0 �� �� � �

1 2

3 4

5 6

7 8

#$ % &'() * +, (- '. /0 123 4 �

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 11 of 70

Page 12: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

�� � � � �� � � �� � � � � � � � �

�� � # ) � � ! � � � 9 ! � " �� � � �� � � )0 �� �� � �

� �� ��� � �� � �

� �� , � " ' � �9 ! � " �� � ��� ��� ��� ��� ��� ��� ��� ��� ��� # � 9 � � ��� � # � � ! � � � � �� ��� �� �� � � )0 �� �� � �

� �� ��� � �� � � ��� � � � �� � �

� �� �� � # �� 3 1 9 ! � " �� � � ��0 " + - 1�� ! / 7 � � � 3 � �� " � 1 3 ) � � 3 " + � �

� 3 ) ! �� !� � # 7 �� " �9 ) � 3 �� �� �� ) 1�� � )0 �� �� � �1 2

3 4

5 6

7 8

#$ % &'() * +, (- '. /0 123 4 2 �

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 12 of 70

Page 13: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

�� � � � �� � � �� � � � � � � � �

�� � # ) � � ! � � � 9 ! � " �� � � �� � � )0 �� �� � �

� �� ��� � �� � �

� �� , � " ' � �9 ! � " �� � ��� ��� ��� ��� ��� ��� ��� ��� ��� # � 9 � � ��� � # � � ! � � � � �� ��� �� �� � � )0 �� �� � �

� �� ��� � �� � � ��� � � � �� � �

� �� �� � # �� 3 1 9 ! � " �� � � ��0 " + - 1�� ! / 7 � � � 3 � �� " � 1 3 ) � � 3 " + � �

� 3 ) ! �� !� � # 7 �� " �9 ) � 3 �� �� �� ) 1�� � )0 �� �� � �

� �� ��� � ��� � �� � � �� �� � � �

1 2

3 4

5 6

7 8

#$ % &'() * +, (- '. /0 123 4 2 2

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 13 of 70

Page 14: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

�� � � �� � � � � �� � � �� �� � � � � � � � � �� � �

��� Z a ^ � ! � �� � � � � 1 , �0 "� � � ' ! 7

\] \ �\ � a � �� � ^ �� # � 9 @ � " � B

�� � � ^ � �Z � ��] � �\ Z ] � ��� �� ! � � � , 3 �� �� ! � � � + � " !

�� # � 9 � ��� � � �� �� � � �� � � ��� � � � � ��� � � ��� � � �

�Z � a � ^ � � 9 3 � � �

^� � a\ �\ � 9 �� # � 9 � � @ � �0 3 - " � ! �B

\ � a\ �\ � 9 �� # � 9�� �� � � � ��� �

�� �� �Z �� ( � �� �� � � .�� # � 9 !0 ' � , �� ! � � 3 � !9 � 0 '� �" � , 3 �� �� ! � � �30 � �� 9 � �3 �

� ��� � � � �� ! �- � ! � � + 3 � ! �9 ! !0 ' �� �� � � ���

�Z a� �\ Z ] � ! ! � �0 �� 3 � � , 3 �� �� !) � �� � # , " � ' �- �� � � �� ) ! � � � �� # � ) ! � � �

#$ % &'() * +, (- '. /0 123 4 2D

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 14 of 70

Page 15: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

�� �� � �� � � � � � � �� � � �� �

� � ) / � " ) �� ! � !0 " � ) 1 3 � ' + ) � �

� ! � � � ! + 3 � '0 ! �� � � � � � � � � ^� , � " +" �� ) � ' ! � ) �� � #

( � ! �" 3 � . ! � � � � ! � � � , " � ) ! � � � !

( � ! �" 3 � . 3 �� �� � 3 � ' + ) � � 3 � '� � � �� �� � , " � ) 3 �� �� !

�� # � 9 @ " � � � �"� � � B " � +" � ! �� � ! 3 � ' + ) � � ! � �

� , + � ! !� � ) � " �0 � � !9 � � ��0 " !9 " � ! � ! � � + !9 � �3 �4 � " #0 " � � � � � " � )� � � � )� � 19 � 1 " � ) ! � � � @� � " � B

'0 ! � # � � � � �Z ^ " � ) ! � � � @� � � �"� � � B

( � ! �" 3 � . ! � )0 �� �� �

! � � � , " � ) + �- ! �- � " � ! � )0 �� �� !� � �- � " � ) / � " ) �

� 3 - � ! �" 3 � 3 �� �� !- �0 ) � � � @ � !� �" B �- � �- � � "� #� � ) +" �� ) � ' �

#$ % &'() * +, (- '. /0 123 4 2 *

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 15 of 70

Page 16: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

�� � � � �� � � �� � � � � � � � � � � � �� � � �� � � � � � �

R

L

S S

S S

R

L

R

L

R

L

S

SS

S

L

L

LL R

R

R

R

! � � � ! � �

3 �� �� ! � �

# � ) � � ! � � �

+ �- 3 � ! � � �

#$ % &'() * +, (- '. /0 123 4 2b

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 16 of 70

Page 17: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

�� � � � �� � � �� � � � � � � � � � � � �� � � �� � � � � � �

R

L

S S

S S

R

L

R

L

R

L

S

SS

S

L

L

LL R

R

R

R

! � � � ! � � 7� � � � # �" �� " � � � " � � � � ) � 3 �� �� ! (� #� � " � �� " �� Z �] � � . 3 �� �� ! � � 7 � � � �9 � � ��� �9 � � � 9� � � �

# � ) � � ! � � � 7� � �� " �

+ �- 3 � ! � � � 7 � + �" 3 �� �� (� , � " � � � � .

#$ % &'() * +, (- '. /0 123 4 2 4

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 17 of 70

Page 18: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

�� � � � �� � � �� � � �� � � ��

2

Start State Goal State

51 3

4 6

7 8

5

1

2

3

4

6

7

8

5

! � � � ! � �

3 �� �� ! � �

# � ) � � ! � � �

+ �- 3 � ! � � �

#$ % &'() * +, (- '. /0 123 4 2�

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 18 of 70

Page 19: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

�� � � � �� � � �� � � �� � � ��

2

Start State Goal State

51 3

4 6

7 8

5

1

2

3

4

6

7

8

5

! � � � ! � � 7� � � � # �" ) � 3 �� �� ! � , �� ) � ! (� #� � " �� � � �" ' ��� � � + � !� �� �� ! . 3 �� �� ! � � 7 ' � � �� ) � < ) � , �9 "� # - �9 0 + 9 � � / � (� #� � " �0 ��

' '� � # � �3 � .# � ) � � ! � � � 7� # � ) ! � � � ( #� � �� .+ �- 3 � ! � � � 7 � + �" ' � � �

�5 � � � 7 � + �� ' ) ! � )0 �� �� � ,� � �0 � � ) � , '� ) 1� ! 5 � �- " �

#$ % &'() * +, (- '. /0 123 4 2�

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 19 of 70

Page 20: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

�� � � � �� � � �� � �� � � � �� � � � �

R

RRP

R R

! � � � ! � � 7 " � ) � � )0 � � 3 � � " �� � � � ! � ,

" �� � ���� � � � # ) � !

+ " � ! � , �- � ���

�3 � � � � � ! ! � '� ) � �

3 �� �� ! � � 7 3 �� �� � 0 �0 ! ' � �� �� ! � , " �� � ���� � � !

# � ) � � ! � � � 7 3 � ' + ) � � � ! ! � '� ) 1 \ �� ] Z � Z Z � \] � a� � ^ � �

+ �- 3 � ! � � � 7 �� ' � � � � � �30 � �

#$ % &'() * +, (- '. /0 123 4 2�

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 20 of 70

Page 21: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� �� � �� � �� � � � � � �� � � � �

� !� 3� � � 7� �� � � 9 !� '0 ) � �� � � + ) � " �� �� � , ! � � � ! + 3 �

� 1 # �� �" �� � # !0 3 3 � ! ! � " ! � , ) " � � 1 � � � + ) � " � � ! � � � !

( � <� � ^ � �� ] � \] � ! � � � ! .

� �� � � �� � � �� O �UV � #EI G! J P 3% # >% ! D� &' ) � ' * + 6 0: 9 ./ 0, 5 0 @ A + /: 9 @7

/, / ./+: /� 7 . B 7 67 + @- B . @7 7 9 6 /, H .B 7 /, / ./+: 6 .+ .7 0A #EI G! J

� � � ��� � � . B 7 @7 + @7, 0- +, ? /? + .7 6 A 0 @ 7� =+, 6/ 0, �Q ) ' ) � ' A + /: 9 @7

- B 0 0 67 + : 7 + A, 0? 7 A 0 @ 7� =+, 6/ 0, +- - 0 @? /, H . 0 3% # >% ! D� � . B 7, 0? 7- 0, .+ /, 6+ H 0+: 6 .+ .7 �Q ) ' ) � ' . B 7- 0 @ @7 6 = 0, ? /, H 6 0: 9 ./ 0,

) � * ) 7� =+, ? . B 7, 0? 7 +, ? + ? ? . B 7 @7 69: ./, H, 0? 7 6 . 0 . B 7 67 + @- B . @7 7

) �

#$ % &'() * +, (- '. /0 123 4 2 �

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 21 of 70

Page 22: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� �� � �� � �� � � � � � � ��

Rimnicu Vilcea Lugoj

ZerindSibiu

Arad Fagaras Oradea

Timisoara

AradArad Oradea

Arad

#$ % &'() * +, (- '. /0 123 4 D �

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 22 of 70

Page 23: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� �� � �� � �� � � � � � � ��

Rimnicu Vilcea LugojArad Fagaras Oradea AradArad Oradea

Zerind

Arad

Sibiu Timisoara

#$ % &'() * +, (- '. /0 123 4 D 2

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 23 of 70

Page 24: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� �� � �� � �� � � � � � � ��

Lugoj AradArad OradeaRimnicu Vilcea

Zerind

Arad

Sibiu

Arad Fagaras Oradea

Timisoara

#$ % &'() * +, (- '. /0 123 4 D D

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 24 of 70

Page 25: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � �� � � � � � �� � � � � � � �� � � � � � � �� �

� �� � ^� ! (" � +" � ! �� � �� �� � , . + - 1 !� 3 ) 3 �� � #0 " �� ��

] Z � ^� ! � � ! �"0 3 �0 " � 3 �� ! �� �0 �� � # + " � � , ! � " 3 - �" � �� � 3 )0 � � ! �� � ^] � 9 �� \ a� � ^] 9 � ^ � �� 9 �� �� �Z �� � ��� �

� �� � ^ � � � � � � - � � + " �� � !9 3 -� ) � " �� 9 � � + �- 9 � " + �- 3 � ! � �

1

23

45

6

7

81

23

45

6

7

8

State Node depth = 6

g = 6

state

parent, action

6 - � �� �� �� ,0 � 3 �� �� 3 " � � � !� �/ � � � � !9 � ) )� � #� � �- � � "� �0 ! � � ) � ! � �

0 !� � # �- � � �� � �� � �� �� � ��� �� � �� � �� � �� � � �� �� � � � �� � �� ! � " � �� � �� #

$% & '()* + ,- ). (/ 01 234 5 6 +

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 25 of 70

Page 26: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

�� ��� � � �� �� �� � � �� �� � � �� � � � � � ��

� �� ��� ��� �� ��� ��� ��� !�"# $%&' ( )"* + ,& -/. 0 � �. � 123 45 678 49 : 4;< 2 8 5 6; =

)"* + ,& >?@ A� �B /C � D ��� E FG � ?@ HB H� I� � B� B � J! "# $% &' K - : )"* + ,& -L � � M�N �� � )"* + ,& 83 =O P�7 Q �R 0� . 0 � �. � < 2 8 5 6; =

+# S& > T �U FV ��� W � F@ B )"* + ,& -� � X F� I�� � AB J!�"# $%&' K2 P P58 =Y 7 4 � B� B � +# S& -3 6Z Z = =Y3 . 0 � �. � +# S&

)"* + ,& >?@ A� �B[ I I /\] ^� @ G +# S& :! "# $% &' - : )"* + ,& -

� �� ��� �� \] ^� @ G +# S& (!�"# $%&' -/. 0 � �. � 12 3 =7 4< 9 4 Y =3

_`a a & _ _# " _ > 7b = =O P�7 Q3 =7

� �. 0c �R dae * # + (" & _` %e � � �f � � � A A F �� W@ J! "# $% &' K � B� B � J +# S& K -N �

_ > 2 9 =g E FG �

h� � �@ B� E F G � J _ K > +# S& i[ � B H F@ J _ K > dae * # + i � B� B � J _ K > " & _` %e

h� B� � j F AB J _ K > h� B� � j F AB J +# S& K�k � B � ^� j F AB +# S& : dae * # + : _ -l � ^ B� J _ K > l � ^ B� J +# S& K�k m

2 Y Y _ 7 4 _`a a & _ _# " _

. 0 � �. � _`a a & _ _# " _

$% & '()* + ,- ). (/ 01 234 5 6n

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 26 of 70

Page 27: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � � �� �� � � � � � �

� � �� � � � "� ! � �� � � � � �!� �! � " �� �� � �� �� � � � � � �� ���

�� �� � � "! �� � � � �� � � �� � �� � � �� " � � �� � � � �� �� " � � �� ! � � � !"

# � $ � �� �� � ! !% � � � ! �� � �� � � ! � � � � ! � � �� � �� �� �� � �& � !� !'

� � � # � $ � �& �� � % � � ( � � �� � � � � ! " �� � �� � � � ) � & $� � � ��

! $� # � # � $ � �& �� � % � & � � � � ( � � �� � � � � ! �� � � ��

� $� � � � �� � % � � � ! �� � �� � � ! � � � � � �� !�+* # � !� ! � � �� � �� '

, � � � � � ! $� # � # � $ � �& �� � � � � �� ! � � �� �� � � � ! ��

- % � & � � ( �� � # � �� " � � #� � � �� � � � ! �� � # � � � � �

. % � � $� � �� � � � � �� !�+* # � !� ! � � �� � ��

/ % � & � � � � $� � �� � � � !� � � � ! $� # � 0 � � ( � 1 2$% & '()* + ,- ). (/ 01 234 5 6 5

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 27 of 70

Page 28: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � � � � � �� � � � �� �� � � � � � �

� � � �� � � !� �� � � " � � ! � ! � � � �� � � � �� � � � � � � �� � � � � �� ( � �

�� � � � $ � � ( � � � �� � �� � ��

� � �� � � �* � � !� ! �� � # �

� � �� � � * # � !� ! �� � # �

� � $� �* � � !� ! �� � # �

� � $� �* � � �� � � ! �� � # �

�� � �� � �� � � � � $ �� �� " ! �� � # �

$% & '()* + ,- ). (/ 01 234 5 6

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 28 of 70

Page 29: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � � � �� � � � � � � � ��

� & $� � � ! �� � � � � � !� �� � & $� � � �� � � � �

� $ � � �� � � � � �� "

���� � � � ! � � � � � � � � � � � # � # � � �� ! � # # � ! ! � � ! " � � � �� �

A

B C

D E F G

$% & '()* + ,- ). (/ 01 234 5 6 �

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 29 of 70

Page 30: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � � � �� � � � � � � � ��

� & $� � � ! �� � � � � � !� �� � & $� � � �� � � � �

� $ � � �� � � � � �� "

���� � � � ! � � � � � � � � � � � # � # � � �� ! � # # � ! ! � � ! " � � � �� �

A

B C

D E F G

$% & '()* + ,- ). (/ 01 234 5 6 �

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 30 of 70

Page 31: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � � � �� � � � � � � � ��

� & $� � � ! �� � � � � � !� �� � & $� � � �� � � � �

� $ � � �� � � � � �� "

���� � � � ! � � � � � � � � � � � # � # � � �� ! � # # � ! ! � � ! " � � � �� �

A

B C

D E F G

$% & '()* + ,- ). (/ 01 234 5 6 �

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 31 of 70

Page 32: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � � � �� � � � � � � � ��

� & $� � � ! �� � � � � � !� �� � & $� � � �� � � � �

� $ � � �� � � � � �� "

���� � � � ! � � � � � � � � � � � # � # � � �� ! � # # � ! ! � � ! " � � � �� �

A

B C

D E F G

$% & '()* + ,- ). (/ 01 234 5 +�

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 32 of 70

Page 33: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � �� � � � � � � � � � �� � � � � � � � ��

� � $ � �� � ' '

�� � ��� �� � �� �� ��� � �

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 33 of 70

Page 34: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � �� � � � � � � � � � �� � � � � � � � ��

� � $ � �� � ' ' � � ! 0 �� - � ! � � �� � 2

, � � ' '

�� � ��� �� � �� �� ��� � �

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 34 of 70

Page 35: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � �� � � � � � � � � � �� � � � � � � � ��

� � $ � �� � ' ' � � ! 0 �� - � ! � � �� � 2

, � � ' ' � � - � -�� � -�� � � � � � -�� � - -�� � � � � -�� �� � � �� � � � �& $ � �� .

� $� # � ' '

�� � ��� �� � �� �� ��� �

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 35 of 70

Page 36: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � �� � � � � � � � � � �� � � � � � � � ��

� � $ � �� � ' ' � � ! 0 �� - � ! � � �� � 2

, � � ' ' � � - � -�� � -�� � � � � � -�� � - -�� � � � � -�� �� � � �� � � � �& $ � �� .

� $� # � ' ' � -�� �� � 0 � � � $ ! � � � �� � � � � �� � � �� 2

� $� � � �' '

�� � ��� �� � �� �� ��� � n

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 36 of 70

Page 37: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � �� � � � � � � � � � �� � � � � � � � ��

� � $ � �� � ' ' � � ! 0 �� - � ! � � �� � 2

, � � ' ' � � - � -�� � -�� � � � � � -�� � - -�� � � � � -�� �� � � �� � � � �& $ � �� .

� $� # � ' ' � -�� �� � 0 � � � $ ! � � � �� � � � � �� � � �� 2

� $� � � �' ' � � ! 0 �� # � !� � � $ � � !� � $ 2�� � �� � $� � � � �� � �� � �� �

� �� �� � ! � � � ( � � $ � � ( � � � #� � �� ! � �� � �� � �� � � � � � � ! � � � �� � ) ! � #

! � � � ! � �� � � �

�� � ��� �� � �� �� ��� � �

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 37 of 70

Page 38: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � � � � � � � � � � ��

� & $� � � � �� !�+* # � !� �� �& $� � � � � � � � �

� $ � � �� � � � � �� "

���� � � � � � � � � �� � � �� (� $� � � # � !�

� � �� � � �� � � � ( � �� � � �* � � !� �� !� � $ # � !� ! � � � � �� �

� � $ � �� � ' ' � � ! � �� !� � $ # � !� � �

, � � ' ' � �� � � � � ! � �� � � � # � !� �� � $� � � � ! � � �� � �� � � -���� �� �

� � � � � ��� � ! � � � # � !� �� � � � � $� � � � ! � � �� � ��

� $� # � ' ' � �� � � � � ! � �� � � � # � !� �� � $� � � � ! � � �� � �� � � -���� �� �

� $� � � �' ' � � !% � � � � ! �& $� � � � � �� �� # � �� ! �� � � �� � � �� � �� ��� � ��� �� � �� �� ��� �

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 38 of 70

Page 39: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � �� � � � � � � � ��

� & $� � � � � � $ � !� �� �& $� � � �� � � � �

� $ � � �� � � � � �� "

���� � � � � � � � � � � � � �� � � � $ �� ! � # # � ! ! � � ! � � � � �� �

A

B C

D E F G

H I J K L M N O

�� � ��� �� � �� �� ��� � �

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 39 of 70

Page 40: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � �� � � � � � � � ��

� & $� � � � � � $ � !� �� �& $� � � �� � � � �

� $ � � �� � � � � �� "

���� � � � � � � � � � � � � �� � � � $ �� ! � # # � ! ! � � ! � � � � �� �

A

B C

D E F G

H I J K L M N O

�� � ��� �� � �� �� ��� � �

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 40 of 70

Page 41: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � �� � � � � � � � ��

� & $� � � � � � $ � !� �� �& $� � � �� � � � �

� $ � � �� � � � � �� "

���� � � � � � � � � � � � � �� � � � $ �� ! � # # � ! ! � � ! � � � � �� �

A

B C

D E F G

H I J K L M N O

�� � ��� �� � �� �� ��� � �

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 41 of 70

Page 42: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � �� � � � � � � � ��

� & $� � � � � � $ � !� �� �& $� � � �� � � � �

� $ � � �� � � � � �� "

���� � � � � � � � � � � � � �� � � � $ �� ! � # # � ! ! � � ! � � � � �� �

A

B C

D E F G

H I J K L M N O

�� � ��� �� � �� �� ��� � n �

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 42 of 70

Page 43: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � �� � � � � � � � ��

� & $� � � � � � $ � !� �� �& $� � � �� � � � �

� $ � � �� � � � � �� "

���� � � � � � � � � � � � � �� � � � $ �� ! � # # � ! ! � � ! � � � � �� �

A

B C

D E F G

H I J K L M N O

�� � ��� �� � �� �� ��� � n �

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 43 of 70

Page 44: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � �� � � � � � � � ��

� & $� � � � � � $ � !� �� �& $� � � �� � � � �

� $ � � �� � � � � �� "

���� � � � � � � � � � � � � �� � � � $ �� ! � # # � ! ! � � ! � � � � �� �

A

B C

D E F G

H I J K L M N O

�� � ��� �� � �� �� ��� � n �

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 44 of 70

Page 45: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � �� � � � � � � � ��

� & $� � � � � � $ � !� �� �& $� � � �� � � � �

� $ � � �� � � � � �� "

���� � � � � � � � � � � � � �� � � � $ �� ! � # # � ! ! � � ! � � � � �� �

A

B C

D E F G

H I J K L M N O

�� � ��� �� � �� �� ��� � n

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 45 of 70

Page 46: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � �� � � � � � � � ��

� & $� � � � � � $ � !� �� �& $� � � �� � � � �

� $ � � �� � � � � �� "

���� � � � � � � � � � � � � �� � � � $ �� ! � # # � ! ! � � ! � � � � �� �

A

B C

D E F G

H I J K L M N O

�� � ��� �� � �� �� ��� � n n

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 46 of 70

Page 47: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � �� � � � � � � � ��

� & $� � � � � � $ � !� �� �& $� � � �� � � � �

� $ � � �� � � � � �� "

���� � � � � � � � � � � � � �� � � � $ �� ! � # # � ! ! � � ! � � � � �� �

A

B C

D E F G

H I J K L M N O

�� � ��� �� � �� �� ��� � n �

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 47 of 70

Page 48: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � �� � � � � � � � ��

� & $� � � � � � $ � !� �� �& $� � � �� � � � �

� $ � � �� � � � � �� "

���� � � � � � � � � � � � � �� � � � $ �� ! � # # � ! ! � � ! � � � � �� �

A

B C

D E F G

H I J K L M N O

�� � ��� �� � �� �� ��� � n

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 48 of 70

Page 49: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � �� � � � � � � � ��

� & $� � � � � � $ � !� �� �& $� � � �� � � � �

� $ � � �� � � � � �� "

���� � � � � � � � � � � � � �� � � � $ �� ! � # # � ! ! � � ! � � � � �� �

A

B C

D E F G

H I J K L M N O

�� � ��� �� � �� �� ��� � n �

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 49 of 70

Page 50: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � �� � � � � � � � ��

� & $� � � � � � $ � !� �� �& $� � � �� � � � �

� $ � � �� � � � � �� "

���� � � � � � � � � � � � � �� � � � $ �� ! � # # � ! ! � � ! � � � � �� �

A

B C

D E F G

H I J K L M N O

�� � ��� �� � �� �� ��� � n �

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 50 of 70

Page 51: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � � � �� � � � � � �� � � � � � � � ��

� � $ � �� � ' '

�� � ��� �� � �� �� ��� � n �

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 51 of 70

Page 52: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � � � �� � � � � � �� � � � � � � � ��

� � $ � �� � ' ' � � " � � � � ! �� �� � � �� �* � � $� � ! $� # � ! � ! $� # � ! � �� � � � � $ !

� � � �� � � � � � � �� � � $ �� � �� !� � � � ! � � �� � $� � �

� # � $ � �� � �� � � �� � ! $� # � !

, � � ' '

�� � ��� �� � �� �� ��� � ��

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 52 of 70

Page 53: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � � � �� � � � � � �� � � � � � � � ��

� � $ � �� � ' ' � � " � � � � ! �� �� � � �� �* � � $� � ! $� # � ! � ! $� # � ! � �� � � � � $ !

� � � �� � � � � � � �� � � $ �� � �� !� � � � ! � � �� � $� � �

� # � $ � �� � �� � � �� � ! $� # � !

, � � ' ' � -�� �" � � � � � ( � � �� / � ! � # � �� � � � � � �� � .

( �� �� ! � � �� � �� ! � � � � �� ! � � � � ( � � # � � � !� � � � �� � ( � �� � � �* � � !�

� $� # � ' '

�� � ��� �� � �� �� ��� � ��

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 53 of 70

Page 54: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � � � �� � � � � � �� � � � � � � � ��

� � $ � �� � ' ' � � " � � � � ! �� �� � � �� �* � � $� � ! $� # � ! � ! $� # � ! � �� � � � � $ !

� � � �� � � � � � � �� � � $ �� � �� !� � � � ! � � �� � $� � �

� # � $ � �� � �� � � �� � ! $� # � !

, � � ' ' � -�� �" � � � � � ( � � �� / � ! � # � �� � � � � � �� � .

( �� �� ! � � �� � �� ! � � � � �� ! � � � � ( � � # � � � !� � � � �� � ( � �� � � �* � � !�

� $� # � ' ' � - / � � �� � � � � �� �� � ! $� # ��

� $� � � �' '

�� � ��� �� � �� �� ��� � ��

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 54 of 70

Page 55: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � � � �� � � � � � �� � � � � � � � ��

� � $ � �� � ' ' � � " � � � � ! �� �� � � �� �* � � $� � ! $� # � ! � ! $� # � ! � �� � � � � $ !

� � � �� � � � � � � �� � � $ �� � �� !� � � � ! � � �� � $� � �

� # � $ � �� � �� � � �� � ! $� # � !

, � � ' ' � -�� �" � � � � � ( � � �� / � ! � # � �� � � � � � �� � .

( �� �� ! � � �� � �� ! � � � � �� ! � � � � ( � � # � � � !� � � � �� � ( � �� � � �* � � !�

� $� # � ' ' � - / � � �� � � � � �� �� � ! $� # ��

� $� � � �' ' � �

�� � ��� �� � �� �� ��� � �

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 55 of 70

Page 56: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � �� �� � � � � �� � � � ��

� � � $� �* � � !� ! �� � # � � �� � � � $� � � � �� � �

�� � � � � � � � ! � � � � $� � � �� � � � � ! � # # � ! ! � � !

� � # � � ! �� � � $ � � �� � � � � �� "

� �� ��� �� l � ^ B� � � HU HB � G � ��� � �� ! "# $%&' :%* ' * e - . 0 � �. � 13 45 9 �< 2 8 5 � Z 67 4�

T � � f � A HV ��� l � � C � D ��� E FG � ?@ HB H� I� � B� B � J!�"# $%&' K - :!�"# $%&' :%* ' * e -

� �� ��� �� T � � f � A HV ��� l � � +# S& :!�"# $%&' :%* ' * e -/. 0 � �. � 13 4 5 9 �< 2 8 5 � Z 67 4 �

a `e # ���# a a `" " & S� > < 2 53 =

� � X F� I�� � AB J!�"# $%&' K � B� B � J +# S& K - �R 0� . 0 � �. � +# S&

0 L 1 0� � l � ^ B� J +# S& K� %* ' * e �R 0� . 0 � �. � a `e # �0 L 1 0 � �. 0c �R _`a a & _ _# " � � \] ^� @ G +# S& :!�"# $%&' -N �

" & _` %e > T � � f � A HV ��� l � � _`a a & _ _# " :! "# $% &' :%* ' * e -� �" & _` %e a `e # � �R 0� a `e # ���# a a `" " & S� > 7 ; 6 =

0 L 1 0� �" & _` %e �� ) d* % `" & �R 0� . 0 � �. � " & _` %e

� �a `e # ���# a a `" " & S� �R 0� . 0 � �. � a `e # � 0 L 1 0 . 0 � �. � ) d* % `" &�� � ��� �� � �� �� ��� � �n

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 56 of 70

Page 57: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � � � � � � � � � � � �� � � � � � � ��

� �� ��� �� ? B � �� B HV ��� l � � ^�@ H@ �� ��� � �� !�"# $%&' - . 0 � �. � 12 3 45 678 49

� � M � � 1� !�"# $%&' :2 P; 4� 5 =O

� �. S& !e � > � � � � N �

" & _` %e > l � ^ B� � � HU HB � G � ��� � �� ! "# $% &' ( S& !e � -� �" & _` %e �� Z 67 4� �R 0� . 0 � �. � " & _` %e

0� N

�� � ��� �� � �� �� ��� � � �

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 57 of 70

Page 58: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � � � �� � � � � � � �� � � � � � � �� �� �

Limit = 0 A A

�� � ��� �� � �� �� ��� � �

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 58 of 70

Page 59: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � � � �� � � � � � � �� � � � � � � �� �� �

Limit = 1 A

B C

A

B C

A

B C

A

B C

�� � ��� �� � �� �� ��� � � �

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 59 of 70

Page 60: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � � � �� � � � � � � �� � � � � � � �� �� �

Limit = 2 A

B C

D E F G

A

B C

D E F G

A

B C

D E F G

A

B C

D E F G

A

B C

D E F G

A

B C

D E F G

A

B C

D E F G

A

B C

D E F G

�� � ��� �� � �� �� ��� � � �

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 60 of 70

Page 61: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � � � �� � � � � � � �� � � � � � � �� �� �

Limit = 3

A

B C

D E F G

H I J K L M N O

A

B C

D E F G

H I J K L M N O

A

B C

D E F G

H I J K L M N O

A

B C

D E F G

H I J K L M N O

A

B C

D E F G

H I J K L M N O

A

B C

D E F G

H I J K L M N O

A

B C

D E F G

H I J K L M N O

A

B C

D E F G

H I J K L M N O

A

B C

D E F G

H I J K L M N O

A

B C

D E F G

H I J K L M N O

A

B C

D E F G

H J K L M N OI

A

B C

D E F G

H I J K L M N O

�� � ��� �� � �� �� ��� � � �

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 61 of 70

Page 62: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � � � � � � � � � � � � �� � � � � � � �� � � � � � � ��

� � $ � �� � ' '

�� � ��� �� � �� �� ��� � �

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 62 of 70

Page 63: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � � � � � � � � � � � � �� � � � � � � �� � � � � � � ��

� � $ � �� � ' ' � � !

, � � ' '

�� � ��� �� � �� �� ��� � �

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 63 of 70

Page 64: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � � � � � � � � � � � � �� � � � � � � �� � � � � � � ��

� � $ � �� � ' ' � � !

, � � ' ' . � � � -�� � . -� � . � � -� � � � � � - � � � -� �

� $� # � ' '

�� � ��� �� � �� �� ��� � �

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 64 of 70

Page 65: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � � � � � � � � � � � � �� � � � � � � �� � � � � � � ��

� � $ � �� � ' ' � � !

, � � ' ' . � � � -�� � . -� � . � � -� � � � � � - � � � -� �

� $� # � ' ' � - . �

� $� � � �' '

�� � ��� �� � �� �� ��� �

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 65 of 70

Page 66: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � � � � � � � � � � � � �� � � � � � � �� � � � � � � ��

� � $ � �� � ' ' � � !

, � � ' ' . � � � -�� � . -� � . � � -� � � � � � - � � � -� �

� $� # � ' ' � - . �

� $� � � �' ' � � ! � �� !� � $ # � !� � �

� � � ( � � � �� �� � � � & $ � � � � �� �� � � * # � !� � � � �

� � � � � #� � # � $� � � ! �� � � � - � � � � � � . � � � ! � � �� � �� � � � � � � � � �� "

� � � � � � � � �� � � � � � � � � � � � � � � � � � � � � � � � � � � � �� � �

� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �� � � �� � � � � � � � � � � � �

�� � ��� �� � �� �� ��� � n

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 66 of 70

Page 67: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

�� � � � � � � � � � � � �� �

� � �� � � � � � � � �� � � �* � � �� � � * � � $� �* � � $� �* �� � �� � �� �

� � � !� � � !� � � � !� � � �� �� � � � $ �� �� �

� � $ � �� � ' � � !� � � !� � � � � ! � �� � � . � � !

, � � -� �� - �� � - � -�� -�

� $� # � -�� �� - �� � - / - � - .

� $� � � �' � � !� � � !� � � � � � � !

�� � ��� �� � �� �� ��� � �

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 67 of 70

Page 68: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � � � � �� �� � �

� � � � � � � � � � �� � #� � � $ �� � � � !� � � � ! #� � � � �� � � �� �� � $ � � ( � � �� � � � � �& $ � � �� � �� �

�� ��

A

B

C

D

A

BB

CCCC

�� � ��� �� � �� �� ��� �

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 68 of 70

Page 69: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

� � � � � � � � ��

� �� ��� �� X �� ^� � ��� ��� !�"# $%&' ( )"* + ,& - . 0 � �. � 12 3 45 678 49 : 4; < 2 8 5 6; =

a %# _& S > 2 9 =O P7 Q3 =7

)"* + ,& >?@ A� �B /C � D ��� E FG � ?@ HB H� I� � B� B � J! "# $% &' K - : )"* + ,& -L � � M�N �� � )"* + ,& 83 =O P�7 Q �R 0� . 0 � �. � < 2 8 5 6; =

+# S& > T �U FV ��� W � F@ B )"* + ,& -� � X F� I�� � AB J!�"# $%&' K � B� B � J +# S& K - �R 0� . 0 � �. � +# S&

� � � B� B � J +# S& K83 9 4 7 8 9 a %# _& S �R 0�

2 Y Y � B� B � J +# S& K 7 4a %# _& S

)"* + ,& >?@ A� �B[ I I /\] ^� @ G +# S& :! "# $% &' - : )"* + ,& -0� N

�� � ��� �� � �� �� ��� � �

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 69 of 70

Page 70: CS 367 Artificial Intelligence Part II: Search & Planning › courses › compsci367s1c › lectures … · CS 367 Artificial Intelligence Part II: Search & Planning CS 367 Artificial

�� � � � � �

� � � ( � � � � � � �� � � � � � ! �� � �� � � � � � � ! � ( !� �� #� �� � � � � � � �� �* � � � �� � �� � � � ! � �

� �� � � � !� � � � ! $� # � � �� � #� � � �� ! � ( �� ( � �& $ � � � � �

� � � � �� � �� �� �� � � � �� ! �� � # � !� �� � � � � � !

�� � �� � �� � � � � $ �� �� � ! �� � # � � ! � ! � � �� � �� �� � ! $� # �

� � � � �� � # � � � � � � � � �� � �� � � � �� �� � � � �� � � � � � �� � !�� � ��� �� � �� �� ��� � �

CS 367 Artificial Intelligence Semester 2 - 2007

Part II: Lecture 1 70 of 70