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

Calculate area of a square, The area of a square is given by the formula wi...

The area of a square is given by the formula width time's height. But since the square has all the sides equal, the height is of the same measure as its width. Hence its formula is

Express the statement as a disjunction in dnf, State the following statemen...

State the following statement as a disjunction (in DNF) as well using quantifiers:      There does not exit a woman who has taken a flight on each airline in the world.

Find their present ages of son and father, When the son will be as old as t...

When the son will be as old as the father today their ages will add up to 126 years. When the father was old as the son is today, their ages add upto 38 years.  Find their present

Calculus questions, Show all your work. 80% of your score is for correct ju...

Show all your work. 80% of your score is for correct justified answers; 20% is for correctly and clearly demonstrating why. For the graphing problems, use www.desmos.com/calculator

Show that tan = 1/v3 , If 7sin 2 ?+3cos 2 ? = 4, show that tan? =   1/√3  ...

If 7sin 2 ?+3cos 2 ? = 4, show that tan? =   1/√3                      . Ans:    If 7 Sin 2 ? + 3 Cos 2 ? = 4 S.T. Tan?  1/√3 7 Sin 2 ? + 3 Cos 2 ? = 4 (Sin 2 ? + Cos 2 ?)

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