Top Banner Ad
BCS303 · 1-Page Cheat Sheet

Discrete Structures & Theory of Logic

BCS303 · YEAR 2 · SEM 3

Discrete Structures & Theory of Logic — Last-Night Cheat Sheet

prephora.in

Five units: sets/relations/lattices, functions and Boolean simplification, propositional and predicate logic, algebraic structures, and graphs with combinatorics. Each unit has its own symbolic strip.

1. Set Theory& Relations

Recall anchor. Combination of sets, Properties of relations and POSET & Lattices: Hasse Diagram: operations on sets and relations obey count and property rules, and a poset is drawn as a Hasse diagram after reflexive and transitive edges are suppressed.

Scored points.

  • Introduction and Combination of sets use union, intersection, complement and difference; disjoint partition counts follow inclusion–exclusion.
  • Relations: Definition—a relation R⊆A×A is a set of ordered pairs; Operations on relations include union, intersection, complement, inverse and composition.
  • Properties of relations: reflexive (aRa), symmetric (aRb⇒bRa), antisymmetric and transitive (aRb∧bRc⇒aRc); each is tested directly on the pairs.
  • Composite Relations and Equality of relations: R∘S chains S then R; two relations are equal when they contain exactly the same ordered pairs.
  • Recursive definition of relation and Order of relations build closures: the transitive closure R⁺ contains every pair reachable by a non-empty chain.
  • POSET and Hasse Diagram represent a reflexive, antisymmetric, transitive order with minimal elements at the bottom and no redundant edges.
  • Definition & Properties of lattices—Bounded, Complemented, Distributed, Modular and Complete lattice—describe join ∧ and meet ∨ structure; every finite lattice has a greatest lower bound and least upper bound for each pair.

Formula strip.

∣A∪B∣=∣A∣+∣B∣−∣A∩B∣,R+=⋃k≥1Rk,POSET: reflexive ∧ antisymmetric ∧ transitive|A\cup B|=|A|+|B|-|A\cap B|,\quad R^{+}=\bigcup_{k\ge 1}R^{k},\quad \text{POSET}:\ \text{reflexive}\ \wedge\ \text{antisymmetric}\ \wedge\ \text{transitive}

Micro-example. If |A|=8, |B|=5 and |A∩B|=2, then |A∪B| = 8+5−2 = 11 elements.

Examiner line. For Set Theory& Relations, list the ordered pairs or the Hasse covering relation first, test each property by definition, then give the count or closure.

2. Functions

Recall anchor. Classification of functions, Growth of Functions and Karnaugh maps: a function is classified as one-one/onto and by its growth rate, while Boolean functions are simplified by axioms or by grouping K-map cells in powers of two.

Scored points.

  • Definition and Classification of functions: one-one, onto, bijective and inverse functions; a bijection exists only when domain and codomain have equal finite size.
  • Operations on functions include composition f∘g, addition and restriction; composition is associative but generally not commutative.
  • Growth of Functions compares f(n) with g(n) using O, Ω and Θ bounds; polynomial growth nᵏ is slower than exponential 2ⁿ.
  • Boolean Algebra: Introduction and Axioms and Theorems of Boolean algebra give idempotence, absorption, complement, associativity and De Morgan laws.
  • Algebraic manipulation of Boolean expressions applies those laws to rewrite a circuit expression before minimisation.
  • Simplification of Boolean Functions uses SOP/POS forms and consensus; Karnaugh maps group adjacent 1s (or 0s) into blocks of 1, 2, 4, 8, 16.
  • A group of 2ᵏ cells eliminates k variables; with don't-care entries, larger groups may be formed without changing the required outputs.

Formula strip.

∣B∣∣A∣=nm,A+B‾=Aˉ⋅Bˉ,K-map group of 2k cells removes k literals|B|^{|A|}=n^{m},\quad \overline{A+B}=\bar A\cdot\bar B,\quad \text{K-map group of }2^{k}\text{ cells removes }k\text{ literals}

Micro-example. From a 3-element domain to a 2-element codomain there are 2³ = 8 functions; a 4-cell K-map group removes 2 literals from the product term.

Examiner line. For Functions, state the mapping or truth assignment, name the classification or theorem used, and show the simplified expression with the grouping quoted.

3. Theory of Logics

