NEOCODE

Relations and Representations

1. Let R = {(1,2), (2,3)} and S = {(2,4), (3,5)}. What is the composition of R and S (R ∘ S)?

2. If R is a relation represented by the matrix [1 0; 0 1], what type of relation is R?

3. Which of the following is true for the composition of relations?

4. If a relation R is represented by a matrix M, what does a diagonal of 1s in M indicate?

5. Which of the following is true for the adjacency matrix of a graph representing a relation?

6. If R is a relation represented by a directed graph, what does a loop at a vertex indicate?

7. If R and S are relations, what is the result of R ∪ S?

8. If a relation R is represented by a matrix M, what does M[i][j] = 1 indicate?

9. Which of the following is true for the composition of two relations R and S?

10. If a relation R is represented by a graph, what does the absence of loops indicate?