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

Mathematical science, state tha different types of models used in operation...

state tha different types of models used in operations research.

The shortest distance among the line y-x=1 and curve x=y^2, Any point on pa...

Any point on parabola, (k 2 ,k) Perpendicular distance formula: D=(k-k 2 -1)/2 1/2 Differentiating and putting =0 1-2k=0 k=1/2 Therefore the point is (1/4, 1/2) D=3/(32 1/2

Explain the common forms of linear equations, Explain the Common Forms of L...

Explain the Common Forms of Linear Equations ? An equation whose graph is a line is called a linear equation. Here are listed some special forms of linear equations. Why should

How many checks required to be used for the monthly costs, Green Bank charg...

Green Bank charges a monthly fee of $3 for a checking account and $.10 per check. Savings-R-Us bank charges a $4.50 monthly fee and $.05 per check. How many checks required to be u

Counters and registers, design a synchronous, recycling, MOD-12 counter wit...

design a synchronous, recycling, MOD-12 counter with D FF''s. Use the states 0000 through 1011 in the counter.

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

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