Set difference is a mathematical operation that finds the elements that are in one set but not in another.
Answer
Learn about Set Difference
A set intersection, described with the minus symbol -, describes the comparison of two sets where the resulting set contains every element of the first set not appearing in the second. Alongside unions and intersections, set differences are a primary method of interacting with and modifying sets. Sets and set theory in general are an important method to conceive of and visualize data, and are a common subject in mathematics and computer science courses.
Take the following sets, A and B. The difference of these two sets will be every element of the first set not appearing in the second. Start with just set A.Then, remove all elements that can be found in set B.The resulting set is the difference of sets A and B.
Start with the first set: {Ti, Mn, Ru, Pt, Mt, Ds, Rg}. Remove all elements appearing in the second set, and the remaining elements will compose the set difference.Start with the first set: {Lettuce, Artichoke, Radish, Tomato}. Remove all elements appearing in the second set, and the remaining elements will compose the set difference.Start with the first set: {42, 28, 49, 93, 12, 23, 47}. Remove all elements appearing in the second set, and the remaining elements will compose the set difference.The difference of any set with the empty set will result in the original set.
Watch detailed video tutorials about Set Difference !
Difference of Two Sets
5 minutes
SET OPERATIONS - DISCRETE MATHEMATICS
7 minutes
On Demand Computer Science Theory Education for Students.