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

Example of the commutative property of addition, Tori was asked to provide ...

Tori was asked to provide an example of the commutative property of addition. Which of the subsequent choices would be correct? Using the simple interest formula Interest = pr

What is the average temperature on the celsius scale, Peggy's town has an a...

Peggy's town has an average temperature of 23° Fahrenheit in the winter. What is the average temperature on the Celsius scale? If the total amount for both is 80, after that th

Point, what will be the activity of the above said title

what will be the activity of the above said title

Bussiness, How do these websites help the company strengthen its relationsh...

How do these websites help the company strengthen its relationships with its stakeholders? List the website(s) that you previewed and give examples to support your answers. Who are

Describe subtracting negative fractions, Describe Subtracting Negative Frac...

Describe Subtracting Negative Fractions? Subtracting two fractions, whether one is positive and one is negative, or whether they are both negative, is almost the same process a

Discovery, i have discovered a formula for finding the radius at any point ...

i have discovered a formula for finding the radius at any point of the graph have i done a good job

I NEED HELP WITH A MATH PROJECT., HOW MUCH WILL A NEW CAR COST? THE AVERAGE...

HOW MUCH WILL A NEW CAR COST? THE AVERAGE COST OF A NEW CAR IN 1990 WAS $14371. IN 2003 THE AVERAGE COST HAD RISEN TO $22360. WHAT IS THE AMOUNT OF THE MONTHLY PAYMENT? THE AMOUNT

Linear equation, tens digit of a 2-digit number is twice its unit digit. If...

tens digit of a 2-digit number is twice its unit digit. If the sum of the digit is 12, find the number.

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