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

Word problem, a recipe good for 4 servings require 1/8 tsp. black pepper an...

a recipe good for 4 servings require 1/8 tsp. black pepper and 1/2 tsp. of salt. how much black pepper and how much salt needed for 2 servings?

Division, Why do we start dividion operation from left to right?

Why do we start dividion operation from left to right?

Geometry, In the diagram points V,W,X,Y and Z are collinear, VZ=52, XZ= 20 ...

In the diagram points V,W,X,Y and Z are collinear, VZ=52, XZ= 20 AND WX=XY=YZ. Find the indicated length of WX, VW, WY, VX, WZ, and VY

Marvin helping teachers plan trip what is the minimum no, Marvin is helping...

Marvin is helping his teachers plan a ?eld trip. There are 125 people going on the ?eld trip and each school bus holds 48 people. What is the minimum number of school buses they wi

Probability, joey asked 30 randomly selected students if they drank milk, j...

joey asked 30 randomly selected students if they drank milk, juice, or bottled water with their lunch. He found that 9 drank milk, 16 drank juice, and 5 drank bottled water. If the

Determine the length of the longer base, The longer base of a trapezoid is ...

The longer base of a trapezoid is 3 times the shorter base. The nonparallel sides are congruent. The nonparallel side is 5 cm more that the shorter base. The perimeter of the trape

Application of statistics-quality control, Quality Control Normally th...

Quality Control Normally there is a quality control departments in every industry which is charged along with the responsibility of ensuring about the products made do meet th

Correlation, How o make vicariate frequency distribution table

How o make vicariate frequency distribution table

Calculate plurality voting and borda count, Consider the following set of p...

Consider the following set of preference lists:                                                      Number of Voters (7)                 Rank            1          1

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