This repository has been archived on 2025-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
csce420pine64backup/hw3
Alex Huddleston 40837bf9d7 Hurry omg.
2017-11-15 23:56:06 +00:00
..
420hw3-17fall.txt Initial commit for hw3 2017-11-11 14:10:10 -06:00
hw3pr1.pl Problem 1 finished. Problem 2 initialized. 2017-11-11 21:08:10 -06:00
hw3pr2.pl Hurry omg. 2017-11-15 23:56:06 +00:00
hw3pr3.pl Hurry omg. 2017-11-15 23:56:06 +00:00
README.txt Hurry omg. 2017-11-15 23:56:06 +00:00
testing.pl Hurry omg. 2017-11-15 23:56:06 +00:00

//Alexander Huddleston
//CSCE 420
//Due: November 15, 2017
//README.txt

run gprolog
[hw3prX].

problem 1 expects arguments:

my_sort(Unsorted, Sorted).

problem 2 expects arguments:

my_topo_sort(Partial_order, Total_order).

problem 3 can tell you these relations:

is_spouse(X, Y). NOTE: Only expected to be used in the rest of the definitions.
is_child(X, Y). NOTE: Only expected to be used in the rest of the definitions.

grandchild(X, Y).
greatgrandparent(X, Y).
ancestor(X, Y).
brother(X, Y).
sister(X, Y).
daughter(X, Y).
son(X, Y).
first_cousin(X, Y).
brother_in_law(X, Y).
sister_in_law(X, Y).
aunt(X, Y).
uncle(X, Y).

cousin(X, Y). NOTE: This just called first_cousin(X, Y), since a cousin is a synonym for first cousin.