,


- 5


a 5 4 6 -1 7 3 1 5 6 4 3

b -5 0 1 -2 -4 2 -7 -5 7 -1 -4

a -2 5

 

.10.2 mini

 

-? ?. int , . ,

max Æ = -¥, min Æ = +¥

opt, a-b-:

fcp setopt = (player s, set position m, eint gr, eint min) eint:

if maxopt(s, p) £ gr then gr

else -setopt(gegner(s), Z(s, p), -min, -gr);

if a £ then gr

elif gr < a < min then setopt(s, m\{p},gr, a)

else setopt(s, m\{p},gr, min)

fi

fi

 

.

1.      setopt min gr .

2.      gr min gr < min

3.      setopt gr = -¥ min = +¥

- :

         a £ gr Þ gr ( )

         gr < a < min Þ setopt(s, m\{p},gr, a) ( min)

         min £ a Þ setopt(s, m\{p},gr, min) ( min)