1 / 12

Proofs by Counterexample & Contradiction

Proofs by Counterexample & Contradiction. There are several ways to prove a theorem: Counterexample: By providing an example of in which the theorem does not hold , you prove the theory to be false .

terris
Download Presentation

Proofs by Counterexample & Contradiction

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Proofs by Counterexample & Contradiction There are several ways to prove a theorem: • Counterexample: • By providing an example of in which the theorem does not hold, you prove the theory to be false. • For example: All multiples of 5 are even. However 3x5 is 15, which is odd. The theorem is false. • Contradiction: • Assume the theorem to be true. If the assumption implies that some known property is false, then the theorem CANNOT be true.

  2. Proof by Induction • Proof by induction has three standard parts: • The first step is proving a base case, that is, establishing that a theorem is true for some small value(s), this step is almost always trivial. • Next, an inductive hypothesis is assumed. Generally this means that the theorem is assumed to be true for all cases up to some limit n. • Using this assumption, the theorem is then shown to be true for the next value, which is typically n+1 (induction step). This proves the theorem (as long as n is finite).

  3. Example: Proof By Induction • Claim: S(n) is true for all n >= k • Basis: • Show formula is true when n = k • Inductive hypothesis: • Assume formula is true for an arbitrary n • Induction Step: • Show that formula is then true for n+1

  4. Induction Example: Gaussian Closed Form • Prove 1 + 2 + 3 + … + n = n(n+1) / 2 • Basis: • If n = 0, then 0 = 0(0+1) / 2 • Inductive hypothesis: • Assume 1 + 2 + 3 + … + n = n(n+1) / 2 • Step (show true for n+1): 1 + 2 + … + n + n+1 = (1 + 2 + …+ n) + (n+1) = n(n+1)/2 + n+1 = [n(n+1) + 2(n+1)]/2 = (n+1)(n+2)/2 = (n+1)(n+1 + 1) / 2

  5. Induction Example: Geometric Closed Form • Prove • a0 + a1 + … + an = (an+1 - 1)/(a - 1) for all a  1 • Basis: show that a0 = (a0+1 - 1)/(a - 1) a0 = 1 = (a1 - 1)/(a - 1) = 1 • Inductive hypothesis: • Assume a0 + a1 + … + an = (an+1 - 1)/(a - 1) • Step (show true for n+1): a0 + a1 + … + an+1 = a0 + a1 + … + an + an+1 = (an+1 - 1)/(a - 1) + an+1 = (an+1+1 - 1)/(a - 1)

  6. Limits • lim [f(n) / g(n)] = 0 Þ f(n)Îo(g(n)) n • lim [f(n) / g(n)] <  Þ f(n)ÎO(g(n)) n • 0 < lim [f(n) / g(n)] <  Þ f(n)ÎQ(g(n)) n • 0 < lim [f(n) / g(n)]Þ f(n)Î W(g(n)) n • lim [f(n) / g(n)] =  Þ f(n)Îw(g(n)) n

  7. Useful Facts • For a ³0, b > 0, lim n( lgan / nb ) = 0, so lgan = o(nb), and nb = w(lgan ) • lg(n!) = (n lg n)

  8. Examples A B • log3(n2)log2(n3) • nlg43lg n • lg2nn1/2

  9. Examples A B • log3(n2)log2(n3) A (B) logba = logca / logcb; A = 2lgn / lg3, B = 3lgn, A/B =2/(3lg3) • nlg43lg n • lg2nn1/2

  10. Examples A B • log3(n2)log2(n3) A (B) logba = logca / logcb; A = 2lgn / lg3, B = 3lgn, A/B =2/(3lg3) • nlg43lg n A w(B) alog b =blog a; B =3lg n=nlg 3; A/B =nlg(4/3)  as n • lg2nn1/2

  11. Examples A B • log3(n2)log2(n3) A (B) logba = logca / logcb; A = 2lgn / lg3, B = 3lgn, A/B =2/(3lg3) • nlg43lg n A w(B) alog b =blog a; B =3lg n=nlg 3; A/B =nlg(4/3)  as n • lg2nn1/2 A o (B) lim( lgan / nb ) = 0 (here a = 2 and b = 1/2)  A o (B) n

  12. End of Chapter 3

More Related