开发者

solve the Unification problems in prolog given below

开发者 https://www.devze.com 2022-12-07 20:01 出处:网络
Do these开发者_开发问答 terms unify? Why? likes(jax, X). and likes(X, jin). food(X, Y, Z). and food(M, M, M).

Do these开发者_开发问答 terms unify? Why?

  1. likes(jax, X). and likes(X, jin).

  2. food(X, Y, Z). and food(M, M, M).

  3. food(b, c, d(a)). and food(X, X, X).

In below clause, X will instantiate to what value?

  1. [X|Y]= [likes(jin, black(dog)),likes(kate, dog)].

I need the answer for the above query and justify the answer.

0

精彩评论

暂无评论...
验证码 换一张
取 消