A Power Set is a set of all the subsets of a set. Show OK? Got that? Maybe an example will help... All The SubsetsFor the set {a,b,c}:
And altogether we get the Power Set of {a,b,c}: P(S) = { {}, {a}, {b}, {c}, {a, b}, {a, c}, {b, c}, {a, b, c} } Think of it as all the different ways we can select the items (the order of the items doesn't matter), including selecting none, or all. Example: The shop has banana, chocolate and lemon ice cream.What do you order?
Question: if the shop also has strawberry flavor what are your options? Solution later. How Many SubsetsEasy! If the original set has n members, then the Power Set will have 2n members
So, the Power Set should have 23 = 8, which it does, as we worked out before. NotationThe number of members of a set is often written as |S|, so when S has n members we can write: |P(S)| = 2n
Well, S has 5 members, so: |P(S)| = 2n = 25 = 32 You will see in a minute why the number of members is a power of 2 It's Binary!And here is the most amazing thing. To create the Power Set, write down the sequence of binary numbers (using n digits), and then let "1" mean "put the matching member into this subset". So "101" is replaced by 1 a, 0 b and 1 c to get us {a,c} Like this:
Well, they are not in a pretty order, but they are all there. Another ExampleLet's eat! We have four flavors of ice cream: banana, chocolate, lemon, and strawberry. How many different ways can we have them? Let's use letters for the flavors: {b, c, l, s}. Example selections include:
And the result is (more neatly arranged): P = { {}, {b}, {c}, {l}, {s}, {b,c}, {b,l}, {b,s}, {c,l}, {c,s}, {l,s}, {b,c,l}, {b,c,s},
A Prime ExampleThe Power Set can be useful in unexpected areas. I wanted to find all factors (not just the prime factors, but all factors) of a number. I could test all possible numbers: I could check 2, 3, 4, 5, 6, 7, etc... That took a long time for large numbers. But could I try to combine the prime factors? Let me see, the prime factors of 510 are 2×3×5×17 (using prime factor tool). So, all the factors of 510 are:
And this is what I got:
AutomatedI couldn't resist making Power Sets available to you in an automated way. So, when you need a power set, try Power Set Maker. Copyright © 2017 MathsIsFun.com
One solution I was considering was to choose items for I' successively such that the average p value of the items selected so far always falls within some upper and lower bound. Obviously, we could just choose p_l and p_u as our lower and upper bounds, respectively, and this would satisfy the average p value constraint. But this would also be too restrictive. It could leave out a large number of possible I' where small p values might balance out high p values. So I was considering letting the upper and lower bounds start out far apart when the first items are selected and then let them narrow down to p_l and p_u when the final mth item is selected. So we would have a cone of ranges that would become narrower as more items are picked. More precisely, we would define two functions u and l such that the average of the first i items picked (call this p_i) would satisfy l(i) <= p_i <= u(i) for 0 <= i <= m. I'm not really sure how to define these two functions, though. I know that l(m) = p_l and u(m) = p_u, but I don't know what l(0) or u(0) should be. Also, should the functions be linear? Comments or suggestions about this possible solution are welcome. Example 1: Given A = {1, 2, 4} and B = {1, 2, 3, 4, 5}, what is the relationship between these sets?We say that A is a subset of B, since every element of A is also in B. This is denoted by: A Venn diagram for the relationship between these sets is shown to the right. Answer: A is a subset of B. Another way to define a subset is: A is a subset of B if every element of A is contained in B. Both definitions are demonstrated in the Venn diagram above. Example 2: Given X = {a, r, e} and Y = {r, e, a, d}, what is the relationship between these sets?We say that X is a subset of Y, since every element of X is also in Y. This is denoted by: A Venn diagram for the relationship between these sets is shown to the right. Answer: X is a subset of Y. Example 3: Given P = {1, 3, 4} and Q = {2, 3, 4, 5, 6}, what is the relationship between these sets? We say that P is not a subset of Q since not every element of P is not contained in Q. For example, we can see that 1 Q. The statement "P is not a subset of Q" is denoted by: Note that these sets do have some elements in common. The intersection of these sets is shown in the Venn diagram below. Answer: P is not a subset of Q. The notation for subsets is shown below.
Analysis: Recall that the order in which the elements appear in a set is not important. Looking at the elements of these sets, it is clear that: Answer: A and B are equivalent. Definition: For any two sets, if A B and B A, then A = B. Thus A and B are equivalent.Example 5: List all subsets of the set C = {1, 2, 3}. Answer:
Looking at example 5, you may be wondering why the null set is listed as a subset of C. There are no elements in a null set, so there can be no elements in the null set that aren't contained in the complete set. Therefore, the null set is a subset of every set. You may also be wondering: Is a set a subset of itself? The answer is yes: Any set contains itself as a subset. This is denoted by: A A.A subset that is smaller than the complete set is referred to as a proper subset. So the set {1, 2} is a proper subset of the set {1, 2, 3} because the element 3 is not in the first set. In example 5, you can see that G is a proper subset of C, In fact, every subset listed in example 5 is a proper subset of C, except P. This is because P and C are equivalent sets (P = C). Some mathematicians use the symbol to denote a subset and the symbol to denote a proper subset, with the definition for proper subsets as follows:If A B, and A ≠ B, then A is said to be a proper subset of B and it is denoted by A B.While it is important to point out the information above, it can get a bit confusing, So let's think of subsets and proper subsets this way:
Do you see a pattern in the examples below? Example 6: List all subsets of the set R = {x, y, z}. How many are there?
Answer: There are eight subsets of the set R = {x, y, z}. Example 7: List all subsets of the set C = {1, 2, 3, 4}. How many are there?
Answer: There are 16 subsets of the set C = {1, 2, 3, 4}. In example 6, set R has three (3) elements and eight (8) subsets. In example 7, set C has four (4) elements and 16 subsets. To find the number of subsets of a set with n elements, raise 2 to the nth power: That is: The number of subsets in set A is 2n , where n is the number of elements in set A. L e s s o n S u m m a r y Subset: A is a subset of B: if every element of A is contained in B. This is denoted by A B.Equivalent Sets: For any two sets, if A B and B A, then A = B.Null set: The null set is a subset of every set. Sets and subsets: Any set contains itself as a subset. This is denoted by A A.Proper Subsets: If A B, and A ≠ B, then A is said to be a proper subset of B and it is denoted by A B.Number of Subsets: The number of subsets in set A is 2n , where n is the number of elements in set A. ExercisesDirections: Read each question below. Select your answer by clicking on its button. Feedback to your answer is provided in the RESULTS BOX. If you make a mistake, rethink your answer, then choose a different button.
|