Question: Write a program in C++ for: Input Input a relation matrix every time, with a space between every two adjacent elements in each line. The

Write a program in C++ for: Write a program in C++ for: Input Input a relation matrix

Input Input a relation matrix every time, with a space between every two adjacent elements in each line. The cardinality of relation is less than 12. Output Output the relation matrix of the transitive closure of the relation. Note: you can use while (scanf("%d",&a)!=EOF) Test Input Expected Output Time limitation Memory limitation Extra process number Test Case 1 1 seconds 256M 0 View plain 1. 1 1 1 1 View plain 1. 0 1 0 0 2. 1 0 1 0 3. OOO 12 4. 0 1 0 0 2. 1 10 3. 1 1 1 1 4. 1 1 1 1

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!