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 - applications of integrals, Probability - Applications of inte...

Probability - Applications of integrals In this final application of integrals that we'll be looking at we are going to look at probability.  Previous to actually getting into

How to change improper fractions to mixed/ proper fractions, how do you cha...

how do you change an improper fraction to a mixed number or whole or proper

Multiplication and division should be learnt intermeshed, E1) Do you agree ...

E1) Do you agree that multiplication and division should be learnt intermeshed with each other, or not? Give reasons for your answer.  E2) How would you explain to children wh

Design a game strategy involves process of learning maths, Doing these sums...

Doing these sums initially in this way helps children see why they carry over numbers to the next column. You may like to devise some related activities now. , EI) Give activ

Linear equation, develop any two linear equation which are reducible into l...

develop any two linear equation which are reducible into linear form from our daily life by cross multiplication

Find integer if sum of two consecutive odd integers is -112, The sum of two...

The sum of two consecutive odd integers is -112. What is the larger integer? Two consecutive odd integers are numbers in order such as 3 and 5 or -31 and -29, that are each 2 n

Determine fog and gof, Let g be a function from the set G = {1,2,3,...34,35...

Let g be a function from the set G = {1,2,3,...34,35,36).  Let f be a function from the set F = {1,2,3,...34,35,36}.  Set G  and F contain 36 identical elements (a - z and 0 - 9).

Order of Operations with Fractions, 1.)3 3/8 divided by 4 7/8 plus 3 2.)4 ...

1.)3 3/8 divided by 4 7/8 plus 3 2.)4 1/2 minus 3/4 divided by 2 3/8

Variation and proportion, i am not getting what miss has taught us please w...

i am not getting what miss has taught us please will you will help me in my studies

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