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

Explain basic geometric concepts, Explain Basic Geometric Concepts ? P...

Explain Basic Geometric Concepts ? Points, lines, and planes are the most fundamental concepts in the study of geometry. Points A point has no length, width or heig

Determine the area of the regular octagon, Determine the area of the regula...

Determine the area of the regular octagon with the following measurements. a. 224 square units b. 112 square units c. 84 square units d. 169 square units b. See

Partial derivatives - set theory, Partial Derivatives Partial derivati...

Partial Derivatives Partial derivatives are used while we want to investigate the effect of one independent variable on dependent variable. For illustration, the revenues of a

Three set problems, In a class,there are 174 students in form three,86 stud...

In a class,there are 174 students in form three,86 students play table tennis,84 play football and 94 play volleyball,30 play table tennis and volleyball,34 play volleyball and foo

Pumping lemma for context free languages, 1. Construct a grammar G such tha...

1. Construct a grammar G such that L(G) = L(M) where M is the PDA in the previous question. Then show that the word aaaabb is generated by G. 2. Prove, using the Pumping Lemma f

Calculate the price of the horseracing track, There are five horseracing tr...

There are five horseracing tracks in Kentucky. The Kentucky legislature allows only one track to be open at a time. How does this restriction affect the price the track can charge

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

Solve following x - x e 5 x + 2 = 0 logarithms, Solve following  x - x  ...

Solve following  x - x  e 5 x + 2   = 0 . Solution : The primary step is to factor an x out of both terms. DO NOT DIVIDE AN x FROM BOTH TERMS!!!! Note as well that it i

Word problems, if I read 6 hours of spring break how many minutes did ...

if I read 6 hours of spring break how many minutes did read

Brownian motion, How do I find the density of a square of a brownian motion...

How do I find the density of a square of a brownian motion .

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