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

Find the coordinates of the other two vertices, The two opposite vertices o...

The two opposite vertices of a square are (-1, 2) and (3, 2). Find the coordinates of the other two vertices.

#title.heat loss in a cylindrical pipe., briefly explain how the famous equ...

briefly explain how the famous equation for the loss of heat in a cylindrical pipe is derived

Example of probability, Example of Probability: Example: By using...

Example of Probability: Example: By using a die, what is the probability of rolling two 3s in a row? Solution: From the previous example, there is a 1/6 chance of

Ratios, a muffin recipe calls for three forth of a cup of sugar and one eig...

a muffin recipe calls for three forth of a cup of sugar and one eight of a cup of butter. travis accidentally put in one whole cup of butter. how much sugar does travis need to put

Determine z-scores and percentiles, Q. Determine Z-scores and Percentiles? ...

Q. Determine Z-scores and Percentiles? Ans. Z-scores help measure how far a piece of data is from the mean. More specifically, Z-scores tell how far a piece of data is fr

Partial Differentiation, If the sides angles of a triangle ABC vary in such...

If the sides angles of a triangle ABC vary in such a way that it''s circum - radius remain constant. Prove that, da/cos A +db/cos B+dc/cos C=0

..compound intrest, tell me about the software of compound intrest?

tell me about the software of compound intrest?

Boat Crossing, What is the slowest a boat can travel across a river if the ...

What is the slowest a boat can travel across a river if the river is flowing with a velocity field of X^2?

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