<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Форум компьютерной помощи &mdash; PROLOG]]></title>
	<link rel="self" href="https://itpmr.ru/extern.php?action=feed&amp;tid=755&amp;type=atom" />
	<updated>2012-12-24T12:09:05Z</updated>
	<generator>PunBB</generator>
	<id>https://itpmr.ru/viewtopic.php?id=755</id>
		<entry>
			<title type="html"><![CDATA[Re: PROLOG]]></title>
			<link rel="alternate" href="https://itpmr.ru/viewtopic.php?pid=123814#p123814" />
			<content type="html"><![CDATA[<p>predicates<br />p(unsigned, real)<br />p(unsigned, real, unsigned, real)</p><p>clauses<br />p(N,Y):-<br />p(N,Y,1,1).<br />p(N,Y,N,Y):- !.<br />p(N,Y,I,J):-<br />Ni=I+1,<br />Nj=(1-1/(Ni*Ni))*J,<br />p(N, Y, Ni, Nj).</p><p>goal<br />N=4,<br />p(N, Y).</p>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>https://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2012-12-24T12:09:05Z</updated>
			<id>https://itpmr.ru/viewtopic.php?pid=123814#p123814</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: PROLOG]]></title>
			<link rel="alternate" href="https://itpmr.ru/viewtopic.php?pid=123813#p123813" />
			<content type="html"><![CDATA[<p>predicates<br />p(unsigned, real)</p><p>clauses<br />p(2, 0.75):-!.<br />p(N,Y):-<br />N1=N-1,<br />p(N1,Y1),<br />Y=(1-1/(N*N))*Y1.</p><p>goal<br />N=4,<br />p(N,Y).</p>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>https://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2012-12-24T12:09:00Z</updated>
			<id>https://itpmr.ru/viewtopic.php?pid=123813#p123813</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: PROLOG]]></title>
			<link rel="alternate" href="https://itpmr.ru/viewtopic.php?pid=123812#p123812" />
			<content type="html"><![CDATA[<p>predicates<br />sum (unsigned, real, real)<br />sum (unsigned, real, real, unsigned, real, real)</p><p>clauses<br />sum(N,A,Y):-<br />sum(N,A,Y,1,A,1).<br />sum(N,A,Y,N,A,Y):-!.<br />sum(N,A,Y,N1,A,Y1):-<br />NN1=N1+1,<br />NY1=1/exp((2*NN1-2)*ln(A))+Y1,<br />sum(N,A,Y,NN1,A,NY1).</p><p>goal<br />A=2,<br />N=3,<br />sum(N,A,Y).</p>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>https://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2012-12-24T12:08:52Z</updated>
			<id>https://itpmr.ru/viewtopic.php?pid=123812#p123812</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: PROLOG]]></title>
			<link rel="alternate" href="https://itpmr.ru/viewtopic.php?pid=123811#p123811" />
			<content type="html"><![CDATA[<p>predicates<br />sum(unsigned, unsigned, real)</p><p>clauses<br />sum(1, A, 1):- !.<br />sum(N, A, Y):-<br />N1=N-1,<br />sum(N1, A, Y1),<br />Y=1/exp((2*N-2)*ln(A))+Y1.</p><p>goal<br />N=3,<br />A=2,<br />sum(N, A, Y).</p>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>https://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2012-12-24T12:08:45Z</updated>
			<id>https://itpmr.ru/viewtopic.php?pid=123811#p123811</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: PROLOG]]></title>
			<link rel="alternate" href="https://itpmr.ru/viewtopic.php?pid=123810#p123810" />
			<content type="html"><![CDATA[<p>predicates<br />sum(unsigned, unsigned, real)</p><p>clauses<br />sum(1, A, 1):- !.<br />sum(N, A, Y):-<br />N1=N-1,<br />Y=1/exp((2*N-2)*ln(A))+Y1,<br />sum(N1, A, Y1).</p><br /><p>goal<br />N=3,<br />A=2,<br />sum(N, A, Y).</p>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>https://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2012-12-24T12:08:39Z</updated>
			<id>https://itpmr.ru/viewtopic.php?pid=123810#p123810</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: PROLOG]]></title>
			<link rel="alternate" href="https://itpmr.ru/viewtopic.php?pid=123809#p123809" />
			<content type="html"><![CDATA[<p>predicates<br />flower(symbol)<br />grow(symbol, symbol, symbol)<br />clauses<br />flower(roses).<br />flower(margaretes).<br />flower(ann_ey).</p><p>grow(R, M, A):-<br />flower(R),<br />flower(M),<br />flower(A),<br />R&lt;&gt;M,<br />M&lt;&gt;A,<br />R&lt;&gt;A,<br />not(R=roses),<br />not(M=margaretes),<br />not(A=ann_ey),<br />not(R=margaretes).<br />goal<br />grow(Rose,Margaret,Ann).</p>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>https://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2012-12-24T12:08:30Z</updated>
			<id>https://itpmr.ru/viewtopic.php?pid=123809#p123809</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: PROLOG]]></title>
			<link rel="alternate" href="https://itpmr.ru/viewtopic.php?pid=123808#p123808" />
			<content type="html"><![CDATA[<p>predicates<br />&nbsp; &nbsp; nacionalnost(symbol)<br />&nbsp; &nbsp; sport(symbol)<br />&nbsp; &nbsp; kto_kakoy_nacionalnosty(symbol,symbol,symbol)<br />&nbsp; &nbsp; kto_kakym_sportom_uvlekaetsya(symbol,symbol,symbol)</p><p>&nbsp; &nbsp; clauses<br />&nbsp; &nbsp; nacionalnost(amerikanec).<br />&nbsp; &nbsp; nacionalnost(izrailtyanen).<br />&nbsp; &nbsp; nacionalnost(avstraliec).</p><p>&nbsp; &nbsp; sport(basketbol).<br />&nbsp; &nbsp; sport(tenis).<br />&nbsp; &nbsp; sport(kriket).</p><p>&nbsp; &nbsp; kto_kakoy_nacionalnosty(M,S,R):-<br />&nbsp; &nbsp; nacionalnost(M),<br />&nbsp; &nbsp; nacionalnost(S),<br />&nbsp; &nbsp; nacionalnost(R),<br />&nbsp; &nbsp; M&lt;&gt;S,<br />&nbsp; &nbsp; M&lt;&gt;R,<br />&nbsp; &nbsp; S&lt;&gt;R,<br />&nbsp; &nbsp; not(M=amerikanec),<br />&nbsp; &nbsp; S=izrailtyanen.</p><p>&nbsp; &nbsp; kto_kakym_sportom_uvlekaetsya(M,S,R):-<br />&nbsp; &nbsp; sport(M),<br />&nbsp; &nbsp; sport(S),<br />&nbsp; &nbsp; sport(R),<br />&nbsp; &nbsp; M&lt;&gt;S,<br />&nbsp; &nbsp; M&lt;&gt;R,<br />&nbsp; &nbsp; S&lt;&gt;R,<br />&nbsp; &nbsp; M=basketbol,<br />&nbsp; &nbsp; not(S=tenis).</p><p>&nbsp; &nbsp; goal<br />&nbsp; &nbsp; kto_kakoy_nacionalnosty(Maik,Saimon,Richard) or <br />&nbsp; &nbsp; kto_kakym_sportom_uvlekaetsya(Maik,Saimon,Richard).</p>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>https://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2012-12-24T12:08:23Z</updated>
			<id>https://itpmr.ru/viewtopic.php?pid=123808#p123808</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: PROLOG]]></title>
			<link rel="alternate" href="https://itpmr.ru/viewtopic.php?pid=123807#p123807" />
			<content type="html"><![CDATA[<p>predicates<br />mesto(symbol)<br />raspr_mesto(symbol, symbol, symbol)</p><p>clauses<br />mesto(pervoe).<br />mesto(vtoroe).<br />mesto(tretie).</p><p>raspr_mesto(U,G,T):-<br />mesto(U),<br />mesto(G),<br />mesto(T),<br />U&lt;&gt;G,<br />G&lt;&gt;T,<br />U&lt;&gt;T,<br />not(G=vtoroe),<br />not(G=tretie),<br />not(T=tretie).</p><p>goal<br />raspr_mesto(Ura, Grisha, Tolya).</p>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>https://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2012-12-24T12:08:17Z</updated>
			<id>https://itpmr.ru/viewtopic.php?pid=123807#p123807</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: PROLOG]]></title>
			<link rel="alternate" href="https://itpmr.ru/viewtopic.php?pid=123806#p123806" />
			<content type="html"><![CDATA[<p>predicates<br />igrok(symbol)<br />liga_1(symbol)<br />liga_2(symbol)<br />liga_3(symbol)<br />vizov(symbol, symbol)<br />nomer (symbol, unsigned)</p><p>clauses<br />&nbsp; &nbsp;igrok(sergey).<br />&nbsp; &nbsp;igrok(dmitriy).<br />&nbsp; &nbsp;igrok(valera).<br />&nbsp; &nbsp;igrok(petr).<br />&nbsp; &nbsp;igrok(mihail).<br />&nbsp; &nbsp;igrok(nikolay).<br />&nbsp; &nbsp;igrok(alex).<br />&nbsp; &nbsp;igrok(alexandr).<br />&nbsp; &nbsp;igrok(kostya).<br />&nbsp; &nbsp;igrok(barbara).<br />&nbsp; &nbsp;igrok(anna).<br />&nbsp; &nbsp;igrok(tatiana).<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;liga_1(sergey).<br />&nbsp; &nbsp;liga_1(dmitriy).&nbsp; <br />&nbsp; &nbsp;liga_1(valera).<br />&nbsp; &nbsp;liga_1(petr).<br />&nbsp; <br />&nbsp; &nbsp;liga_2(mihail).<br />&nbsp; &nbsp;liga_2(nikolay).<br />&nbsp; &nbsp;liga_2(alex).<br />&nbsp; &nbsp;liga_2(alexandr).<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;liga_3(kostya).<br />&nbsp; &nbsp;liga_3(barbara).<br />&nbsp; &nbsp;liga_3(anna).<br />&nbsp; &nbsp;liga_3(tatiana).<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;nomer (sergey, 1).<br />&nbsp; &nbsp;nomer (dmitriy, 2).<br />&nbsp; &nbsp;nomer (valera, 3).<br />&nbsp; &nbsp;nomer (petr, 4).<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;nomer (mihail, 5).<br />&nbsp; &nbsp;nomer (nikolay, 6).<br />&nbsp; &nbsp;nomer (alex, 7).<br />&nbsp; &nbsp;nomer (alexandr, 8).<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;nomer (kostya, 9).<br />&nbsp; &nbsp;nomer (barbara, 10).<br />&nbsp; &nbsp;nomer (anna, 11).<br />&nbsp; &nbsp;nomer (tatiana, 12).<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;vizov (X, Y):-<br />&nbsp; &nbsp;igrok(X),<br />&nbsp; &nbsp;igrok(Y),<br />&nbsp; &nbsp;liga_1(X),<br />&nbsp; &nbsp;X&lt;&gt;Y,<br />&nbsp; &nbsp;nomer(X, N1),<br />&nbsp; &nbsp;nomer(Y, N2),<br />&nbsp; &nbsp;N1 &lt; N2, <br />&nbsp; &nbsp;liga_1(X),<br />&nbsp; &nbsp;not (liga_3(Y)).</p><p>&nbsp; &nbsp;vizov (X, Y):-<br />&nbsp; &nbsp;igrok(X),<br />&nbsp; &nbsp;igrok(Y),<br />&nbsp; &nbsp;liga_2(X),<br />&nbsp; &nbsp;X&lt;&gt;Y,<br />&nbsp; &nbsp;nomer(X, N1),<br />&nbsp; &nbsp;nomer(Y, N2),<br />&nbsp; &nbsp;N1 &lt; N2,<br />&nbsp; &nbsp;not (liga_1(Y)).&nbsp; &nbsp;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;vizov (X, Y):-<br />&nbsp; &nbsp;igrok(X),<br />&nbsp; &nbsp;igrok(Y),<br />&nbsp; &nbsp;liga_3(X),<br />&nbsp; &nbsp;X&lt;&gt;Y,<br />&nbsp; &nbsp;nomer(X, N1),<br />&nbsp; &nbsp;nomer(Y, N2),<br />&nbsp; &nbsp;N1 &lt; N2,<br />&nbsp; &nbsp;liga_3(Y).&nbsp; <br />&nbsp; &nbsp;<br />goal<br />vizov(What, Whom).</p>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>https://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2012-12-24T12:08:09Z</updated>
			<id>https://itpmr.ru/viewtopic.php?pid=123806#p123806</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: PROLOG]]></title>
			<link rel="alternate" href="https://itpmr.ru/viewtopic.php?pid=123805#p123805" />
			<content type="html"><![CDATA[<p>predicates<br />&nbsp; &nbsp;man(symbol)<br />&nbsp; &nbsp;woman(symbol)<br />&nbsp; &nbsp;parent(symbol, symbol)<br />&nbsp; &nbsp;suprug(symbol, symbol)<br />&nbsp; &nbsp;nevestka (symbol, symbol)<br />&nbsp; &nbsp;dever (symbol, symbol)</p><p>clauses<br />&nbsp; &nbsp;man(sergey).<br />&nbsp; &nbsp;man(dmitriy).<br />&nbsp; &nbsp;man(valera).<br />&nbsp; &nbsp;man(petr).<br />&nbsp; &nbsp;man(mihail).<br />&nbsp; &nbsp;man(nikolay).<br />&nbsp; &nbsp;man(alex).<br />&nbsp; &nbsp;man(alexandr).<br />&nbsp; &nbsp;man(kostya).<br />&nbsp; &nbsp;woman(barbara).<br />&nbsp; &nbsp;woman(anna).<br />&nbsp; &nbsp;woman(tatiana).<br />&nbsp; &nbsp;woman(liza).<br />&nbsp; &nbsp;woman(katya).&nbsp; &nbsp; <br />&nbsp; &nbsp;woman(juli).<br />&nbsp; &nbsp;woman(raisa).<br />&nbsp; &nbsp;woman(lyuda).<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;parent(barbara, liza).<br />&nbsp; &nbsp;parent(liza, alex).<br />&nbsp; &nbsp;parent(alex, kostya).<br />&nbsp; &nbsp;parent(anna, katya).<br />&nbsp; &nbsp;parent(anna, petr).<br />&nbsp; &nbsp;parent(sergey, katya).<br />&nbsp; &nbsp;parent(sergey, petr).<br />&nbsp; &nbsp;parent(katya, juli).&nbsp; &nbsp;<br />&nbsp; &nbsp;parent(petr, alex).&nbsp; <br />&nbsp; &nbsp;parent(petr, alexandr).<br />&nbsp; &nbsp;parent(alexandr, lyuda).<br />&nbsp; &nbsp;parent(juli, lyuda).<br />&nbsp; &nbsp;parent(tatiana, mihail).<br />&nbsp; &nbsp;parent(dmitriy, mihail).<br />&nbsp; &nbsp;parent(mihail, juli).<br />&nbsp; &nbsp;parent(valera, nikolay).<br />&nbsp; &nbsp;parent(nikolay, raisa).<br />&nbsp; &nbsp;parent(raisa, kostya).<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;suprug (anna, sergey).<br />&nbsp; &nbsp;suprug (tatiana, dmitriy).<br />&nbsp; &nbsp;suprug (liza, petr).<br />&nbsp; &nbsp;suprug (katya, mihail).<br />&nbsp; &nbsp;suprug (raisa, alex).<br />&nbsp; &nbsp;suprug (juli, alexandr).<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;nevestka (X, Y):-<br />&nbsp; &nbsp;parent (H, Y),<br />&nbsp; &nbsp;parent (H, B),<br />&nbsp; &nbsp;Y&lt;&gt;B,<br />&nbsp; &nbsp;suprug (X, B),<br />&nbsp; &nbsp;woman(X),<br />&nbsp; &nbsp;man(B).<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;nevestka (X, Y):-<br />&nbsp; &nbsp;parent (Y, S),<br />&nbsp; &nbsp;man(S),<br />&nbsp; &nbsp;suprug (X,S),<br />&nbsp; &nbsp;woman(X).<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;dever (X, Y):-<br />&nbsp; &nbsp;suprug (Y, M),<br />&nbsp; &nbsp;man(M),<br />&nbsp; &nbsp;woman(Y),<br />&nbsp; &nbsp;parent(R, X),<br />&nbsp; &nbsp;parent(R, M),<br />&nbsp; &nbsp;X&lt;&gt;M,<br />&nbsp; &nbsp;man(X).<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;goal<br />&nbsp; &nbsp;nevestka (Who, Whom),<br />&nbsp; &nbsp;write (&quot;Tetya &quot;);<br />&nbsp; &nbsp;dever (Who, Whom),<br />&nbsp; &nbsp;write (&quot;&nbsp; Dever&nbsp; &quot;).</p>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>https://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2012-12-24T12:07:41Z</updated>
			<id>https://itpmr.ru/viewtopic.php?pid=123805#p123805</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: PROLOG]]></title>
			<link rel="alternate" href="https://itpmr.ru/viewtopic.php?pid=123804#p123804" />
			<content type="html"><![CDATA[<p>predicates<br />&nbsp; &nbsp;man(symbol)<br />&nbsp; &nbsp;woman(symbol)<br />&nbsp; &nbsp;parent(symbol, symbol)<br />&nbsp; &nbsp;tetya (symbol, symbol)<br />&nbsp; &nbsp;dyadya (symbol, symbol)<br />clauses<br />&nbsp; &nbsp;man(sergey).<br />&nbsp; &nbsp;man(dmitriy).<br />&nbsp; &nbsp;man(valera).<br />&nbsp; &nbsp;man(petr).<br />&nbsp; &nbsp;man(mihail).<br />&nbsp; &nbsp;man(nikolay).<br />&nbsp; &nbsp;man(alex).<br />&nbsp; &nbsp;man(alexandr).<br />&nbsp; &nbsp;man(kostya).<br />&nbsp; &nbsp;woman(barbara).<br />&nbsp; &nbsp;woman(anna).<br />&nbsp; &nbsp;woman(tatiana).<br />&nbsp; &nbsp;woman(liza).<br />&nbsp; &nbsp;woman(katya).&nbsp; &nbsp; <br />&nbsp; &nbsp;woman(juli).<br />&nbsp; &nbsp;woman(raisa).<br />&nbsp; &nbsp;woman(lyuda).<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;parent(barbara, liza).<br />&nbsp; &nbsp;parent(liza, alex).<br />&nbsp; &nbsp;parent(alex, kostya).<br />&nbsp; &nbsp;parent(anna, katya).<br />&nbsp; &nbsp;parent(anna, petr).<br />&nbsp; &nbsp;parent(sergey, katya).<br />&nbsp; &nbsp;parent(sergey, petr).<br />&nbsp; &nbsp;parent(katya, juli).&nbsp; &nbsp;<br />&nbsp; &nbsp;parent(petr, alex).&nbsp; <br />&nbsp; &nbsp;parent(petr, alexandr).<br />&nbsp; &nbsp;parent(alexandr, lyuda).<br />&nbsp; &nbsp;parent(juli, lyuda).<br />&nbsp; &nbsp;parent(tatiana, mihail).<br />&nbsp; &nbsp;parent(dmitriy, mihail).<br />&nbsp; &nbsp;parent(mihail, juli).<br />&nbsp; &nbsp;parent(valera, nikolay).<br />&nbsp; &nbsp;parent(nikolay, raisa).<br />&nbsp; &nbsp;parent(raisa, kostya).<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;tetya (X, Y):-<br />&nbsp; &nbsp;woman (X),<br />&nbsp; &nbsp;parent (H, X),<br />&nbsp; &nbsp;parent (H, M),<br />&nbsp; &nbsp;M&lt;&gt;X,<br />&nbsp; &nbsp;parent (M, Y).<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;dyadya (X1, Y1):-<br />&nbsp; &nbsp;man (X1),<br />&nbsp; &nbsp;parent (H1, X1),<br />&nbsp; &nbsp;parent (H1, M1),<br />&nbsp; &nbsp;M1&lt;&gt;X1,<br />&nbsp; &nbsp;parent (M1, Y1).<br />&nbsp; &nbsp;goal<br />&nbsp; &nbsp;tetya (What, Whom),<br />&nbsp; &nbsp;write (&quot;Tetya &quot;);<br />&nbsp; &nbsp;dyadya (What, Whom),<br />&nbsp; &nbsp;write (&quot;_Dyadya&nbsp; &quot;).</p>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>https://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2012-12-24T12:07:27Z</updated>
			<id>https://itpmr.ru/viewtopic.php?pid=123804#p123804</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[PROLOG]]></title>
			<link rel="alternate" href="https://itpmr.ru/viewtopic.php?pid=123803#p123803" />
			<content type="html"><![CDATA[<p>Лабораторные на&nbsp; PROLOG</p><p>predicates<br />&nbsp; &nbsp;man(symbol)<br />&nbsp; &nbsp;woman(symbol)<br />&nbsp; &nbsp;parent(symbol, symbol)<br />&nbsp; &nbsp;suprug(symbol, symbol)<br />&nbsp; &nbsp;nevestka (symbol, symbol)<br />&nbsp; &nbsp;dever (symbol, symbol)</p><p>clauses<br />&nbsp; &nbsp;man(sergey).<br />&nbsp; &nbsp;man(dmitriy).<br />&nbsp; &nbsp;man(valera).<br />&nbsp; &nbsp;man(petr).<br />&nbsp; &nbsp;man(mihail).<br />&nbsp; &nbsp;man(nikolay).<br />&nbsp; &nbsp;man(alex).<br />&nbsp; &nbsp;man(alexandr).<br />&nbsp; &nbsp;man(kostya).<br />&nbsp; &nbsp;woman(barbara).<br />&nbsp; &nbsp;woman(anna).<br />&nbsp; &nbsp;woman(tatiana).<br />&nbsp; &nbsp;woman(liza).<br />&nbsp; &nbsp;woman(katya).&nbsp; &nbsp; <br />&nbsp; &nbsp;woman(juli).<br />&nbsp; &nbsp;woman(raisa).<br />&nbsp; &nbsp;woman(lyuda).<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;parent(barbara, liza).<br />&nbsp; &nbsp;parent(liza, alex).<br />&nbsp; &nbsp;parent(alex, kostya).<br />&nbsp; &nbsp;parent(anna, katya).<br />&nbsp; &nbsp;parent(anna, petr).<br />&nbsp; &nbsp;parent(sergey, katya).<br />&nbsp; &nbsp;parent(sergey, petr).<br />&nbsp; &nbsp;parent(katya, juli).&nbsp; &nbsp;<br />&nbsp; &nbsp;parent(petr, alex).&nbsp; <br />&nbsp; &nbsp;parent(petr, alexandr).<br />&nbsp; &nbsp;parent(alexandr, lyuda).<br />&nbsp; &nbsp;parent(juli, lyuda).<br />&nbsp; &nbsp;parent(tatiana, mihail).<br />&nbsp; &nbsp;parent(dmitriy, mihail).<br />&nbsp; &nbsp;parent(mihail, juli).<br />&nbsp; &nbsp;parent(valera, nikolay).<br />&nbsp; &nbsp;parent(nikolay, raisa).<br />&nbsp; &nbsp;parent(raisa, kostya).<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;suprug (anna, sergey).<br />&nbsp; &nbsp;suprug (tatiana, dmitriy).<br />&nbsp; &nbsp;suprug (liza, petr).<br />&nbsp; &nbsp;suprug (katya, mihail).<br />&nbsp; &nbsp;suprug (raisa, alex).<br />&nbsp; &nbsp;suprug (juli, alexandr).<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;nevestka (X, Y):-<br />&nbsp; &nbsp;parent (H, Y),<br />&nbsp; &nbsp;parent (H, B),<br />&nbsp; &nbsp;Y&lt;&gt;B,<br />&nbsp; &nbsp;suprug (X, B),<br />&nbsp; &nbsp;woman(X),<br />&nbsp; &nbsp;man(B).<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;nevestka (X, Y):-<br />&nbsp; &nbsp;parent (Y, S),<br />&nbsp; &nbsp;man(S),<br />&nbsp; &nbsp;suprug (X,S),<br />&nbsp; &nbsp;woman(X).<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;dever (X, Y):-<br />&nbsp; &nbsp;suprug (Y, M),<br />&nbsp; &nbsp;man(M),<br />&nbsp; &nbsp;woman(Y),<br />&nbsp; &nbsp;parent(R, X),<br />&nbsp; &nbsp;parent(R, M),<br />&nbsp; &nbsp;X&lt;&gt;M,<br />&nbsp; &nbsp;man(X).<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;goal<br />&nbsp; &nbsp;nevestka (Who, Whom),<br />&nbsp; &nbsp;write (&quot;Tetya &quot;);<br />&nbsp; &nbsp;dever (Who, Whom),<br />&nbsp; &nbsp;write (&quot;_Dever&nbsp; &quot;).</p>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>https://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2012-12-24T12:07:19Z</updated>
			<id>https://itpmr.ru/viewtopic.php?pid=123803#p123803</id>
		</entry>
</feed>
