CSCE 222 Lecture 9

From Notes
Jump to navigation Jump to search

« previous | Wednesday, February 9, 2011 | next »


Sets

A set is an unordered collection of unique objects, called elements.

Sets are equal () iff

Set is a subset of set () iff

Examples of Sets

  • (set of all natural numbers starting with 0)
  • (set of all natural numbers starting with 1)
  • (set of all integers)
  • (empty set)


Note: Properties of Sets
  1. The empty/null set is a subset of all sets
  2. Every set is a subset of itself


Cardinality

Let be a finite set (containing a finite number of elements):


Power Sets

Given a set , is the set of all subsets of :

Note: If a finite set has elements, then has elements.


Cartesian Products

A cartesian product between two finite sets and is the set of all unique tuples that can be created from the elements of and :

Note: