Polynomial time algorithm - first order query, Mathematics

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.

Posted Date: 3/1/2013 12:16:09 AM | Location : United States







Related Discussions:- Polynomial time algorithm - first order query, Assignment Help, Ask Question on Polynomial time algorithm - first order query, Get Answer, Expert's Help, Polynomial time algorithm - first order query Discussions

Write discussion on Polynomial time algorithm - first order query
Your posts are moderated
Related Questions

Explain the rules of Divisibility ? Divisible by 2: If the last digit is a 0, 2, 4, 6, or 8, the number is evenly divisible by 2. Divisible by 2 Not


The figure provided below shows a hexagonal-shaped nut. What is the measure of ∠ABC?   a. 120° b. 135° c. 108° d. 144° a. The measure of an angle of a regula

Sequences Let us start off this section along with a discussion of just what a sequence is. A sequence is nothing much more than a list of numbers written in a particular orde

what is the difference between North America''s part of the total population and Africa''s part


Steps for Integration Strategy 1. Simplify the integrand, if possible This step is vital in the integration process. Several integrals can be taken from impossible or ve

Jay bought twenty-five $0.37 stamps. How much did he spend? To ?nd how much Jay spent, you must multiply the cost of each stamp ($0.37) through the number of stamps purchased (

write a short note on shares and dividend under the following heading: shares ,type of shares,face/nominal value of shares.