I am unsure of about this problem. Want to see if I am doing this right.

Use Algorithm 1 to find the transitive closures of the relation on {a,b,c,d,e}.

{(a,c),(b,d),(c,a),(d,b),(e,d)}


I got:

10100
01010
10100
01010
01010