Question
1) Given the partial family tree of the gods of the ancient Greeks encoded as a Prolog database parent(chaos, gaea). parent(gaea, cyclope). parent(gaea, chronos). parent(gaea,
1) Given the partial family tree of the gods of the ancient Greeks encoded as a Prolog database
parent(chaos, gaea).
parent(gaea, cyclope).
parent(gaea, chronos).
parent(gaea, coeus).
parent(gaea, oceanus).
parent(uranus, cyclope).
parent(uranus, chronos).
parent(uranus, coeus).
parent(uranus, oceanus).
parent(chronos, hades).
parent(chronos, poseidon).
parent(chronos, zeus).
parent(rhea, hades).
parent(rhea, poseidon).
parent(rhea, zeus).
parent(coeus, leto).
parent(phoebe, leto).
parent(leto, apollo).
parent(leto, artemis).
parent(zeus, apollo).
parent(zeus, artemis).
parent(oceanus, iapetus).
parent(tethys, iapetus).
parent(hera, ares).
parent(zeus, ares).
male(chaos).
male(cyclope).
male(uranus).
male(chronos).
male(coeus).
male(oceanus).
male(hades).
male(poseidon).
male(zeus).
male(ares).
male(apollo).
male(iapetus).
female(gaea).
female(rhea).
female(leto).
female(hera).
female(phoebe).
female(tethys).
female(artemis).
Define rules for the following relationships:
a) father
b) mother
c) child
and answer the following questions:
d) Father of Ares
e) Mother of Apollo
f) Children of Uranus
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started