6.0 KB · commit a9602da
See 05.1 Mathematical Induction
See 05.2 Strong Induction and Well-Ordering
See 05.3 Recursive Definitions and Structural Induction
The Principle of Mathematical Induction: To prove that P(n) is true for all positive integers n, where P(n) is a propositional function, we complete two steps:
The Principle of Strong Induction: To prove that P(n) is true for all positive integers n, where P(n) is a propositional function, we complete two steps:
The Well-Ordering Property: Every nonempty set of nonnegative integers has a least element.
Equivalence of Induction Principles: Mathematical induction, strong induction, and well-ordering are all logically equivalent proof techniques when applied to the set of positive integers.
Lamé's Theorem: Let a and b be positive integers with a≥b. Then the number of divisions used by the Euclidean algorithm to find gcd(a,b) is less than or equal to 5 times the number of decimal digits in b.
Full Binary Tree Vertex Bound: If T is a full binary tree of height h(T) with n(T) vertices, then: n(T)≤2h(T)+1−1
Complexity of Merge Sort: The merge sort algorithm sorts a list of n elements using O(nlogn) comparisons.
Rules of Inference for Program Correctness (Hoare Logic):