Skip to content

Commit 29b49f2

Browse files
authored
Update appendix-a.md
1 parent 2482684 commit 29b49f2

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

discrete-maths/appendix-a.md

+16-10
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
# Discrete Mathematics I
22

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. RESULTT
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. RESULTF
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. RESULTT
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. RESULTF
14+
> ```
15+
> * Analysis:
16+
17+
18+

0 commit comments

Comments
 (0)