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

How much greater is 0.0543 than 0.002, How much greater is 0.0543 than 0.00...

How much greater is 0.0543 than 0.002? To ?nd out how much greater a number is, you required to subtract; 0.0543 - 0.002 = 0.0523. For subtract decimals and line the numbers up

Euler equations with an auxiliarty condition - shortest path, 1. Finding th...

1. Finding the shortest path btween any two points on the surface of a sphere but use the method of the euler equations with an auxiliarty condition imposed? Question2:

What is the marginal product of labor function, Your engineering department...

Your engineering department estimated the following production function. Q = 15L 2 - 0.5L 3 a. What is the marginal product of labor function, MP L ? b. What is the aver

How much does every person required to pay rob, Rob purchased picnic food f...

Rob purchased picnic food for $33.20 to share along with three of his friends. They plan to split the cost evenly among the four friends. How much does every person required to pay

Combination, three complain forces of magnitudes 20N 30N and 45N

three complain forces of magnitudes 20N 30N and 45N

Decimals, what is 0.875 of 2282?

what is 0.875 of 2282?

Properties of definite integral, Properties 1.  ∫ b a f ( x ) dx = -∫ ...

Properties 1.  ∫ b a f ( x ) dx = -∫ b a f ( x ) dx .  We can interchange the limits on any definite integral, all that we have to do is tack a minus sign onto the integral

2+2=5, How could 2+2 will be Equal to 5

How could 2+2 will be Equal to 5

How high is a structure, One method of calculating the height of an object ...

One method of calculating the height of an object is to place a mirror on the ground and then position yourself so that the top of the object will be seen in the mirror. How high i

Areas related to circles in mensuration, AREAS  RELATED TO CIRCLES The...

AREAS  RELATED TO CIRCLES The  mathematical  sciences particularly  exhibit  order,  symmetry,  and limitation;  and  these  are the  greatest  forms  of the beautiful. In t

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