Theo's Math Journal

Saturday, December 31, 2016

Strings

›
An alphabet is a finite, nonempty set Σ of symbols. For example: Σ = {a, b} or Σ = {0, 1} or Σ = {a, b, c, d, e, f, g, h, i, j,...
Friday, April 22, 2016

Functions in computation

›
A function is a rule that assigns one element to a unique (one and only one) element. Examples S1 = {a, b, c} S2 = {w, x, y, z} f: S1 ...

Prove 1 + 2 + 3 + ... + n = n(n+1) / 2 for all n >= 1

›
Background:  This proof is often used for the analysis of various algorithms. Example:  1 + 2 + ... + 100 = (100 * 101) / 2 If we wanted...
Sunday, March 13, 2016

Binary strings of length n

›
Length 0:  λ (lambda, the empty string) Length 1: 0, 1 Length 2: 00, 10, 01, 11 There is a useful recursive technique for finding all s...
Sunday, February 21, 2016

For all n >= 0, if |S| = n, then |2S| = 2n

›
For all n ≥ 0, if |S| = n, then |2 S | = 2 n Proof by induction on n. Base case: Consider a set S with 0 elements. Then S = ∅ so 2 S = ...
Home
View web version
Powered by Blogger.