Recall anchor. Proposition, Truth tables and Theory of Inference: a proposition has a truth value, truth tables classify formulae as tautology, satisfiable or contradiction, and inference rules derive a conclusion from premises.

Scored points.

  • Proposition and Truth tables: simple and compound propositions use ∧, ∨, ¬, → and ↔; a table with n variables has 2ⁿ rows.
  • Tautology, Satisfiability and Contradiction: a tautology is true in every row, a satisfiable formula has at least one true row, a contradiction has none.
  • Algebra of proposition uses equivalences such as implication removal, double negation and De Morgan to prove two formulae equivalent.
  • Theory of Inference applies Modus Ponens, Modus Tollens, Hypothetical Syllogism, Disjunctive Syllogism and Universal Instantiation to a stated premise set.
  • Predicate Logic: First order predicate and wellformed formula of predicate build atomic predicates with constants, variables, functions and connectives.
  • quantifiers: ∀ (universal) and ∃ (existential); negation pushes through a quantifier by flipping it and negating the predicate.
  • Inference theory of predicate logic adds Universal Generalisation and Existential Generalisation with restrictions on free variables.

Formula strip.

p→q≡¬p∨q,¬(p∧q)≡¬p∨¬q,¬∀x P(x)≡∃x ¬P(x),rows=2np\to q\equiv \neg p\vee q,\quad \neg(p\wedge q)\equiv \neg p\vee\neg q,\quad \neg\forall x\,P(x)\equiv\exists x\,\neg P(x),\quad \text{rows}=2^{n}

Micro-example. With p = T and q = F, p→q = ¬T∨F = F∨F = F; a truth table for 3 propositions therefore has 2³ = 8 rows.

Examiner line. In Theory of Logics, write the symbolic form of each statement, give the equivalence or inference rule by name, and justify the conclusion with a row or a derivation step.

4. Algebraic Structures

Recall anchor. Groups, Cosets and Lagrange's theorem: closure, associativity, identity and inverse define a group; cosets partition the group into equal-sized classes, which forces the subgroup order to divide the group order.

Scored points.

  • Definition and Groups: a binary operation on a set is a group if it is closed, associative, has an identity and every element has an inverse; an abelian group also commutes.
  • Subgroups and order: a non-empty subset closed under operation and inverse is a subgroup; the order of an element is the least n with aⁿ=e.
  • Cyclic Groups are generated by one element; every cyclic group of order n is isomorphic to ℤₙ under addition.
  • Cosets: left coset aH={ah : h∈H}; two cosets are equal or disjoint, and all have |H| elements.
  • Lagrange's theorem gives |G| = [G:H]·|H| for a finite group and hence element orders divide |G|.
  • Normal Subgroups satisfy gNg⁻¹=N and permit quotient groups G/N; Permutation and Symmetric groups use cycle decomposition and parity.
  • Group Homomorphisms preserve the operation (f(ab)=f(a)f(b)); Definition and elementary properties of Rings and Fields add two operations with distributive law, and a field requires every non-zero element to be invertible.

Formula strip.

∣G∣=[G:H] ∣H∣,a∣G∣=e (finite group),Cn=⟨a∣an=e⟩,ker⁡f={g∈G:f(g)=e}|G|=[G:H]\,|H|,\quad a^{|G|}=e\ \text{(finite group)},\quad C_n=\langle a\mid a^{n}=e\rangle,\quad \ker f=\{g\in G:f(g)=e\}

Micro-example. If |G|=12 and |H|=3, Lagrange gives [G:H] = 12/3 = 4 cosets, each containing 3 elements.

Examiner line. For Algebraic Structures, verify the axioms or subgroup test explicitly, name the coset or homomorphism being used, and finish with the order or quotient obtained.

5. Graphs

Recall anchor. Euler and Hamiltonian paths, Graph coloring and Pigeonhole Principle: degree parity decides Euler trails, colouring assigns adjacent vertices different colours, and pigeonhole forces a repeated class when objects outnumber boxes.

