Determine the properties and query are definable in datalog, Mathematics

Assignment Help:

We now focus on the use of Datalog for defining properties and queries m graphs.

(a) Suppose that P is some property of graphs definable in Datalog. Show drat P is preserved under extensions and homomorphisms. That is, if G is a graph satisfying P, then every supergraph of G (i.e., graph extending G) satisfies P, and if h is a graph homomorphism, then h (G) satisfies P.

Which of the following properties and queries on graphs are definable in Datalog?

b) The number of vertices is even.

(c) There is a simple path (i.e., a path without repeated vertices) of even length between two specified vertices.

(d) The binary relation T containing all pairs of vertices (a, D) for which there is a path of even length from o to b. Provide either a Datalog program defining the property or query or an argument why the property or query is not definable in Datalog.

 


Related Discussions:- Determine the properties and query are definable in datalog

Solving algebraic word problems, Solving Algebraic Word Problems: What...

Solving Algebraic Word Problems: What are the capacities of two water storage tanks in a nuclear facility if one holds 9 gallons less than three times another, and their whole

Which of the subsequent binomials could represent the length, The area of a...

The area of a rectangle is represented through the trinomial: x 2 + x - 12. Which of the subsequent binomials could represent the length and width? Because the formula for the

Fractions, Mr. And Mrs. samuel visited Florida and purchased 120 oranges. ...

Mr. And Mrs. samuel visited Florida and purchased 120 oranges. They gave 1/4 of them to relatives, ate 1/12 of them in the hotel, and gave 1/3 of them to friends. The shipped the

What are real numbers, The hole set of irrational and rational numbers is t...

The hole set of irrational and rational numbers is the set of real numbers and is representing by R. Thus, the real numbers can also be describe in terms of position of a point on

Jordan needs help, carlie is now fivetimes as old as henry. in nine years ...

carlie is now fivetimes as old as henry. in nine years her age will be twice henry''s age then. how old is carly now

Function to convert a complex number in algebraic form, Go back to the com...

Go back to the complex numbers code in Figures 50 and 51 of your notes. Add code fragments to handle the following: 1. A function for adding two complex numbers given in algeb

Integer., How do we add integers

How do we add integers

Find and classify the differential equation, Find and classify the equilibr...

Find and classify the equilibrium solutions of the subsequent differential equation. y' = y 2 - y - 6 Solution The equilibrium solutions are to such differential equati

Math, what is division

what is division

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