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

Mass-Spring-Damper -- Underdamped System, us consider the following mass-sp...

us consider the following mass-spring-damper system: md2xdt2+cdxdt+kx=0 with m=5 kg as the mass of the body, k=1.6N/m as the spring constant and two different values of c.

Multiplying fractions involving negative numbers, Q. Multiplying Fractions ...

Q. Multiplying Fractions Involving Negative Numbers? Ans. If you have only one negative sign, the result is still negative: If you have more than one, just remembe

Explain the common forms of linear equations, Explain the Common Forms of L...

Explain the Common Forms of Linear Equations ? An equation whose graph is a line is called a linear equation. Here are listed some special forms of linear equations. Why should

Determine how many square centimeters, Determine how many square centimeter...

Determine how many square centimeters of paper are needed to make a label on a cylindrical can 45 cm tall with a circular base having diameter of 20 cm. Leave answer in terms of π.

Find the greatest number of 6 digits exactly divisible by 24, Find the grea...

Find the greatest number of 6 digits exactly divisible by 24, 15 and 36. (Ans:999720) Ans: LCM of 24, 15, 36 LCM = 3 × 2 × 2 × 2 × 3 × 5 = 360 Now, the greatest six digit

Which a dog is their favorite type of pet, The students at Norton School we...

The students at Norton School were asked to name their favorite type of pet. Of the 430 students surveyed, 258 said in that their favorite type of pet was a dog. Assume that only 1

Slope, how would I graph the equation 2x-5y=5?

how would I graph the equation 2x-5y=5?

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