Docsity

Homework Assignment for COT 3100: Relation Closures and Transitivity - Prof. Arup Guha, Assignments of Computer Science

Toggle sidebar
bg1
COT 3100 Homework #4 Fall ’00
Lecturer: Arup Guha
Assigned: 10/17/00
Due: 10/24/00 (No late assignments)
1) Prove or disprove: If a relation R, defined as a subset of A x A, is transitive, then R R
is transitive as well.
2) Define sumdigits(a), where a is a positive integer, to be the sum of the digits in the
decimal representation of the positive integer a. Using this definition of the function
sumdigits, consider the following relation:
{(a,b) | aZ+ bZ+ (ab sumdigits(a) sumdigits(b)}
Determine if this relation is (i)reflexive, (ii)irreflexive, (iii)symmetric, (iv)antisymmetric,
and (v)transitive?
The rest of the questions will be based on the following definitions. (Note: Prove
your answer to questions 3, 4, or 5 through a valid proof or a disproof using a
counter-example.)
Definition. Let R A A denote a binary relation. The following relations defined
over A are called closures:
(a) The reflexive closure of R is r(R) = R {(a, a) | a A}.
(b) The symmetric closure of R is s(R) = R R–1.
(c) The transitive closure of R is t(R) = R R2 R3 ..., where R2 = R R, R3 = R2 R,
etc., where denotes relation composition. Thus, (a, b) t(R) (a, b) Rn, for
some n 1 there exist a1, a2, …, an A, an = b, for some n 1, such that (a, a1),
(a1, a2), …, (an1, an) R, i.e., there exists a direct path of n edges connecting a to b in
the digraph for the relation R.
It can easily be seen that the names of these closures are justified in that for any binary
relation R, r(R) is reflexive, s(R) is symmetric, and t(R) is transitive. Also, we can define
the composition of these closures, e.g., tr(R) = t(r(R)), rs(R) = r(s(R)), etc.
3) If relations R and S defined over the set A A are antisymmetric, is (R S)
necessarily antisymmetric?
4) For a relation R defined over the set A A, is s(r(R) = r(s(R)) always true?
5) For a relation R defined over the set A A, is t(s(R)) necessarily reflexive?

Partial preview of the text

Download Homework Assignment for COT 3100: Relation Closures and Transitivity - Prof. Arup Guha and more Assignments Computer Science in PDF only on Docsity!

COT 3100 Homework #4 Fall ’

Lecturer: Arup Guha

Assigned: 10/17/

Due: 10/24/00 (No late assignments)

1) Prove or disprove: If a relation R, defined as a subset of A x A, is transitive, then RR is transitive as well. 2) Define sumdigits(a), where a is a positive integer, to be the sum of the digits in the decimal representation of the positive integer a. Using this definition of the function sumdigits, consider the following relation: {(a,b) | aZ+^  bZ+^  (ab  sumdigits(a)  sumdigits(b)} Determine if this relation is (i)reflexive, (ii)irreflexive, (iii)symmetric, (iv)antisymmetric, and (v)transitive? The rest of the questions will be based on the following definitions. (Note: Prove your answer to questions 3, 4, or 5 through a valid proof or a disproof using a counter-example.) Definition. Let RAA denote a binary relation. The following relations defined over A are called closures : (a) The reflexive closure of R is r ( R ) = R  {( a , a ) | aA }. (b) The symmetric closure of R is s ( R ) = RR –1. (c) The transitive closure of R is t ( R ) = RR^2  R^3  ... , where R^2 = RR , R^3 = R^2  R , etc., where  denotes relation composition. Thus, ( a , b )  t ( R )  ( a , b )  Rn , for some n  1  there exist a 1 , a 2 , …, anA , an = b , for some n  1, such that ( a , a 1 ), ( a 1 , a 2 ), …, ( an  1 , an )  R , i.e., there exists a direct path of n edges connecting a to b in the digraph for the relation R. It can easily be seen that the names of these closures are justified in that for any binary relation R , r ( R ) is reflexive, s ( R ) is symmetric, and t ( R ) is transitive. Also, we can define the composition of these closures, e.g., tr ( R ) = t ( r ( R )), rs ( R ) = r ( s ( R )), etc. 3) If relations R and S defined over the set A  A are antisymmetric, is (R  S) necessarily antisymmetric? 4) For a relation R defined over the set A  A, is s(r(R) = r(s(R)) always true? 5) For a relation R defined over the set A  A, is t(s(R)) necessarily reflexive?