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

Find the sum of first 40 positive integers, Find the sum of first 40 positi...

Find the sum of first 40 positive integers divisible by 6 also find the sum of first 20 positive integers divisible by 5 or 6. Ans:          No's which are divisible by 6 are

Example of multiplication of complex numbers, Multiply following and write ...

Multiply following and write the answers in standard form.  (a) 7 i ( -5 + 2 i )  (b) (1 - 5 i ) ( -9 + 2 i ) Solution (a) Thus all that we have to do is distribu

Relative measures of dispersion-illustration, Illustration 2 In a ...

Illustration 2 In a described farm located in the UK the average salary of the employees is £ 3500 along with a standard deviation of £150 The similar firm has a local

Solution of rectilinear figures, A straight line AB on the side of a hill i...

A straight line AB on the side of a hill is inclined at 15.0° to the horizontal. The axis of a tunnel 486ft. long is inclined 28.6° below the horizontal lies in a vertical plane wi

Math, what is quantity ?

what is quantity ?

Complex roots - second order differential equations, We will be looking at ...

We will be looking at solutions to the differential equation, in this section ay′′ + by′ + cy = 0 Wherein roots of the characteristic equation, ar 2 + br + c = 0 Those

Estimate round to the nearest tenth of an inch, One inch equals 2.54 centim...

One inch equals 2.54 centimeters. The dimensions of a table made in Europe are 85 cm huge by 120 cm long. What is the width of the table in inches? Round to the nearest tenth of an

Example of binomial distribution, Example:  Joanne is given a four-question...

Example:  Joanne is given a four-question multiple-choice quiz.  She hasnt studied the material to be quizzed, so she decides to answer the questions by randomly guessing the answe

Prove that 2b3-3abc+a2d=0, If  the  ratios  of  the  polynomial ax 3 +3bx...

If  the  ratios  of  the  polynomial ax 3 +3bx 2 +3cx+d  are  in  AP,  Prove  that  2b 3 -3abc+a 2 d=0 Ans: Let p(x) = ax 3 + 3bx 2 + 3cx + d and α , β , r are their three Z

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