1. Objective / Мета роботи
Implement checks for the fundamental properties of a binary relation on a set, recognise equivalence relations, and generate the inverse of a relation.
By the end of the work the student should be able to:
- represent a binary relation on a set as a set of ordered pairs ;
- test the three core properties — reflexivity (), symmetry (), and transitivity ();
- combine them to decide whether is an equivalence relation, and explain how such a relation partitions into equivalence classes;
- construct the inverse relation ;
- test antisymmetry and decide whether is a partial order (reflexive, antisymmetric, and transitive);
- reason about the time complexity of each check.
The work makes the abstract properties of relations concrete and prepares the ground for order relations, functions, and partitions studied later.