Polynomial time algorithm - first order query, Mathematics

Assignment Help:

For queries Q1 and Q2, we say Q1 is contained in Q2, denoted Q1 ⊆ Q2, iff Q1 (D) ⊆ Q2(D) for every database D.

  • The container problem for a fixed Query Q0 is the following decision problem: Given a query Q, decide whether Q0 ⊆ Q.
  • The containee problem for a fixed query Q0 is the following decision problem: Given a query Q, decide whether Q ⊆ Q0.

Formally prove or disprove the following statements:

(a) For every conjunctive query Q0, there is a polynomial-time algorithm to decide the container problem for Q0 and for given conjunctive queries Q.

(b) For every conjunctive query Q0, there is a polynomial-time algorithm to decide the container problem for Q0 and for given conjunctive queries Q that can be obtained from Q0 by adding some atoms.

(c) For every conjunctive query Q0, there is a polynomial-time algorithm to decide the containee problem for Q0 and for given conjunctive queries Q.

(d) For every first-order Query Q0, there is an algorithm to decide the containee problem for Q0 and for given first-order queries Q. To prove a statement, sketch an algorithm, along with an argument why it is polynomial, if possible. To disprove it, provide an M-hardness or undecidability proof.


Related Discussions:- Polynomial time algorithm - first order query

Calculate the profit, Lucas purchased his motorcycle for $5,875.98 and sold...

Lucas purchased his motorcycle for $5,875.98 and sold it for $7,777.77. What was his profit? To ?nd out the pro?t, you must subtract what Lucas paid for the motorcycle from the

Parent, Sam has 18 marbles. Dean has 3 marbles. Dean has ---- as many marbl...

Sam has 18 marbles. Dean has 3 marbles. Dean has ---- as many marbles as Sam?

Trigonomitry, Ask if tanA+sinA=m and m^2-n^2=4 rute mn show that tanA-sinA=...

Ask if tanA+sinA=m and m^2-n^2=4 rute mn show that tanA-sinA=n

Algebraic expressions word problems, Juan is g years old and Eva is 2 years...

Juan is g years old and Eva is 2 years younger than Juan. a.Find the sum of their ages in terms of g. b.Find the sum of their ages in g years'' time,in terms of g.

Math, 1+3+5+7+9+11+13+15+17+19

1+3+5+7+9+11+13+15+17+19

Immediate predecessor of mahavira, The twenty-third Jaina teacher, Parsva, ...

The twenty-third Jaina teacher, Parsva, the immediate predecessor of Mahavira enjoined on his disciples four great vows. To these Mahavira addes which of the followings as the fift

Parallelograns, Find x and y in each paarallelogram.

Find x and y in each paarallelogram.

Comperised payrolll package, a computerized payroll package and its cost,fu...

a computerized payroll package and its cost,futures and the size of the business and how business mathematics is an inbuilt component of the package

Math, could you help me get bater at math

could you help me get bater at math

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd