Below is a summarization of the project we were assigned.
Given a set and a binary relation on the set, you must verify whether the
given relation is Reflexive, Symmetric, Antisymmetric, and Transitive or not.
Input format:
12345
11
22
33
44
55
13
31
Output format:
Reflexive - YES or NO
Symmetric - YES or NO
Antisymmetric - YES or NO
Transitive - YES or NO
I'm thinking I want to use arrays for the input but I am lost as to an efficient way of doing so.
Even after getting the input into arrays I'm not sure of a good way to check for each relation (I fully understand each relation, don't need those explained).
Does anyone have any tips or suggestions for the best way to go about doing this? Any help is extremely appreciated.