leaks_cert.pl

来自「超多的prolog源代码 具体内容见压缩包里面的programs.txt」· PL 代码 · 共 16 行

PL
16
字号
% A toy knowledge base (Fig. 15.5 translated to Prolog)

if  kitchen_dry and hall_wet  then   leak_in_bathroom : 1.   % Certainty 1

if  hall_wet and bathroom_dry  then  problem_in_kitchen : 0.9.  % Certainty 0.9

if  window_closed or no_rain  then  no_water_from_outside : 1.

if  problem_in_kitchen and no_water_from_outside  then  leak_in_kitchen : 1.

given( window_closed, 0).
given( hall_wet, 1).
given( bathroom_dry, 1).
given( no_rain, 0.8).
given( kitchen_dry, 0).

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?