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

The perimeter square can be expressed as x + 4 estimate x, The perimeter of...

The perimeter of a square can be expressed as x + 4. If one side of the square is 24, what is the value of x? Since the perimeter of the square is x + 4, and a square has four

Decomposing polygons to find area, find the area of this figure in square m...

find the area of this figure in square millimeter measure each segment to the nearest millmeter

Systems of equations revisited, Systems of Equations Revisited We requ...

Systems of Equations Revisited We require doing a quick revisit of systems of equations. Let's establish with a general system of equations. a 11 x 1 + a 12 x 2 +......

Operation research, details about criticl part time & pert method

details about criticl part time & pert method

Hypothesis testing procedure, Hypothesis Testing Procedure Whenever a b...

Hypothesis Testing Procedure Whenever a business complaint comes up here is a recommended procedure for conducting a statistical test. The reason of such a test is to establish

Calculate the density of people per square mile, 1.  In 1900, a certain cou...

1.  In 1900, a certain country's population was 77,977,459 and it's area was 2,821,924 square miles, In 2000, the country's population was 283,575,229 and its area was 3,551,003 sq

Product moment coefficient (r), Product Moment Coefficient (r) ...

Product Moment Coefficient (r) This gives an indication of the strength of the linear relationship among two variables.                                     N

Geometry., solve for y given that 3sin^2 y+cos y-1=0 for 0y360

solve for y given that 3sin^2 y+cos y-1=0 for 0y360

Find the perimeter of the rectangle, Find the perimeter of the figure, wher...

Find the perimeter of the figure, where AED is a semi-circle and ABCD is a rectangle.    (Ans : 76cm) Ans:    Perimeter of the fig = 20 + 14 + 20 + length of the arc (AED

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