| This is a course web page of David Casperson You are here: home → Semesters → Fall 2023 → CPSC 370… |
|
You can find questions that have been assigned due dates here .
Questions 1–7, 9–18 are now past due. If you have not attempted them yet, please do so, and hand them in anyway. I may get around to marking them.
Questions 8 and 19–21 have been assigned due dates.
cat catcat dogcat Dogdog(house(g(V), g(X)), bat(g(g(W))),
wiring(X,t))
dog(house(U, V), bat(g(V)), wiring(z,t))
2+X
2+2
2+X
3+1
dog(house(g(V), g(X)), bat(g(g(W))),
wiring(X,W))
dog(house(U, V), bat(g(V)), wiring(z,t))
Given the facts
/* just the facts. */
directlyNorthOf(princeGeorge,redRock) .
directlyNorthOf(redRock, narnia).
directlyNorthOf(redRock,stoner) .
directlyNorthOf(stoner,hixon) .
directlyNorthOf(hixon,quesnel) .
directlyNorthOf(quesnel,kersley) .
directlyNorthOf(kersley,alexandria) .
directlyNorthOf(alexandria,macallister) .
directlyNorthOf(macallister,mcleeseLake) .
directlyNorthOf(mcleeseLake,sodaCreek) .
(text can be found here)
determine what is “north of” Kersley?
That is write a predicate northOf that is the
transitive closure of directlyNorthOf, and use it
with the above facts.
For instance, a corresponding fact from France might be
départment(finistère, quimper,
[“Smooth”, “Aesculapian”, “Viperine”,
“Common Adder”],
no).
![]() |
|
|
![]() |
Fall 2023 |
|
| 2025-12 |
|
fall-2024