0% found this document useful (0 votes)
151 views

Discrete Mathematics Cheat Sheet

The document defines several mathematical terms: - A function is surjective if every element in the codomain has a preimage, injective if each element has at most one preimage, and bijective if each element has exactly one preimage. - Properties of relations include reflexive, symmetric, antisymmetric, and transitive. Partial orders and equivalence relations are defined by combinations of these properties. - Permutations, combinations, binomial coefficients, and Pascal's triangle are discussed in the context of counting elements of sets. - Recurrence relations of orders 1 and 2 are defined along with methods for solving them. - Graph theory terms include types of graphs like simple, complete, bipartite;

Uploaded by

semester 2
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
151 views

Discrete Mathematics Cheat Sheet

The document defines several mathematical terms: - A function is surjective if every element in the codomain has a preimage, injective if each element has at most one preimage, and bijective if each element has exactly one preimage. - Properties of relations include reflexive, symmetric, antisymmetric, and transitive. Partial orders and equivalence relations are defined by combinations of these properties. - Permutations, combinations, binomial coefficients, and Pascal's triangle are discussed in the context of counting elements of sets. - Recurrence relations of orders 1 and 2 are defined along with methods for solving them. - Graph theory terms include types of graphs like simple, complete, bipartite;

Uploaded by

semester 2
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Definitions

The function is surjective (onto) if every element of the codomain is mapped to by at least one element
of the domain.

The function is injective (one-to-one) if every element of the codomain is mapped to by at most one
element of the domain.

The function is bijective if every element of the codomain is mapped to by exactly one element of the
domain.

Properties of relations:
1. reflexive: for all x in X it holds that xRx (Show that ( x , x )∈ R )
2. symmetric: for all x and y in X it holds that if xRy then yRx. (Show that if ( x , y ) ∈ R , then
(y,x)∈R )
3. antisymmetric: for all x and y in X, if xRy and yRx then x = y. (Show that if ( x , y ) ∈ R and
( y , x ) ∈ R , then x = y)
4. transitive: for all x, y and z in X it holds that if xRy and yRz then xRz. (Show that if ( x , y ) ∈ R
and ( y , z ) ∈ R , then ( x , z ) ∈ R )
Partial orders are reflexive, antisymmetric, and transitive
Equivalence relations are reflexive, symmetric and transitive

To write a matrix for a relation R from X to Y, use the elements in X to label the rows and the elements
of Y to label the columns

Permutations: Order matters


The number of ways of obtaining an ordered subset of k elements from a set of n elements is given by
( n !)
P
n k =
(n−k ) !
Generalized permutations:
P ( n ; n n ... , n )= n!
1, 2, k
n1 ! n2 ! ... nk !
Combinations: Order does not matter
The number of ways of picking k unordered outcomes from n possibilities. Also known as the binomial
coefficient or choice number and read "nn choose
k k,"
()
k (n−k )! k !
n!
C=n=
Generalized combinations: ( n+ k−1) !
C = n+ k−1 =
n k ( k ) (n−1)! k !
k groups from n objects.
Binomial Coefficients:
We can find these using Pascal's Triangle:
n!
n ()
Cr = n =
r (n−r ) ! r !
where n is the row number and r is an element in that row.

Pascal's rule, which says that if

then

for any non-negative integer n and any integer k between 0 and n.


If A has n elements, and B has m elements:
 The total number of relations between the two is 2mn
 The total number of one-to-one functions is mPn.
 The total number of onto functions is nPm.
 The total number of bijections is n!
If A has n elements

 There are n +n
2( )
2 symmetric relations
()
n

 There are n
2×3
2 antisymmetric relations

n −n
2

 There are 2n reflexive relations


()
 There are 2 2 relations that are both reflexive and transitive

Recurrence Relations
Order 1: + b (the most general solution is an = krn with a0 = k)
Solution:
 If r = 1: an =a0 +nb

[ ]
n n 0 b b
 If r ≠ 1: a =r a +r−1 −r
−1
Order 2:

Solution:

 Let an = rn and substitute for all a terms to get .


 Dividing through by rn−2 to get which is the same as

A± √ A2+ 4
 Now we solve this polynomial using the quadratic equation
( r=
B
2 )
 Solve for r to obtain the two roots λ1, λ2
o If they are distinct, then we get
o If they are the same, then we get
 Now apply initial conditions
Graph Theory
Types of Graphs
 Simple graph: No loops or parallel edges
 Complete Graph: each pair of vertices has an edge connecting them.
(
◦ K has n vertices and n
edges
n n−1)
2
 Bipartite Graph: vertex set can be partitioned into two sets, W and X, so that no two vertices in
W are adjacent and no two vertices in X are adjacent
◦ Cannot contain an odd cycle
 Complete Bipartite Graph:
◦ If m=∣W∣ and n=∣X∣ , then:
▪ Km, n has m + n vertices and nm edges
 Planar Graph: can be drawn in such a way that no edges cross each other
◦ Kuratowski's Theorem: A finite graph is planar if and only if it does not contain a
subgraph that is a subdivision of K5 or K3,3.
◦ Euler's formula: v − e + f = 2.
◦ Graph is not planar if it contains a subgraph homeomorphic to K3,3 or K5
Types of Cycles:
 A cycle is a path that starts and ends at the same vertex and does not repeat edges
 Euler Cycle: Every vertex in the graph must have even degree. Traverses every edge
exactly once.
 Hamiltonian Cycle: Visits each vertex exactly once.
 Simple Cycle: closed walk with no repetitions of vertices and edges allowed, other than the
repetition of the starting and ending vertex
Isomorphism:
 Two graphs which contain the same number of graph vertices connected in the same way
are said to be isomorphic.

You might also like