All mock tests are FREE till 31 December — register to save your progress

Find the zero-one matrix of the transitive closure of the relation with matrix A = [1 0 1; 0 1 0; 1 1 0].

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: A. [1 1 1; 0 1 0; 1 1 1]

Explanation

1 → 3 → 2 gives (1, 2); 3 → 1 → 3 gives (3, 3). Row 1 becomes 111, row 2 stays 010, row 3 becomes 111.

More Discrete Structures and Optimization questions