# subsets

• 03-10-2003
scottmanc
subsets
what does it mean to find a subset of a set. for example the subsets of the set {1,2,...,n}.
I am not asking for a solution but rather what a subset would be.

Thanks
• 03-10-2003
Magos
Assume the set {1,2,3,4,5}

A subset of a set is a new set, with items that only exists in that set (and no multiples of them, if I remember correctly).

Example:
{1,2,3} - Valid, 1,2 & 3 is in the set.
{5,3} - Valid, same reason
{3,4,5,6} - Not valid, 6 is not part of the set.
{1,2,3,4,5} - Valid, however it is not a true subset since it is the exact same as the set.
{} - Valid? I believe the empty set is considered a subset, not sure though...
• 03-10-2003
Codeplug
A subset is just a set, whose elements are also members of the superset.
Code:

`A is a subset of B, if all members of A are also in B`
gg
• 03-10-2003
scottmanc
thanks a lot
• 03-10-2003
pianorain
Quote:

Originally posted by Magos
<snip>
{1,2,3,4,5} - Valid, however it is not a true subset since it is the exact same as the set.
{} - Valid? I believe the empty set is considered a subset, not sure though...

True subset? What is this you speak of? Is 'true subset' a common mathematically defined term? From what I remember, a set A is a subset of B iff A Union B = B, or every element in A is an element of B. From that, it's pretty easy to see that the empty set is a subset of every set.
• 03-11-2003
Magos
Quote:

Originally posted by pianorain
True subset? What is this you speak of? Is 'true subset' a common mathematically defined term? From what I remember, a set A is a subset of B iff A Union B = B, or every element in A is an element of B. From that, it's pretty easy to see that the empty set is a subset of every set.
I don't know if 'true subset' is the correct mathematical term (I'm not english u know :)). However, a subset is a 'true subset' if it really is a subset and not the same as the set. In any case, it is a subset, not neccessarily a true subset.

(If some swede is out here, what is the correct translation of äkta delmängd?)
• 03-11-2003
Codeplug
The terminology I grew up with is proper subset.
Quote:

If A is a subset of B, and B contains any elements that are not in A, then A is a proper subset.
For example A = {1,2} B = {1,2}
A is a subset of B, A is not a proper subset of B (or vica-versa).

gg
• 03-11-2003
Magos
Quote:

Originally posted by Codeplug
The terminology I grew up with is proper subset.
For example A = {1,2} B = {1,2}
A is a subset of B, A is not a proper subset of B (or vica-versa).

gg

Exactly what I meant. Proper subset, thanks!