.


:




:

































 

 

 

 





, , ; , "", "", - . , ( ), : " ". . ( ), , . , , . , "" "". , , , , , . , , 0 1 -5 +5. , , . , . ( ) , , .


15.



. , . (Proposition) 0 1, (CertaintyFactor). : Proposition: cartaint ractor

. , , . if Condition then Conclusion:Certainty.

. , , , 1 2, 1 2. ?l and P2, Pi or P2? . , 1 2 , (1) (2) . :

(1 and 2) - iuin(c(Pi), c(P2)) (1 or 2> = max(clPl), c<P2)>

if Pi then P2:C

:

[2) -(1] -

, . , or , , 15.7 . , ( ) : given: Proposition, Certainty)

"" ( ) (. . 15.2), , . if

hall wet and bathroom dry then

problem_in_kitchen: 0.9.

, , , , , , -, , , :

given [ hall wet, 1). %

given (bath7oom_dry, 1]. < 3

given(kitchen_dry, 0}. %

given(no_rain, 0.S). % , ,

given(window_closed, 0). %

15.7. %

% certainty! Proposition, Certainty)



II. Prolog


certainty< Pr Cert): -given(P, Cert).

certainty [ Condi and Cond2, Cert) certainty Condi, Certl), certainty; Cond2f Cert2), mini, Certl, Cert2, Cert).

certainty; Condi or Cond2, Cert) certainty! Condi, Ceftl), certainty! Cond2, Cert2), max(Certl, Cert2, Cert).

certainty (P, Cert):-

if Cond then p: el,

certainty (Condp C2),
Cert is Cl * C2.

:

?- certainty (leak in kitchen, ). - 0.8

. ,
, 0,9.
, ,

no_water_from_outside ( ) 0,8. , leak_iri_kit chert ( ) : min(0.B,0.9) = 0.8





:


: 2015-10-01; !; : 471 |


:

:

, , .
==> ...

1729 - | 1391 -


© 2015-2024 lektsii.org - -

: 0.011 .