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

Angles, why is a complimentary angle 90 degres

why is a complimentary angle 90 degres

Estimate the rms value and prominent features, Figure shows the auto-spect...

Figure shows the auto-spectral density for a signal from an accelerometer which was attached to the front body of a car directly above its front suspension while it was driven at 6

Word problem solving, the traffic light at three different road crossing ch...

the traffic light at three different road crossing change after every 48 seconds, 72 seconds and 108 seconds respectively. if they change simultaneously at 7 a.m., at what time wil

Stats Combination Questions, A car buyer has a choice of three makes, five ...

A car buyer has a choice of three makes, five body styles, and six colors. How many different choices does the buyer have?

Compound interest, Draw a flowchart for accumulated principal at the end of...

Draw a flowchart for accumulated principal at the end of 5 years by taking into account compound interest?

Find the sum of all 3 digit numbers which leave remainder 3, Find the sum o...

Find the sum of all 3 digit numbers which leave remainder 3 when divided by 5. Ans:    103, 108..........998   a + (n-1)d = 998

Sas, can you tell me how to find the "x" and the "y" when trying to find if...

can you tell me how to find the "x" and the "y" when trying to find if two triangles are smiliar

Explain adding rational expressions different denominators, Explain Adding ...

Explain Adding Rational Expressions with Different Denominators When you add or subtract fractions or rational expressions that have different denominators, you must first find

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