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

Algebra, If a^n+1 + b^n+1/a^n + b^n is the arithmetic mean of a and b then ...

If a^n+1 + b^n+1/a^n + b^n is the arithmetic mean of a and b then find n. Answer:Arithmatic mean of a,b is =(a+b)/2  from the problem (a+b)/2=(a^n+1 +b ^n+1)/(a^n+b^n)  then (a+

If 0.3 is added to 0.2 times the quantity x - 3, If 0.3 is added to 0.2 tim...

If 0.3 is added to 0.2 times the quantity x - 3, the result is 2.5. What is the value of x? The statement, "If 0.3 is added to 0.2 times the quantity x - 3, the result is 2.5,

Solve the following word problems, 1.   The length of a rectangle is 2 time...

1.   The length of a rectangle is 2 times its width.  The area of the rectangle is 72          square inches. Find the dimensions of the rectangle.   2.   The length of a rec

Scatter graphs, Scatter Graphs - A scatter graph is a graph that compr...

Scatter Graphs - A scatter graph is a graph that comprises of points which have been plotted but are not joined through line segments - The pattern of the points will defin

How many different words can be formed out from varanasi, Determine how man...

Determine how many different words can be formed out of the letters of the word VARANASI? Ans: 720 different words can be formed out of the letters of the word VARANASI.

Introduction to technical mathmatic, 81 miles equal how many inches simplif...

81 miles equal how many inches simplify your answer integer od decimal..

Matrices, find inverse of [1 2 3 2 4 5 3 5 6]

find inverse of [1 2 3 2 4 5 3 5 6]

Describe vibration absorber and white noise, Describe what is meant by eac...

Describe what is meant by each of the following NVH terms and explain their importance in vehicle refinement: (a)  Vibration absorber (b)  Fast Fourier Transform (c)  Whit

Prove that the length of the altitude on the hypotenuse, If A be the area o...

If A be the area of a right triangle and b one of the sides containing the right angle, prove that the length of the altitude on the hypotenuse is 2  Ab /√ b 4 +4A 2 . An

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