
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 May
p oints Sorry I should have included this question with Problem Set Supp ose we have the relation R whose value is the four tuples
R R a b f a g b f
g a
g
f b
f
f a
f a Perform the following translations
a QX Y ATOV
p
f X g Y
R
b QX Y ATOV
p
f X X
R
c P VTOA
p
hX Y g X
p oints Consider the rules
pXYZ qXYZ pXYZ pXAY pYBZ Draw the rulegoal graph starting with the adorned goal pbf^ f
p oints For the rules of Problem and the query p U V write the magicset rules using the basic metho d of Section
p oints Rep eat Problem using the simplied metho d of Section
p oints Below are rules that dene terms representing the structure of arithmetic expressions with and parentheses expressionplusET expressionE productT expressionE productE producttimesTF productT factorF productT factorT factorparensE expressionE factorF identifierF
Write the magicset rules for the query form expr essionb^ For Group V you may imagine that the query is ab out some term e which we are testing to see if it has the correct form of an expression You may use either the basic or simplied metho d