FIT1058 Unit Cheatsheet

Context: FIT1058_MOC · the WHOLE unit in one re-read — logic → sets/functions → proofs → counting → probability → number theory/crypto → graphs. Every claim is a hand-derivable formula or rule; links for depth only.

Quick Revision

  • 🎯 Objective: match the claim’s logical SHAPE to a formula or proof blueprint ➔ derive in \begin{aligned} blocks, seal with Q.E.D.
  • ⚡ Key Constraint: hypothesis discipline — every rule here has a precondition (disjointness, independence, coprimality, connectedness); marks die when a rule fires without its hypothesis.

1️⃣ Logic

  • Proposition ➔ exactly one truth value (bivalence); questions/commands/self-reference are NOT propositions.
  • Connectives ➔ truth-table-defined; differs from only on the both-true row; forbids exactly one case (true→false) and is non-symmetric — the converse never follows.
  • Boolean Algebra Laws ➔ commutative/associative/idempotent/complement/identity/null/absorption/two distributive/De Morgan; identical to set algebra under , , complement.
  • Normal forms ➔ DNF = OR of AND-terms, read off truth-table 1-rows, up to terms, trivial satisfiability · CNF = AND of OR-clauses, De Morgan-dual, natural target for rule modelling and SAT.
  • Universality ➔ NAND alone or NOR alone suffice; alone and do NOT.
  • Quantifiers = one witness proves it; = every case; restriction pairs with , with . Negation flips through EVERY quantifier, then De Morgans the body. Mixed order: , never conversely.
  • Modus ponens ➔ from and deduce ; deducing from is the converse fallacy.

2️⃣ Sets, Relations, Functions

  • Set ➔ unordered, duplicate-free, membership-determined; ; (Cartesian product not commutative); , infinite.
  • Operations — never blindly additive; ; is a partial order.
  • Relations; reflexive + symmetric + transitive = equivalenceSet Partition (Bell numbers ); antisymmetric instead ⟹ partial order.
  • Function ➔ total + single-valued; injective (distinct outputs) / surjective (image = codomain) / bijective (both ⟺ inverse exists). Finite same-set map: injective ⟺ surjective ⟺ bijective (pigeonhole).
  • Composition, not commutative; (order reverses).
  • Counting maps ➔ all: · injective: , zero if · surjective: inclusion–exclusion.

3️⃣ Proofs & Induction

  • Blueprint menu ➔ construction (one witness, proves never ) · cases (finite partition) · contradiction · symbolic manipulation · induction.
  • Mathematical Induction ➔ BOTH obligations: basis + step ; no basis ⟹ chain never starts. Strong induction assumes all of .
  • Theorem/proof discipline ➔ finite, sequentially readable, no circular dependence; no general proof-finding algorithm exists (Gödel, Church–Turing).

4️⃣ Sequences & Series

  • Limit — quantifier ORDER is the content (“eventually”, not “always”).
  • Big-O Notation ➔ dominant term, drop constants; ; polynomial vs exponential = tractability frontier.

5️⃣ Combinatorics

Selection of from OrderedUnordered
with replacementstars & bars:
without replacement
  • Add vs multiply ➔ disjoint alternatives ADD, independent stages MULTIPLY — each rule’s hypothesis (overlap breaks addition, dependence breaks multiplication) is what’s examined.
  • Inclusion–exclusion ➔ alternating signed sum over all intersections; disjoint case collapses to addition.
  • Binomial identities (power-set layers); pigeonhole kills injections when .

6️⃣ Probability

  • Foundations; needs finite AND uniform; complement is the workhorse shortcut.
  • Conditional, needs ; independence ⟺ .
  • Mutually exclusive ≠ independent ➔ disjoint positive-probability events are DEPENDENT.
  • Total probability + Bayes ➔ partition ; then — confusing the two directions is the base-rate fallacy.
  • Expectation & variance; linearity always (, no independence needed); and only if independent; .
DistributionpmfSignature situation
Uniform on fairness or pure ignorance
Binomial i.i.d. Bernoulli — use the indicator-sum trick,
Geometric trials to first success; memoryless (refutes “law of averages”)
Poisson rare events; approximates ,
  • Coupon collector — the LAST coupons dominate.

7️⃣ Number Theory & Cryptography

  • Division, ; negative rounds the quotient DOWN ().
  • Euclidean Algorithm ➔ iterate until ; terminates because strictly decreases. Extended version tracks each value as ⟹ Bézout coefficients ⟹ Modular Inverse.
  • Inverse & coprimality invertible in iff ; prime modulus ⟹ field (all nonzero invertible); division = multiply by inverse, never “divide”.
  • Modular Exponentiation ➔ square-and-multiply, multiplications; easy forward, discrete log hard — the One-Way Function candidate (believed, never proven).
  • Euler/Fermat; FLT is the prime case ; payoff = shrink exponents mod . : easy WITH the factorisation, as hard as factoring without.
  • Diffie-Hellman Key Agreement ➔ public ; exchange ; shared — security = discrete log; must be a Primitive Root (exists only for ). A Cryptosystem’s must be bijective or decryption is ambiguous.

8️⃣ Graph Theory

  • Graph, edges as unordered pairs ⟹ simple by construction; adjacency = symmetric irreflexive relation.
  • Walk ⊇ trail ⊇ path ➔ repeat anything / no repeat edge / no repeat vertex; shortest walk = shortest path (defines distance).
  • Handshakingnecessary, not sufficient for a degree sequence.
  • Connectivity ➔ component = MAXIMAL connected subgraph; connected ≠ adjacent.
  • Euler Tour ➔ closed trail using every edge once ⟺ connected + all degrees even (Königsberg: four odd ⟹ impossible).
  • Bipartite ➔ 2-colourable ⟺ no odd cycle; = smallest non-bipartite.
  • Trees & forests ➔ tree = connected + acyclic ⟺ edges; forest = acyclic, componentwise. Every connected graph has a Spanning Tree; Kruskal: repeatedly add cheapest cycle-free edge — greedy provably optimal (rare!).
  • Planarity ➔ Euler’s formula ; bounds (triangle-free: ) DISPROVE planarity only — passing the bound proves nothing; minimal obstructions.
  • Representations ➔ matrix: bits, edge test · lists: compact for sparse.

⚠️ Top Cross-Unit Traps

  • 💡 One example never proves ➔ a witness proves only; the marker looks for exactly this slip.
  • 💡 Linearity vs independence adds always; adds only when independent.
  • 💡 Restriction connectives ➔ "" unfolds with ; "" with — swapped connectives silently change the claim.
  • 💡 Necessary vs sufficient ➔ handshaking, planarity bounds, degree tests: all one-directional — quote the direction.
  • 💡 ➔ remainder is never negative; quotient rounds down.