GATE Critical: Logic, sets, graphs, recurrence relations, combinatorics. 8-10 questions typical.
// Propositional Logic
Statements: True or False
Operators: AND (∧), OR (∨), NOT (¬), → (implies), ↔ (iff)
Tautology: Always true
Contradiction: Always false
Contingency: Sometimes true, sometimes false
Truth table for (p → q) ∨ (¬p ∧ q):
p | q | p→q | ¬p | ¬p∧q | (p→q)∨(¬p∧q)
T | T | T | F | F | T
T | F | F | F | F | F
F | T | T | T | T | T
F | F | T | T | F | T
Logical equivalences:
p → q ≡ ¬p ∨ q
¬(p ∧ q) ≡ ¬p ∨ ¬q (De Morgan)
// Set Theory
A ∪ B: Union (elements in A or B)
A ∩ B: Intersection (elements in both)
A - B: Difference (in A but not B)
A': Complement (not in A)
|A ∪ B| = |A| + |B| - |A ∩ B|
Power set P(A): All subsets
If |A| = n, |P(A)| = 2^n
Cartesian product A × B: All pairs (a,b)
|A × B| = |A| × |B|
// Permutations & Combinations
Permutations P(n,r) = n!/(n-r)!
Ordered selections, order matters
P(5,2) = 5×4 = 20
Combinations C(n,r) = n!/(r!(n-r)!)
Unordered selections
C(5,2) = 5×4/(2×1) = 10
Binomial theorem: (x+y)^n = Σ C(n,k)x^(n-k)y^k
// Recurrence Relations
Linear homogeneous: a_n = c1·a_(n-1) + c2·a_(n-2)
Solution method: Characteristic equation
r^2 - 2r - 3 = 0 → (r-3)(r+1)=0 → r=3 or -1
General solution: a_n = A·3^n + B·(-1)^n
Non-homogeneous: a_n = c1·a_(n-1) + f(n)
Particular solution for f(n) type
General solution = homogeneous + particular
// Graph Theory
Vertices V, Edges E
Degree: Number of edges at vertex
Complete graph K_n: All vertices connected
n vertices, n(n-1)/2 edges
Bipartite graph: Vertices split into 2 sets
No edges within same set
Complete bipartite K_{m,n}: m·n edges
Tree: n vertices, n-1 edges, connected, acyclic
Spanning tree: Subtree connecting all vertices
All spanning trees of graph have same edge count
// Shortest Path Formulas
Dijkstra: Non-negative weights, O((V+E)log V)
Floyd-Warshall: All pairs, O(V³), handles negative
Bellman-Ford: Handles negative, detects cycles, O(VE)
// Graph Coloring
Chromatic number χ(G): Minimum colors needed
Bipartite: χ = 2
Triangle: χ = 3
Complete graph K_n: χ = n
Planar graph: χ ≤ 4 (Four Color Theorem)