This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
codeq:prolog:naloge:sister_2 [2015/07/06 19:53] timmy |
codeq:prolog:naloge:sister_2 [2015/07/07 15:58] (current) timotej |
||
---|---|---|---|
Line 12: | Line 12: | ||
Povezave so podane s predikatom '' | Povezave so podane s predikatom '' | ||
- | parent(tina, | + | parent(tina, |
- | parent(thomas, | + | parent(thomas, |
- | parent(thomas, | + | parent(thomas, |
- | parent(thomas, | + | parent(thomas, |
- | parent(sally, | + | parent(sally, |
- | parent(sally, | + | parent(sally, |
- | parent(andrew, | + | parent(andrew, |
- | parent(jill, | + | parent(jill, |
- | parent(joanne, | + | parent(joanne, |
- | parent(william, | + | parent(william, |
- | parent(william, | + | parent(william, |
- | parent(vanessa, | + | parent(vanessa, |
- | parent(patrick, | + | parent(patrick, |
- | parent(patricia, | + | parent(patricia, |
- | parent(john, | + | parent(john, |
- | parent(john, | + | parent(john, |
| | ||
- | parent(frank, | + | parent(frank, |
- | parent(estelle, | + | parent(estelle, |
- | parent(morty,jerry). | + | parent(morty, |
- | parent(helen,jerry). | + | parent(helen,jerry). female(joanne). |
- | parent(jerry,anna). | + | parent(jerry,anna). |
- | parent(elaine,anna). | + | parent(elaine,anna). female(vanessa). |
- | parent(elaine, | + | parent(elaine,kramer). female(patricia). |
- | parent(george,kramer). | + | parent(george, |
- | + | | |
- | parent(margaret, | + | |
- | parent(margaret,alessandro). | + | |
- | parent(ana, | + | |
- | parent(aleksandr,aleksander). | + | |
- | parent(nevia,luana). | + | |
- | parent(aleksander,luana). | + | |
- | parent(nevia, | + | |
- | parent(aleksander, | + | |
- | + | | |
- | male(william). | + | |
- | male(thomas). | + | |
- | male(jeffrey). | + | |
- | male(andrew). | + | |
- | male(steve). | + | |
- | male(patrick). | + | |
- | male(john). | + | |
- | male(michael). | + | |
- | male(frank). | + | |
- | male(george). | + | |
- | male(morty). | + | |
- | male(jerry). | + | |
- | male(kramer). | + | |
- | male(aleksandr). | + | |
- | | + | |
- | male(aleksander). | + | |
- | + | ||
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | female(daniela). | + | |
====== Rešitev ====== | ====== Rešitev ====== | ||
Line 93: | Line 58: | ||
====== Namigi ====== | ====== Namigi ====== | ||
- | ^ # ^ Testni primeri | + | ^ # ^ Namig ^ |
- | | 1 | nex(sister(vanessa, | + | | 1 | '' |
- | | 2 | nex(sister(andrew, | + | | 2 | '' |
- | | 3 | nex(sister(vanessa, | + | | 3 | '' |
+ | | 4 | '' | ||
{{: | {{: | ||
+ | |||
+ | ====== Testni primeri ====== | ||
+ | |||
+ | ex(sister(sally, | ||
+ | ex(sister(melanie, | ||
+ | ex(sister(luana, | ||
+ | ex(sister(daniela, | ||
+ | | ||
+ | ===== #1 ===== | ||
+ | |||
+ | nex(sister(vanessa, | ||
+ | nex(sister(elaine, | ||
+ | nex(sister(sally, | ||
+ | |||
+ | ===== #2 ===== | ||
+ | |||
+ | nex(sister(andrew, | ||
+ | nex(sister(patrick, | ||
+ | nex(sister(michael, | ||
+ | | ||
+ | ===== #3 ===== | ||
+ | |||
+ | nex(sister(vanessa, | ||
+ | nex(sister(sally, | ||
+ | nex(sister(daniela, |