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

Cooking measurement question, Ask question what is half of 1 1/3 liquid mea...

Ask question what is half of 1 1/3 liquid measurements?

Word problem solving, the traffic light at three different road crossing ch...

the traffic light at three different road crossing change after every 48 seconds, 72 seconds and 108 seconds respectively. if they change simultaneously at 7 a.m., at what time wil

Solving trig equations with calculators part ii, Solving Trig Equations wit...

Solving Trig Equations with Calculators, Part II : Since this document is also being prepared for viewing on the web we split this section into two parts to keep the size of the

Stages of multiplication from the beginning, What is our aim when teaching ...

What is our aim when teaching children multiplication? Firstly they should be able to judge which situations they need to multiply in, and the numbers that are to be multiplied sec

Joey participated-a-thon how many hours did joey team dance, Joey participa...

Joey participated within a dance-a-thon. His team begin dancing at on Friday 10 A.M. and stopped at 6 P.M. on Saturday. How many hours did Joey's team dance? From 10 A.M. Frida

The arithmetic mean, Arithmetic mean Arithmetic means is commonly know...

Arithmetic mean Arithmetic means is commonly known as average or mean it is acquired by first of all summing up the values provided and by dividing the total value by the tota

Mensuration, if area of a rectangle is 27 sqmtr and it perimeter is 24 m fi...

if area of a rectangle is 27 sqmtr and it perimeter is 24 m find the length and breath#

Find how much more space than the toy it will cover, A Solid toy in the for...

A Solid toy in the form of a hemisphere surmounted by the right circular cone of height  2cm  and  diameter  of  the  base  4  cm .If  a right  circular  cylinder circumscribes the

Determine the critical points, Assume that the amount of money in a bank ac...

Assume that the amount of money in a bank account after t years is specified by, Find out the minimum & maximum amount of money in the account throughout the first 10 years

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