strong
play

Strong assuming all of P(0), P(1), , P(n) Induction (instead of - PDF document

2/23/12 Strong Induction Prove P(0). Then prove P(n+1) Strong assuming all of P(0), P(1), , P(n) Induction (instead of just P(n)). Conclude m.P(m) Albert R Meyer February 24, 2012 lec


  1. 2/23/12 ¡ �������� Strong Induction Prove P(0). Then prove P(n+1) Strong assuming all of P(0), P(1), …, P(n) Induction (instead of just P(n)). Conclude ∀ m.P(m) Albert R Meyer February 24, 2012 lec 3F.1 Albert R Meyer February 24, 2012 lec 3F.2 Postage by Strong Induction Postage by Strong Induction available stamps: available stamps: 5¢ 3¢ 5¢ 3¢ Thm: Get any amount ≥ 8¢ Thm: Get any amount ≥ 8¢ By strong induction with hyp: base case P(0): make 0 + 8¢ P(n) ::= can form n + 8¢. Albert R Meyer February 24, 2012 lec 3F.3 Albert R Meyer February 24, 2012 lec 3F.4 Postage by Strong Induction Postage by Strong Induction available stamps: available stamps: 5¢ 3¢ 5¢ 3¢ Thm: Get any amount ≥ 8¢ Thm: Get any amount ≥ 8¢ inductive step: inductive step: Assume m+8¢ for n ≥ m ≥ 0. Assume all from 8 to n+8¢. Albert R Meyer February 24, 2012 lec 3F.5 Albert R Meyer February 24, 2012 lec 3F.6 1 ¡ ��

  2. 2/23/12 ¡ �������� Postage by Strong Induction Postage by Strong Induction inductive step cases: available stamps: n=0, 0+9¢ = 5¢ 3¢ Thm: Get any amount ≥ 8¢ inductive step: Assume all from 8 to n+8¢. n=1, 1+9¢ = Prove can get n n+9¢ (n+1) +9¢ + , for n ≥ 0 , for 8¢ n ≥ 0 Albert R Meyer February 24, 2012 lec 3F.7 Albert R Meyer February 24, 2012 lec 3F.8 Postage by Strong Induction Postage by Strong Induction We conclude by strong so by hypothesis n ≥ 2, induction that, can get (n-2)+8¢ using 3¢ and 5¢ stamps, + ¡ = n+9¢ n + 8¢ postage can be �� formed for all n ≥ 0. 3¢ (n-2)+8¢ Albert R Meyer February 24, 2012 lec 3F.9 Albert R Meyer February 24, 2012 lec 3F.10 Analyzing the Stacking Game Unstacking game Claim: Every way of unstacking Start: a stack of boxes a b a+b n blocks gives the same score: Move: split any stack into two of sizes a,b > 0 n(n -1) (n-1)+(n-2)+  +1 = Scoring: a b points 2 Keep moving: until stuck Overall score: sum of move scores Albert R Meyer February 24, 2012 lec 3F.11 Albert R Meyer February 24, 2012 lec 3F.12 � ¡ ��

  3. 2/23/12 ¡ �������� Proving the Claim by Induction Analyzing the Game Claim: Starting with size n stack, Base case n = 0: final score will be 0(0 − 1) = score = 0 n(n -1) 2 2 Proof: by Strong induction with Claim(0) is Claim(n) as hypothesis Albert R Meyer February 24, 2012 lec 3F.13 Albert R Meyer February 24, 2012 lec 3F.14 lec 4W.14 Proving the Claim by Induction Proving the Claim by Induction Inductive step. Inductive step. Assume for Case n+1 = 1. verify for 1-stack: stacks ≤ n, and prove C(n+1): = 1(1 -1) score = 0 (n + 1)n (n+1)-stack score = 2 2 C(1) is Albert R Meyer February 24, 2012 lec 3F.15 Albert R Meyer February 24, 2012 lec 3F.16 Proving the Claim by Induction Proving the Claim by Induction Inductive step. by strong induction: Case n+1 > 1. Split n+1 into an a(a -1) a-stack score = a-stack and b-stack, 2 where a + b = n +1. b(b -1) b-stack score = ( a + b )-stack score = ab + 2 a-stack score + b-stack score Albert R Meyer February 24, 2012 lec 3F.17 Albert R Meyer February 24, 2012 lec 3F.18 � ¡ ��

  4. 2/23/12 ¡ �������� Proving the Claim by Induction total ( a + b )-stack score = a(a -1) b(b -1) ab + + = 2 2 (a + b)((a + b) -1) (n + 1)n = 2 2 so C(n+1) is We’re done! Albert R Meyer February 24, 2012 lec 3F.19 � ¡ ��

  5. MIT OpenCourseWare http://ocw.mit.edu 6.042J / 18.062J Mathematics for Computer Science Spring 20 15 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend