Using the numbering system to help you, trace how the system will evaluate the following query as far as the first solution: ?with_adult(X)
Movie Animation Park Studio in Ipoh has launched a number of new rides. This knowledgebase contains some facts and rules about the new rides and events.
1 type(infinity,thrill). (infinity is a thrill ride)
2 type(pirates, water).
3 type(coralreef,water).
4 type(hauntedhouse,fright).
5 family_fun(farmland). (farmland is a family fun event)
6 family-fun(crazygolf).
7 suitable_for(infinity,adults). (infinity is suitable for adults)
8 suitable_for(pirates,teenagers).
9 suitable_for(coralreef,children).
10 suitable_for(hauntedhouse,children)
11 half_price(X) if
family_fun(X).
12 with_adult(X) if type(X,water) and
suitable_for(X,children)
Using the numbering system to help you, trace how the system will evaluate the following query as far as the first solution:
?with_adult(X)
Step by step
Solved in 2 steps with 1 images