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

Calculate the area of the skirt to the nearest foot, Pat is making a Christ...

Pat is making a Christmas tree skirt. She needs to know how much fabric to buy. Using the example provided, calculate the area of the skirt to the nearest foot. a. 37.7 ft 2

Holistic marketing , Necessity of holistic marketing or importance of holis...

Necessity of holistic marketing or importance of holistic marketing

How many packets of the first type did she purchase, The manager of a garde...

The manager of a garden store ordered two different types of marigold seeds for her display. The first type cost her $1 per packet and the second kinds cost $1.26 per packet. How m

Compute the dot product for the equation, Compute the dot product for each ...

Compute the dot product for each of the subsequent equation  (a) v → = 5i → - 8j → , w → = i → + 2j →  (b) a → = (0, 3, -7) , b → = (2, 3,1) Solution (a) v →

Dilemmas of america''s minority groups, Explain this statement " As we begi...

Explain this statement " As we begin the 21st century, the dilemmas of America's minority groups remain perhaps the primary unresolved domestic issue facing the nation." How might

Two train leave show many hours will take before trains pass, Two trains le...

Two trains leave two different cities 1,029 miles apart and head directly toward every other on parallel tracks. If one train is traveling at 45 miles per hour and the other at 53

Classify linear or nonlinear, Question: Classify the following differen...

Question: Classify the following differential equations as linear/nonlinear. Also, what is the order of the following differential equations? Xy'-2y =x Xy'' -2y' =xsin(y)

#titlefunction.., provide a real-world example or scenario that can be expr...

provide a real-world example or scenario that can be express as a relation that is not a function

How to subtract fractions involving negative numbers, Q. How to Subtract fr...

Q. How to Subtract fractions involving negative numbers? Ans. This is the same as adding them, but just remember the rule that two negatives on the same fraction cancel ou

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