Notes for Week 8 / Assignment 8
Tyrel -
Thanks for pointing these things out: I'll post
this to the assignment website and to the class list.
%
% 1. For the cousin(X, Y) function, is it just first cousins, or any
% particular cousin (i.e., is atropos a cousin of bart?)
cousin(X,Y) should work only with first cousins, so that
atropos is _not_ a cousin of bart.
%
% 2. For the relByMarriage(X, Y) function: does this include the children of
% brothers and sisters of the wife/husband?
Yes. relByMarriage(X,Y) should hold true when X and Y are both
people in the family tree but are not related by blood, i.e.,
do not have a common ancestor.
%
% 3. If there is a tie for the oldest grandchild, does hasOldestGrandchild(X)
% return yes or no?
If there's a tie for oldest grandchild, hasOldestGrandchild(X)
should be true.
On the other hand, if a person has a siblings only of the
same age or older, hasYoungerSibling(X) should not be true.
Just a side note -- there's no sense of a "return value"
for things in prolog. In that sense it's the complete opposite
of rex... .
Zach
Hello everyone - cs60submit 8 should now work. It checks the tautology checker program (in Parser.java), and checks if you've written truthChecker.rex (but not any test cases). It also checks if you've written simpsons.pl and will submit it. It does not run it against any tests, but you can copy the file /cs/cs60/as/a8/simpsonsCheck.pl to your directory and run it (inside prolog) to check your solutions to the prolog questions. (Full directions are inside that file.) Good luck, and let me know if you have any concerns... Zach