Docsity

Induction - Biological and Cognitive Sciences - Lecture Notes, Study notes of Biogenetics and Computers

Toggle sidebar
bg1
In general, in exercises, "show" means "show from the
definitions and theorems in the chapter"….
Thus it is not quite enough to say why you believe
something; must trace it back to the definitions.
What constitutes showing is based upon the chapter.
So showing something is a matter of going back to
logic.
In sets chapter, we derived sets from logic.
So showing something means using everything in
previous chapters:)
In this chapter, we have the sets chapter to use
Solutions to odd numbered problems are in the back
of the book.
These demonstrate what "showing" actually is!
Two well-kept public secrets
"Show"
Induction Page 1
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Induction - Biological and Cognitive Sciences - Lecture Notes and more Study notes Biogenetics and Computers in PDF only on Docsity!

In general, in exercises, "show" means "show from the definitions and theorems in the chapter"…. Thus it is not quite enough to say why you believe something; must trace it back to the definitions. What constitutes showing is based upon the chapter. So showing something is a matter of going back to logic. In sets chapter, we derived sets from logic. So showing something means using everything in previous chapters:) In this chapter, we have the sets chapter to use Solutions to odd numbered problems are in the back of the book. These demonstrate what "showing" actually is! Two well-kept public secrets "Show" Docsity.com

P(n) for all integers n>=1. If P(1) and P(k)→P(k+1), then Induction: To do problem of size n, do a problem of size n-1 (or perhaps two problems of size n/2). Recursion: How are these related? Induction and Recursion Docsity.com

The proof of correctness for a recursive program is inductive! In other words Docsity.com

Sum of sequences Number of subsets Some "famous" inductive proofs you should know Docsity.com

Application: what is the order of the runtime for $pairs++ if $a[$i] == $a[$j]; for ($j=$i; $j<@a; $j++) { } for ($i=0; $i<@a-1; $i++) { } Answer: O(1+2+3+…+n-1) = O(n(n-1)/2) = O(n 2 ). Application: testing pairs Docsity.com

Theorem: The number of subsets of a finite set S of |S|=n elements is 2n. Proof by induction: Basis: n=0, S=φ, number of subsets is 1 = 2^0. Number of subsets Docsity.com

(P(1) ^ P(k)→P(k+1)) → Regular induction: Strong induction: (P(1) ^ If P(1) is true, and the fact that all of P(1)…P(k) are true implies that P(k+1) is true, then P(k) is true for all integers >= 1 Strong Induction Docsity.com