Commit 29b49f2 1 parent 2482684 commit 29b49f2 Copy full SHA for 29b49f2
File tree 1 file changed +16
-10
lines changed
1 file changed +16
-10
lines changed Original file line number Diff line number Diff line change 1
1
# Discrete Mathematics I
2
2
3
- ### Test for transitivity of relations in set A, where R represents the set of the relations from A to A; such that {A <R > A} can be deployed:
4
- ``` java
5
- 1. RESULT ← T
6
- 2. FOR I = 1 THRU N
7
- a. FOR J = 1 THRU N
8
- 1. IF (MAT [I ,J ] = 1 ) THEN
9
- a. FOR K = 1 THRU N
10
- 1. IF (MAT [J ,K ] = 1 and MAT [I ,K ] = 1 ) THEN
11
- a. RESULT ← F
12
- ```
3
+ ### Test for transitivity of relations in set A, where R represents the set of the relations from A to A; such that {A ` R ` A} can be deployed:
4
+
5
+ > * Bool isTransitive(MAT, N):
6
+ > ``` java
7
+ > 1. RESULT ← T
8
+ > 2. FOR I = 1 THRU N
9
+ > a. FOR J = 1 THRU N
10
+ > 1. IF (MAT [I ,J ] = 1 ) THEN
11
+ > a. FOR K = 1 THRU N
12
+ > 1. IF (MAT [J ,K ] = 1 and MAT [I ,K ] = 1 ) THEN
13
+ > a. RESULT ← F
14
+ > ```
15
+ > * Analysis :
16
+
17
+
18
+
You can’t perform that action at this time.
0 commit comments