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

#title applications of vector and scalar , #question application of vector ...

#question application of vector and scalar in our daily life

Determine and classify all critical points , Determine and classify all the...

Determine and classify all the critical points of the given function.  Described the intervals where function is increasing & decreasing. Solution: Firstly we'll require

The low temperature in Achorage, The low temperature in Anchorage, Alaska t...

The low temperature in Anchorage, Alaska today was negative four degrees. The low temperature in Los Angeles, California was sixty-three degreees. What is the difference in the two

Probability transition matrices or brand switching, Define the Probability ...

Define the Probability Transition Matrices or Brand switching.

Transition matrix for the probabilitiy, Suppose research on three major cel...

Suppose research on three major cell phones companies revealed the following transition matrix for the probability that a person with one cell phone carrier switches to another.

Calculate the equation, Problem1: Find the general solution on -π/2 Dy/...

Problem1: Find the general solution on -π/2 Dy/dx +(tan x)y =(sin 2 x)y 4

How many pounds should nicole put in every basket, Nicole is forming 20 gif...

Nicole is forming 20 gift baskets. She has 15 pounds of chocolates to distribute equally between the baskets. If each basket gets the similar amount of chocolates, how many pounds

Law of Iterative Expectation, #quesSuppose we have a stick of length L. We ...

#quesSuppose we have a stick of length L. We break it once at some point X ~ Unif(0;L). Then we break it again at some point Y ~ Unif(0;X). Use the law of iterated expectation to c

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