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

The paperwork to purchase your new home, You recently started the paperwork...

You recently started the paperwork to purchase your new home, and you were just notified that you can move into the house in two weeks. You decide to hire a moving company, but are

3/8:5/9, how do I change this ratio to a fraction

how do I change this ratio to a fraction

Derive a linear system - gauss jordan elimination, Suppose that, on a certa...

Suppose that, on a certain day, 495 passengers want to fly from Honolulu (HNL) to New York (JFK); 605 passengers want to fly from HNL to Los Angeles (LAX); and 1100 passengers want

Quantitative method, Year 1 2 3 4 ...

Year 1 2 3 4 5 6 7 8 9 10 Corn revenue 40 44 46

Permuation and combination, how many words can be formed from letters of wo...

how many words can be formed from letters of word daughter such that each word contain 2vowles and 3consonant

Determine the transfer function, A digital filter has zero at z=a and poles...

A digital filter has zero at z=a and poles at z=b andz=c, where a, b, c are the real constants. Determine the transfer function and the frequency response function of the filter an

How many inches long is the bedroom, Raul's bedroom is 4 yards long. How ma...

Raul's bedroom is 4 yards long. How many inches long is the bedroom? There are 36 inches within a yard; 4 × 36 = 144 inches. There are 144 inches in 4 yards.

Logarithmic form and exponential form, Logarithmic form and exponential for...

Logarithmic form and exponential form ; We'll begin with b = 0 , b ≠ 1. Then we have y= log b x          is equivalent to                  x= b y The first one is called

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