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

Probability - Compound Events, David wants to rent a movie. He wants to wat...

David wants to rent a movie. He wants to watch either a comedy or a drama. The movie rental store has 18 comedies and dramas available for rent. Seven of the movies are comedies, a

Sum of their areas is given find radii of the two circles, Two circles touc...

Two circles touch externally. The sum of their areas is 58 π cm 2 and the distance between their centres is 10 cm. Find the radii of the two circles. (Ans:7cm, 3cm) Ans:

Fractions, How do you add 7/9 + 6/8 + 3/4

How do you add 7/9 + 6/8 + 3/4

Decimals, what is 1/5 + 1/8 equals?

what is 1/5 + 1/8 equals?

Financial Math, can you help me with financial math??

can you help me with financial math??

Fermat''s little theorem, 1. How many closed necklaces of length 7 can be m...

1. How many closed necklaces of length 7 can be made with 3 colors? (notice that 7 is a prime) 2. How many closed necklaces of length 10 can be made with 3 colors (this is di erent

Solid Mensuration, The two sides of a triangle are 17 cm and 28 cm long, an...

The two sides of a triangle are 17 cm and 28 cm long, and the length of the median drawn to the third side is equal to 19.5 cm. Find the distance from an endpoint of this median to

Applying quadratics math question, A boat tour company charges $11 for a ha...

A boat tour company charges $11 for a harbour tour and averages 450 passengers on Saturdays. Over the past few months, the company has been experimenting with the price of a tour a

Devide polynomials, what is the quotient of 20x to the power of 2 y-16x y t...

what is the quotient of 20x to the power of 2 y-16x y to the power of 2+ 8xy and -8xy

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