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

Determining and classifying all the critical points, how do you determine ...

how do you determine and classify all the critical points of a function

The mean value theorem for integrals of even and odd , The Mean Value Theor...

The Mean Value Theorem for Integrals If  f (x ) is a continuous function on [a,b] then there is a number c in [a,b] such as,                                    ∫ b a f ( x

Immediate predecessor of mahavira, The twenty-third Jaina teacher, Parsva, ...

The twenty-third Jaina teacher, Parsva, the immediate predecessor of Mahavira enjoined on his disciples four great vows. To these Mahavira addes which of the followings as the fift

What is place value?, WHAT IS PLACE VALUE? : (This section is only for you...

WHAT IS PLACE VALUE? : (This section is only for your assumptions, and not-meant to be passed on to your learners.) You may have realised that in the decimal system the numeral

Probability of tossing a head with the dime, Q. Find Probability of tossing...

Q. Find Probability of tossing a head with the dime? List the sample space, and find n(S), for the outcomes of tossing a nickel followed by a dime. What is the probability of t

Area with parametric equations - polar coordinates, Area with Parametric Eq...

Area with Parametric Equations In this section we will find out a formula for ascertaining the area under a parametric curve specified by the parametric equations, x = f (t)

Wit tester., two fathers and two sons went fishing . they caught only 3 fis...

two fathers and two sons went fishing . they caught only 3 fish and divided them equally among themselves without cutting. is it possible? how?

Product moment coefficient, Product Moment Coefficient This gives an i...

Product Moment Coefficient This gives an indication of the strength of the linear relationship among two variables. Note that this formula can be rearranged to have di

Compute standard and variance deviation, A firm is manufacturing 45,000 uni...

A firm is manufacturing 45,000 units of nuts. The probability of having a defective nut is 0.15 Compute the given i. The expected no. of defective nuts ii. The standard an

Metric and costamary, can you please help me with this topic that im on in ...

can you please help me with this topic that im on in classand I just don''t get it and can u help me with dividing fractions adding mutply subtract add

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