Question: For this problem set we define A = {a 1 , a 2 , , a n } to be a set of n elements.

For this problem set we define A = {a1, a2, , an} to be a set of n elements. A relation R over A is a subset of A A.

Relations can be represented in a variety of ways. One method that is conceptually convenient is to represent a relation as a boolean matrix. As an example, when n= 4 we have the following:

R= {(a1,a2 ), (a1,a3 ), (a2,a1 ), (a2,a2 ), (a3,a4 ), (a4,a1)}

M= 0 1 1 0

1 1 0 0

0 0 0 1

1 0 0 0

Here, the entry in the ith row and jth column of the matrix, Mij, is 1 iff the ordered pair (ai,aj ) R , and is 0 otherwise. Note that this defines a bijection between the set of relations on A and the set of nn matrices with 0/1 entries.

Problem 1. What is the number of distinct relations over the n-element set A ?

Problem 2. A relation R over A is reflexive if, for every ai A the ordered pair (ai, ai) R. What is the value of every diagonal entry Mii in the matrix corresponding to R?

Problem 3. What is the number of reflexive relations over the n-element set A?

Problem 4. A relation R over A is symmetric if, for every ordered pair (ai, aj) R the ordered pair (aj, ai) R. What is the number of symmetric relations over the n-element set A?

Problem 5. How many relations over A are both reflexive and symmetric?

Problem 6. A relation R over A is transitive if, for every i,j,k: (ai, aj) R and (aj, ak) R implies that (ai, ak) R. Is the relation in the example above transitive?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!