Union , intersection
The union is the repeated application of the set union operation . A set is just a "collection of unique things", so no duplicates. Most programming languages have some kind of set type included. The union of two sets is a new set that contains all entries of both sets. You can think of as a cup that gathers things falling into it.
The intersection is the repeated application of the set intersection operation . The intersection of two sets is a new set containing only those elements that are found in both sets. Elements only in one of the sets are not included.
Basic forms: or and or
Parts: See the section about Sum or Product
Meaning: Apply a union or intersection with each term , starting at and ending at . If the upper stop value is lower than the initial value, then the union is the empty set , e.g. . The intersection is a bit more tricky and you probably won't encounter this issue when implementing an algorithm. The result of the empty intersection is the set of all possible elements. So, if we call that set (for "all", sometimes also ("Omega")), then we have .
For the union this results in:
For the intersection this results in: