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

Percentage, A person spent 12.5% of his money and then rs.1600 and then 40%...

A person spent 12.5% of his money and then rs.1600 and then 40% of the remaining,now left rs.960 with him.What is his original money?

How long will it take to dispense 330 gallons, A large pipe dispenses 750 g...

A large pipe dispenses 750 gallons of water in 50 seconds. At this rate, how long will it take to dispense 330 gallons? Find out the number of gallons per second by dividing 75

What price tag will he put on the item, The manager of a specialty store ma...

The manager of a specialty store marks up imported products 110%. If a vase imported from Italy costs him $35, what price tag will he put on the item? To ?nd out the price he s

Expected opportunity loss or eol method, Expected opportunity loss or EOL m...

Expected opportunity loss or EOL method EOL method is aimed at minimizing the expected opportunity loss or OEL. The decision maker chooses the strategy along with the minimum e

Midpoint rule - approximating definite integrals, Midpoint Rule - Approxima...

Midpoint Rule - Approximating Definite Integrals This is the rule which should be somewhat well-known to you. We will divide the interval [a,b] into n subintervals of equal wid

Matrices, suppose you a business owner and selling cloth. the following rep...

suppose you a business owner and selling cloth. the following represents the number of items sold and the cost for each item. use matrix operation to determine the total revenue ov

Life mathametics, 20% of the total quantity of oil is 40 litres find the to...

20% of the total quantity of oil is 40 litres find the total quantity of oil in litres

Introduction to addition and subtraction, INTRODUCTION :  When a child of ...

INTRODUCTION :  When a child of seven isn't able to solve the sum 23+9, what could the reasons be? When she is asked to subtract 9 from 16, why does she write 9 - 16 = 13 ?

Bussiness, How do these websites help the company strengthen its relationsh...

How do these websites help the company strengthen its relationships with its stakeholders? List the website(s) that you previewed and give examples to support your answers. Who are

Transpotation, how can you determine trasportation schedule that minimizes ...

how can you determine trasportation schedule that minimizes cost

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