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

Objective type , when is the trnscribing process of data preparation irrele...

when is the trnscribing process of data preparation irrelevant ? a)CAPI b) mall panel c) in home interview d) all of them

How to convert decimals to fractions, Q. How to Convert decimals to fractio...

Q. How to Convert decimals to fractions? Ans. Note: This tutorial covers only terminating decimals.

What is her weekly paycheck assuming there are deductions, Kyra's weekly wa...

Kyra's weekly wages are $895. A Social Security tax of 7.51% and a State Disability Insurance of 1.2% are taken out of her wages. What is her weekly paycheck, assuming there are no

What is the square root of -i and argument of -i, What is the square root o...

What is the square root of -i and argument of -i Ans) argument of -i is 270 ad 1 is the square root of -i

Fractions, #question.mario has 3 nickelsin his pocket.wha fraction ofadolla...

#question.mario has 3 nickelsin his pocket.wha fraction ofadolla do 3 nickels represent

Obligatory application and interpretation problem, Obligatory application/i...

Obligatory application/interpretation problem : Next, we need to do our obligatory application/interpretation problem so we don't forget about them. Example : Assume that the

Prove that its inclination theta to the horizontal, Two stations due south ...

Two stations due south of a tower, which leans towards north are at distances 'a' and 'b' from its foot. If α and β be the elevations of the top of the tower from the situation, Pr

Permuation and combination, how many words can be formed from letters of wo...

how many words can be formed from letters of word daughter such that each word contain 2vowles and 3consonant

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