Properties Of Relation (Cover Transitive, Reflective and Symmetric)
a. Embed Transitive, Reflective, and Symmetric rules into the program.
b. Write a program that read set of element and its relation. Your input data will be read from text file/console/GUI with the format below:
Input (Example): {(1, 1), (1, 2), (2, 1), (2, 2), (3, 3), (4, 4)}
You need to create a GUI application to process your input and output.
c. Determine the properties of relation (reflexive, symmetric, transitive.....). For example the above set and relation will produce:
Output: The set properties is REFLEXIVE, SYMMETRIC, AND TRANSITIVE.
d. Your program also need to be able to generate the Transitive, Symmetric and Closure for the set and relation.
(This example is for guidance only. The actual data is necessary according to your case.
Comments
Leave a comment