








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
All about my module because my assignments is depends on this
Typology: Assignments
1 / 14
This page cannot be seen from the preview
Don't miss anything!









CS 441 Discrete mathematics for CS^ M. Hauskrecht
Milos Hauskrecht [email protected] 5329 Sennott Square
CS 441 Discrete mathematics for CS^ M. Hauskrecht
Examples of discrete structures built with the help of sets:
CS 441 Discrete mathematics for CS^ M. Hauskrecht
CS 441 Discrete mathematics for CS^ M. Hauskrecht
**Representing a set by:
If enumeration of the members is hard we often use ellipses. Example: a set of integers between 1 and 100
CS 441 Discrete mathematics for CS^ M. Hauskrecht
Definition: Two sets are equal if and only if they have the same elements.
Example:
Note: Duplicates don't contribute anything new to a set, so remove them. The order of the elements in a set doesn't contribute anything new.
Example: Are {1,2,3,4} and {1,2,2,4} equal? No!
CS 441 Discrete mathematics for CS^ M. Hauskrecht
CS 441 Discrete mathematics for CS^ M. Hauskrecht
U A B C
CS 441 Discrete mathematics for CS^ M. Hauskrecht
U
A
B
CS 441 Discrete mathematics for CS^ M. Hauskrecht
Definition : A set A is said to be a proper subset of B if and only if A B and A B. We denote that A is a proper subset of B with the notation A B. U
A
B
CS 441 Discrete mathematics for CS^ M. Hauskrecht
Definition : A set A is said to be a proper subset of B if and only if A B and A B. We denote that A is a proper subset of B with the notation A B.
Example: A={1,2,3} B ={1,2,3,4,5} Is: A B? Yes.
U
A
B
CS 441 Discrete mathematics for CS^ M. Hauskrecht
Definition: Let S be a set. If there are exactly n distinct elements in S, where n is a nonnegative integer, we say S is a finite set and that n is the cardinality of S. The cardinality of S is denoted by | S |.
Examples:
CS 441 Discrete mathematics for CS^ M. Hauskrecht
Definition : A set is infinite if it is not finite.
Examples:
CS 441 Discrete mathematics for CS^ M. Hauskrecht
CS 441 Discrete mathematics for CS^ M. Hauskrecht
Definition : An ordered n-tuple (x1, x2, ..., xN) is the ordered collection that has x1 as its first element, x2 as its second element, ..., and xN as its N-th element, N 2.
Example:
x
y
CS 441 Discrete mathematics for CS^ M. Hauskrecht
Definition : Let S and T be sets. The Cartesian product of S and T , denoted by S x T, is the set of all ordered pairs (s,t), where s S and t T. Hence,
Examples:
CS 441 Discrete mathematics for CS^ M. Hauskrecht
Example:
Definition: A subset of the Cartesian product A x B is called a relation from the set A to the set B.
CS 441 Discrete mathematics for CS^ M. Hauskrecht
Definition : Two sets are called disjoint if their intersection is empty.
Example:
U B A
CS 441 Discrete mathematics for CS^ M. Hauskrecht
Cardinality of the set union.
^ U A
B
CS 441 Discrete mathematics for CS^ M. Hauskrecht
Cardinality of the set union.
^ U A
B
CS 441 Discrete mathematics for CS^ M. Hauskrecht
Definition : Let A and B be sets. The difference of A and B , denoted by A - B , is the set containing those elements that are in A but not in B. The difference of A and B is also called the complement of B with respect to A.
Example: A= {1,2,3,5,7} B = {1,5,6,8}
U A
B