Sets - PowerPoint PPT Presentation

1 / 11
About This Presentation
Title:

Sets

Description:

Sets. A set is an unordered collection of distince objects. A set can be represented by listing all of its elements in curly braces: ... – PowerPoint PPT presentation

Number of Views:34
Avg rating:3.0/5.0
Slides: 12
Provided by: sain9
Category:
Tags: curly | sets

less

Transcript and Presenter's Notes

Title: Sets


1
Sets
  • A set is an unordered collection of distince
    objects.
  • A set can be represented by listing all of its
    elements in curly braces
  • a, b, c is the set of whatever 3 objects are
    denoted by a, b, c.
  • Set builder notation
  • x P(x) is the set of all x such that P(x).

2
Set Properties
  • Sets are unordered
  • No matter what objects a, b, and c denote, a,
    b, c a, c, b b, a, c b, c, a c,
    a, b c, b, a.
  • All elements are distinct duplicates are not
    allowed.

3
Examples of Sets
  • 1, 2, 3, 4
  • x x is an integer where xgt0 and xlt5
  • x x is a positive integer whose square
    is gt0 and lt25
  • N 0, 1, 2, Natural numbers.Z , -2, -1,
    0, 1, 2, Integers.R Real numbers

4
Set Notation
  • ? (null, the empty set) is the set that
    contains no elements, i.e. ?
  • A?B (A is a subset of B) means that every
    element of A is also an element of B.
  • A?B (A is a superset of B) means B?A.
  • AB ? A?B? A?B.
  • A?B (A is a proper subset of B) means that A?B
    but A is not equal to B.

5
Cardinality
  • A (read the cardinality of S) is the number
    of elements in A.
  • Examples
  • ?0,
  • 1,2,3 3,
  • a,b 2,
  • 1,2,3,4,5 2

6
Cartesian Product of Two Sets
  • For sets A, B, the Cartesian productA?B ? (a,
    b) a?A ? b?B .
  • Example
  • a,b?1,2 (a,1),(a,2),(b,1),(b,2)
  • For finite A, B, A?BAB.

7
Venn Diagrams
8
Set Operations
  • Union A?B x x?A ? x?B.
  • 2,3,5?3,5,7 2,3,5,7
  • Intersection A?B x x?A ? x?B.
  • 2, 4, 6, 8?3,4, 5, 6 4, 6
  • Two sets A, B are called disjoint if their
    intersection is empty. (A?B?)
  • Principle of Inclusion-Exclusion
  • A?B A ? B ? A?B

9
Set Operations, cont
  • A ? B ?x ? x?A ? x?B?
  • 1,2,3,4,5,6 ? 3,5,7,9 1,2,4,6
  • The universe of discourse (all objects under
    consideration) is noted by U.
  • The complement of A, , is all elements in U
    which are not in A, i.e. the set U?A.

10
Set Membership Tables
11
Example of Proving a Set Identity
Write a Comment
User Comments (0)
About PowerShow.com