














































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
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
These lecture notes provide an introduction to discrete mathematics, covering fundamental concepts such as sets, logic, and boolean algebra. The notes are well-structured and include clear explanations, examples, and visual aids. They are suitable for students studying computer science or related fields.
Typology: Lecture notes
1 / 54
This page cannot be seen from the preview
Don't miss anything!
2 Outline (^) Introduction (^) Sets Logic & Boolean Algebra Proof Techniques (^) Counting Principles (^) Combinatorics (^) Relations,Functions (^) Graphs/Trees Boolean Functions, Circuits Introduction Introduction
© Dr. Eric Gossett 4 The Stable Marriage Problem
In the future we will: (^) Prove that the assignment is stable (reading tonight). (^) Prove that the assignment is optimal for suitors. (^) Count the number of possible assignments. (^) Calculate the complexity of the algorithm.
The Problem A Solution: (^) The Deferred Acceptance Algorithm
© Discrete Mathematical Structures: Theory and Applications 5 Stable (^) Marriage partners should be assigned in such a manner that no one will be able to find someone (whom they prefer to their assigned mate) that is willing to elope with them.
7 (^) Introduction (^) Sets Logic & Boolean Algebra Proof Techniques (^) Counting Principles (^) Combinatorics (^) Relations,Functions (^) Graphs/Trees Boolean Functions, Circuits Outline Sets Sets
8
It is assumed that you have studied set theory before.
The remaining slides in this section are for your review. They will not all be covered in class.
If you need extra help in this area, a special help session will be scheduled.
© Discrete Mathematical Structures: Theory and Applications 10 Sets
a Vowels
j Vowels
© Discrete Mathematical Structures: Theory and Applications 11 Sets (^) Set-builder method (^) A = { x | x S, P(x) } or A = { x S | P(x) } (^) A is the set of all elements x of S, such that x satisfies the property P (^) Example: (^) If X = {2,4,6,8,10}, then in set-builder notation, X can be described as X = {n Z | n is even and 2 n 10}
© Discrete Mathematical Structures: Theory and Applications 13 Sets (^) Subsets (^) “X is a subset of Y” is written as X Y (^) “X is not a subset of Y” is written as X Y (^) Example:
(^) Y X, since every element of Y is an element of X (^) Y Z, since a Y, but a Z
© Discrete Mathematical Structures: Theory and Applications 14 Sets (^) Superset (^) X and Y are sets. If X Y, then “X is contained in Y” or “Y contains X” or Y is a superset of X, written Y X Proper Subset (^) X and Y are sets. X is a proper subset of Y if X Y and there exists at least one element in Y that is not in X. This is written X Y. (^) Example: (^) X = {a,e,i,o,u}, Y = {a,e,i,o,u,y} (^) X Y , since y Y, but y X
© Discrete Mathematical Structures: Theory and Applications 16 Sets
© Discrete Mathematical Structures: Theory and Applications 17 Sets
© Discrete Mathematical Structures: Theory and Applications 19 Sets Venn Diagrams (^) Abstract visualization of a Universal set, U as a rectangle, with all subsets of U shown as circles. (^) Shaded portion represents the corresponding set (^) Example:
© Discrete Mathematical Structures: Theory and Applications 20 Set Operations and Venn Diagrams
Example: If X = {1,2,3,4,5} and Y = {5,6,7,8,9}, then XUY = {1,2,3,4,5,6,7,8,9}