

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
In the course of the database theory, we study the key concept regarding the database. The major points in these homework exercises are:Unary Relation, Set of Binary Trees, Binary Relations, Set of Nodes, Fixpoint Expresses, Datalog Programs, Graph Property, Existence of Simple Path, Conjunctive Query, Inflationary Fixpoint Semantics
Typology: Exercises
1 / 2
This page cannot be seen from the preview
Don't miss anything!


CSE 233 Spring, 2012
Due on Thursday, June 7
(i) (3 points) The existence of a path of even length between two desig- nated nodes a and b in a graph is definable in Datalog.
(ii) (2 points) The existence of a simple path of even length between two designated nodes a and b in a graph is not definable in Datalog.
(i) (3points) Express the query in Datalog¬^ with inflationary fixpoint semantics.
(ii) (3points) Suppose that in addition to the above relations, the database provides for each attribute A ā {theater, title, actor} a relation succA providing a successor relation on the set of values of attribute A in the database. In addition, assume minA and maxA are constants
providing the minimum and maximum values of A. Express the same query using a semi-positive Datalog program.