Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

CSE 396 Fall2008

Introduction to the Theory of Computation

Homework Solution - Set 1


Due: Friday 09/05/08

1. Textbook, Page 26, Exercise 0.7. Let A = {a, b, c}. Let Z+ be the set of positive integers. a. The following relation R1 is a binary relation on A that is reexive and symmetric but not transitive: R1 = {(a, a), (b, b), (c, c), (a, b), (b, a), (b, c), (c, b)}. The following relation R2 is an innite such relation, which is dened on Z+ : R2 = {(a, b) | a b 1} b. The following relation R3 is a binary relation on A that is reexive and transitive but not symmetric: R3 = {(a, a), (b, b), (c, c), (a, b), (b, c), (a, c)}. The normal relation dened on Z+ is an innite such relation. c. The following relation R4 is a binary relation on A that is symmetric and transitive but not reexive: R4 = {(a, a), (b, b), (a, b), (b, a)}. The following relation R5 is an innite such relation, which is dened on Z+ : R2 = {(a, b) | both a and b are even. } Note that the key point in constructing a relation that is symmetric and transitive but not reexive is that there has to be some isolated element in the base set that is not related to any other element.
1

2. Textbook, Page 27, Exercise 0.8. The graph is as follows: 1 4

The thickened lines indicate a path from node 3 to node 4. The degree of node 1 is 3 and that of node 3 is 2.

You might also like