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

Generic rectangles and greatest common factors, miaty and yesenia have a gr...

miaty and yesenia have a group of base ten blocks.Misty has six more than yesnia. Yesenia''s blocks repersent 17 together they have 22 blocks,and the total of blocks repersent 85.

Static or dynamic, Consider a discrete-time system that is characterized by...

Consider a discrete-time system that is characterized by the following difference equation: Y(n) = x(n)cos? 0 n, where ? 0  is constant value, x(n)are the discrete-time input

Multiple integrals, how to convert multiple integral into polar form and ch...

how to convert multiple integral into polar form and change the limits of itegration

Find the annual percentage yield, 1.   Find the APY for the bank described ...

1.   Find the APY for the bank described below- A bank offers an APR of 4% compounded monthly. 2.  Use the compound interest formula to compute the balance in the following a

Bussiness, How do these websites help the company strengthen its relationsh...

How do these websites help the company strengthen its relationships with its stakeholders? List the website(s) that you previewed and give examples to support your answers. Who are

Logorithms, log base 5 (3-2x) + log base 5 (2+x) = 1

log base 5 (3-2x) + log base 5 (2+x) = 1

How several miles did joe walk altogether, Joe walked 2 1/2 miles to school...

Joe walked 2 1/2 miles to school, 1/3 mile to work, and 1 1/4 miles to his friend's house. How several miles did Joe walk altogether? To find out the total distance walked, add

Nun, how do you identify area ??

how do you identify area ??

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