
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

CSA PROBLEM SET Due in class Wednesday April
p oints Find the mo dularly strati ed mo del for the following program and EDB
pX aXY qX not pY qX bXY not qY qX cX
with EDB facts a a a b b c Indicate the lo cally strat i ed mo del for each mo dule
p oints Here are some recursive datalog rules
pXY aXZ qZY qXY bXZ pZW pWY qXY cXY
Write in pseudoPascal and relational algebra a program that p erforms seminaive evaluation of these rules p oints For the rules of Problem and the EDB a a a b c and c show what new facts are added to p and q at each round of seminaive evaluation
p oints Construct the rulegoal graph for the rules of Problem and the initial goal pbf^
p oints Construct the rulegoal graph for the following rules pXY qXY pXY pXZ pZW pYW with the initial goal pbf^ In this example to avoid having to deal with a goal pf^ f^ we must consider the order of subgoals for the second rule The matter is discussed in general in Section although in this case common sense tells us the prop er order to use Note that dierent uses of the same rule can expand goals in dierent orders
p oints Rectify the following rules
pXY qXXZY qXZWa qABCD pAB pCD qABCD bABCD