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

Can you explain slope, Can you explain slope and Slope is measured as rise/...

Can you explain slope and Slope is measured as rise/run?

Ryan gym membership costs him how much is every installment, Ryan's gym mem...

Ryan's gym membership costs him $390 per year. He pays this within twelve equal installments a year. How much is every installment? To ?nd out each installment, the total yearl

Prove that x2 + y2 - 8x - 10y +39 = 0, If the points (5, 4) and (x, y) are ...

If the points (5, 4) and (x, y) are equidistant from the point (4, 5), prove that x 2 + y 2 - 8x - 10y +39 = 0. Ans :   AP = PB AP 2 = PB 2 (5 - 4) 2 + (4 - 5) 2 = (x

How many people are usual to vote for mr salva on survey, The Daily News re...

The Daily News reported that 54% of people surveyed said in which they would vote for Larry Salva for mayor. Based on the survey results, if 23,500 people vote in the election, how

Example of graphing equations, Example of Graphing Equations: Example...

Example of Graphing Equations: Example: By using the above figure, find out the distance traveled if the average speed is 20 mph and the time traveled is 40 minutes. T

Example of one-to-one correspondence, An educator placed 10 pebbles in a ro...

An educator placed 10 pebbles in a row and asked four-year-old Jaswant to count how many there were. She asked him to touch the pebbles .while counting them. Jaswant counted the pe

Evaluate the rational exponents, Evaluate each of the following.  (a) 2...

Evaluate each of the following.  (a) 25 1/2  (b) 32 1/5 Solution  (a) 25 1/2 Thus, here is what we are asking in this problem.                             2

Zero-day attack, What is Zero-Day Attack? Explain Zero-Day Attack

What is Zero-Day Attack? Explain Zero-Day Attack

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