Scored points.

  • Definition and terminology and Representation of graphs: adjacency matrix or adjacency list; degree counts incidences at a vertex.
  • Multigraphs allow parallel edges; Bipartite graphs split vertices into two sets with no same-set edge; Planar graphs can be drawn without crossing edges.
  • Isomorphism and Homeomorphism of graphs preserve adjacency (and, for homeomorphism, allow degree-2 subdivisions).
  • Euler and Hamiltonian paths: an Euler circuit needs every vertex even; an Euler trail needs exactly two odd vertices; a Hamiltonian cycle visits each vertex once.
  • Graph coloring assigns colours so adjacent vertices differ; chromatic number is the minimum colour count, and a bipartite graph needs at most two.
  • Combinatorics: Introduction and Counting Techniques use the addition and multiplication principles, permutations and combinations.
  • Pigeonhole Principle: placing n objects in k boxes forces at least ⌈n/k⌉ objects in one box, a standard existence argument in graph degree proofs.

Formula strip.

∑v∈Vdeg⁡(v)=2∣E∣,V−E+F=2 (connected planar),(nr)=n!r!(n−r)!,⌈n/k⌉\sum_{v\in V}\deg(v)=2|E|,\quad V-E+F=2\ \text{(connected planar)},\quad \binom{n}{r}=\frac{n!}{r!(n-r)!},\quad \left\lceil n/k\right\rceil

Micro-example. A connected planar graph with V=6 and E=9 has F = 2−V+E = 5 faces; 10 objects in 3 boxes force ⌈10/3⌉ = 4 in at least one box.

Examiner line. For Graphs, draw or describe the structure, quote the degree/colouring/counting relation, and state the existence conclusion the theorem forces.

Memory map

%%{init: {'theme': 'base', 'look': 'handDrawn', 'themeVariables': {'fontFamily': "'Nunito', sans-serif", 'fontSize': '17px', 'primaryColor': '#EFEAD6', 'primaryBorderColor': '#0F766E', 'lineColor': '#23211C'}}}%%
flowchart LR
  U1["Set Theory& Relations"] --> U1a["Combination of sets"] --> U1b["POSET & Lattices: Hasse Diagram"]
  U1b --> U2["Functions"] --> U2a["Classification of functions"] --> U2b["Karnaugh maps"]
  U2b --> U3["Theory of Logics"] --> U3a["Truth tables"] --> U3b["Inference theory of predicate logic"]
  U3b --> U4["Algebraic Structures"] --> U4a["Cosets"] --> U4b["Lagrange's theorem"]
  U4b --> U5["Graphs"] --> U5a["Euler and Hamiltonian paths"] --> U5b["Pigeonhole Principle"]

Rapid recall

  1. U1 Set Theory& Relations — Introduction; Combination of sets; Relations: Definition; Operations on relations; Properties of relations; Composite Relations; Equality of relations; Recursive definition of relation; Order of relations; POSET & Lattices: Hasse Diagram; Bounded, Complemented, Distributed, Modular and Complete lattice.
  2. U2 Functions — Definition; Classification of functions; Operations on functions; Growth of Functions; Boolean Algebra: Introduction; Axioms and Theorems of Boolean algebra; Algebraic manipulation of Boolean expressions; Simplification of Boolean Functions; Karnaugh maps.
  3. U3 Theory of Logics — Proposition; Truth tables; Tautology; Satisfiability; Contradiction; Algebra of proposition; Theory of Inference; Predicate Logic: First order predicate; wellformed formula of predicate; quantifiers; Inference theory of predicate logic.
  4. U4 Algebraic Structures — Definition; Groups; Subgroups and order; Cyclic Groups; Cosets; Lagrange's theorem; Normal Subgroups; Permutation and Symmetric groups; Group Homomorphisms; Rings and Fields.
  5. U5 Graphs — Definition and terminology; Representation of graphs; Multigraphs; Bipartite graphs; Planar graphs; Isomorphism and Homeomorphism of graphs; Euler and Hamiltonian paths; Graph coloring; Combinatorics: Introduction; Counting Techniques; Pigeonhole Principle.

Final-answer checklist (BCS303)

  • Write the exact symbolic object first: ordered pairs for a relation, truth assignment for logic, coset for a group, degree sequence or colouring for a graph.
  • Name the theorem or law you invoke (De Morgan, Lagrange, inclusion–exclusion, pigeonhole, Euler parity) before computing.
  • Keep notation consistent: ∧/∨ for lattice and Boolean join/meet, ∀/∃ for predicates, |G| and [G:H] for group orders.
  • Show one numeric check—set count, truth-table row count, coset count or face count—with the relation written out.
  • Finish with the requested result—closure, minimised expression, conclusion, quotient or colour count—in one explicit sentence.