The Cook-Levin Theorem states that the Boolean Satisfiability Problem (SAT) is NP-complete.# Divide-and-Conquer Technique
Divide-and-Conquer
Divide-and-Conquer is a general algorithm design paradigm:
Link to original
- Divide: divide the input data into two disjoint subsets and
- Recur: solve the subproblems associated with and
- Conquer: combine the solutions for and into a solution for
Proof by Induction
Proof by Induction
Proof by Induction consists of:
Link to original
- Base Case: show that solution holds for
- Inductive Case:
- Assume that it holds for .
- Substitute to confirm it also holds for .
Example 1: Show for all .
Let be a recursion relation defined by:
- Base Case: Show for . from definition (R.H.S.)
- Inductive Case: Assume that for . We then have that for : This is our Induction Hypothesis with substituted, hence by induction for all .
Example 2: Show that for all .
Let be a recursion relation defined by:
- Base Case: Show for . from definition
- Inductive Case: Assume that for . We then have that for : This is our Induction Hypothesis with substituted, hence by induction for all .
Proof by Strong Induction
Proof by Strong Induction
Proof by Strong Induction consists of:
Link to original
- Base Case: Show that solution holds for .
- Inductive Case:
- Assume it holds for all .
- Substitute to confirm it also holds for .
Example 3: Show that for all .
Let be a recursion relation defined by:
- Base Case: Show that for :
- Inductive Case: Assume that for all for some . We then have that for :
Example 4: Fibonacci Number proof
Check slides for this, unlikely to come up.