Last Minute Notes - Discrete Mathematics: Propositional Logic
Last Minute Notes - Discrete Mathematics: Propositional Logic
Data Structures Algorithms Interview Preparation Topic-wise Practice C++ Java Python Competitive Pro
Propositional Logic
1. Implication( →): For any two propositions p and q, the statement “if p then q” is
called an implication and it is denoted by p → q.
2. if and only if( ↔): For any two propositions p and q, the statement “p if and only
if(iff) q” is called a biconditional and it is denoted by p ↔ q.
De Morgan’s Law :
1.Implication :
https://www.geeksforgeeks.org/last-minute-notes-discrete-mathematics/ 1/9
3/5/22, 2:23 PM Last Minute Notes – Discrete Mathematics - GeeksforGeeks
Login Register
2.Contradiction – A proposition which is always false, is called a contradiction.
called a contingency.
1.
2.
Rules of inference
Combinatric s
these objects.
of ways a specific number of elements can be selected from a set of a cer tain size.
https://www.geeksforgeeks.org/last-minute-notes-discrete-mathematics/ 2/9
3/5/22, 2:23 PM Last Minute Notes – Discrete Mathematics - GeeksforGeeks
Set Theor y
set.
An element ‘a’ belong to a set A can be written as ‘a ∈ A’, ‘a ∉ A’ denotes that a is not
an element of the set A .
Equal sets
Two sets are said to be equal if both have same elements. For example A = {1, 3, 9,
Subset
A set A is said to be subset of another set B if and only if ever y element of set A is
Denoted by ‘ ⊆‘.
‘A ⊆ B ‘ denotes A is a subset of B.
also belongs to B.
https://www.geeksforgeeks.org/last-minute-notes-discrete-mathematics/ 3/9
3/5/22, 2:23 PM Last Minute Notes – Discrete Mathematics - GeeksforGeeks
To prove A is not a subset of B, we need to find out one element which is par t of set A
Login Register
‘U’ denotes the universal set. Above Venn Diagram shows that A is a subset of B.
Size of a Set
For example
Power Sets
The power set is the set all possible subset of the set S. Denoted by P(S).
{ ∅}, {0}, {1}, {2}, {0, 1}, {0, 2}, {1, 2}, {0, 1, 2}.
Note: Empty set and set itself is also the member of this set of subsets.
Let A and B be two sets. Car tesian product of A and B is denoted by A × B, is the set
A × B = {(a, b) | a ∈ A ∧ b ∈ B}.
cardinality of B.
https://www.geeksforgeeks.org/last-minute-notes-discrete-mathematics/ 4/9
3/5/22, 2:23 PM Last Minute Notes – Discrete Mathematics - GeeksforGeeks
Union
Login Register
set A or set B, or both.
Intersection
Disjoint
Two sets are said to be disjoint if their intersection is the empty set .i.e sets have no
common elements.
Set Difference
Difference between sets is denoted by ‘A – B’, is the set containing elements of set A
Complement
The complement of a set A , denoted by , is the set of all the elements except A .
Formula:
1.
2.
Group
m
1. No. of functions from A to B = n
m m m m
3. No. of onto function =n – (n, C, 1)*(n-1) + (n, C, 2)*(n-2) …. +(-1) *(n, C, n-
mn
6. No. of relations =2
n(n-1)
7. No. of reflexive relations =2
n(n+1)/2
8. No. of symmetric relations = 2
https://www.geeksforgeeks.org/last-minute-notes-discrete-mathematics/ 5/9
3/5/22, 2:23 PM Last Minute Notes – Discrete Mathematics - GeeksforGeeks
n n(n-1)/2
9. No. of Anti Symmetric Relations = 2 *3
n(n-1)/2
n(n-1)
Login Register
11. No. of irreflexive relations = 2
1) Reflexive
2) Antisymmetric
3) Transitive
1) Reflexive
2) symmetric
3) Transitive
Graph Theor y
2. Bipar tite Graph : There is no edges between any two ver tices of same par tition . In
3. Sum of degree of all ver tices is equal to twice the number of edges.
0 (null graph)
6. Minimum no. of edges to have connected graph with n ver tices = n-1
7. To guarantee that a graph with n ver tices is connected, minimum no. of edges
required = {(n-1)*(n-2)/2 } + 1
8. A graph is euler graph if it there exists atmost 2 ver tices of odd – degree
9. Tree
https://www.geeksforgeeks.org/last-minute-notes-discrete-mathematics/ 6/9
3/5/22, 2:23 PM Last Minute Notes – Discrete Mathematics - GeeksforGeeks
Login Register
-> no. of edges = n -1
n-2
10. For complete graph the no . of spanning tree possible = n
subgraph.
Let G be a connected planar graph, and let n, m and f denote, respectively, the
Let G be a connected planar simple graph with n ver tices and m edges, and no
triangles. Then m ≤ 2n – 4.
Let G be a connected planar simple graph with n ver tices, where n ? 3 and m
edges. Then m ≤ 3n – 6.
12.) Ever y bipar tite graph is 2 colourable and vice versa
n
13.) The no. of per fect matchings for a complete graph (2n)/(2 n!)
Like
Previous Next
Ar ticle Contributed By :
VaibhavRai3
@VaibhavRai3
Current difficulty :
Easy
Report Issue
Load Comments
Company Learn
About Us Algorithms
Careers Data Structures
Privacy Policy Machine learning
Contact Us CS Subjects
Copyright Policy Video Tutorials
https://www.geeksforgeeks.org/last-minute-notes-discrete-mathematics/ 8/9
3/5/22, 2:23 PM Last Minute Notes – Discrete Mathematics - GeeksforGeeks
News Languages
@geeksforgeeks
, Some rights reserved
https://www.geeksforgeeks.org/last-minute-notes-discrete-mathematics/ 9/9