Question #5445

what is symmetric difference of two sets.explain with example.

Expert's answer

The symmetric difference of two sets is the set of elements which are in either of the sets and not in their intersection. The symmetric difference is equivalent to the union of both relative complements, that is: (A\B) U (B\A).

For example, the symmetric difference of the sets {1,2,3} and {3,4} is {1,2,4}. The symmetric difference of the set of all students and the set of all females consists of all male students together with all female non-students.

For example, the symmetric difference of the sets {1,2,3} and {3,4} is {1,2,4}. The symmetric difference of the set of all students and the set of all females consists of all male students together with all female non-students.

## Comments

## Leave a comment