.


:




:

































 

 

 

 





, , 19.1. , { ), ( , , .. ). , . . :-:. ;, , . , ;.

. . 19.1 , 19.1. , . Hi 1 , ][. Hi.

. . . , . 19.1, , , .

.

1. , ( ).

2. .

, . 19.1, . , .

1. .

2. .



II. Prolog


h_d lite r(X).


hafi_dauglitar[ X):- hos_dnughter(X)! male(Y). femole(Y).

has_daughter(X):-parent) Y, Z).

I

i

hasdaughter! X):- htis,daught0r(X)! -j, vi fcnuilo(Y), parent{5, T).

has_daughter(X):-parent(X, Z).

\

has_daughter(X):-parent! X, 2), fema!e(U).

I

has^daughtert X) :- parent) X, Z), female(Z).

. 19.1. , , 19,1.

: has_daughter{X):- parent(Y,z>.

has_daughter!x);- parent tx, Z).

X=Y. , has_daughter(X).

: has_daughter (X):- parent(Y,2).

. -, . , , . ( ). .

-, "" . . , , , .

, . , member! xl, !:- member! XI, L3).

:

member! XI, [2 | L2)):- member (Xl, L3).


19.



L1 [2 | L2]. MINIHYPER, , , . , HYPER,

. 19.1 , . MINIHYPER . HYPER .





:


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


:

:

, - , ; , - .
==> ...

1663 - | 1673 -


© 2015-2024 lektsii.org - -

: 0.007 .