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

Fractions, what is the lowest term of 11/121

what is the lowest term of 11/121

Trinomial x2 + 2x + 1 what are the dimensions of the field, A farmer's rect...

A farmer's rectangular field has an area in which can be expressed as the trinomial x2 + 2x + 1. In terms of x, what are the dimensions of the field? Because the formula for th

Cynthia, #stioquen..Store A is advertising a sale that will reduce prices o...

#stioquen..Store A is advertising a sale that will reduce prices on all merchandise by 15%. Store B is advertising a sale that will reduce prices on all merchandise by one over fiv

Ordinary differential equations, Verify Liouville''s formula for y^ prime p...

Verify Liouville''s formula for y^ prime prime prime -y^ prime prime - y'' + y = 0 in [0, 1]

Formula to computing how much lumber to buy, Audrey is creating a increased...

Audrey is creating a increased flowerbed which is 4.5 ft by 4.5 ft. She requires computing how much lumber to buy. If she requires knowing the distance around the flowerbed, which

Examples on log rules, Examples on Log rules: Example:      Calculate...

Examples on Log rules: Example:      Calculate (1/3)log 10   2. Solution: log b n√A = log b A 1/n = (1/n)log b A (1/3)log 10 2 = log 10 3 √2 = log 10 1.

Solve the subsequent lp problem, Solve the subsequent LP problem graphicall...

Solve the subsequent LP problem graphically through enumerating the corner points. MAX:              3X1 + 4X2 Subject to:    X1   12                     X2    10

Explain english system in details, Explain English System in details? T...

Explain English System in details? There are three types of measurements that can be taken using the English System: length, distance, weight, and capacity. Length and dista

Help, dividing decimals

dividing decimals

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