Question: Implement a function that return whether a relation is an equivalence relations. Use the functions from example 1 in your implementation. - Name of function
Implement a function that return whether a relation is an equivalence relations. Use the functions from example in your implementation.
Name of function and input: isequivalencerelationdefinedset, relationonset
Input: First input definedset is a list representing the set on which the relations exist. Second input relationonset is a list of tuples representing a relation on the set.
Output: Boolean value, True if the relation relationonset is an equivalence relation for the set definedset otherwise False.
Examples:
isequivalencerelation should return the boolean value True.
isequivalencerelationAlice 'Bob', 'David', 'Eve'Alice'Bob'Bob'Alice' should return the boolean value False.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
