235Ch5-1Induction离散数学英文版PPT.ppt

  1. 1、本文档共34页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
235Ch5-1Induction离散数学英文版PPT

Mathematical Induction is Valid Prove that Mathematical Induction is Valid We prove by contradiction: If P(1) is true and P(k) ? P(k+1) is true (for all k ? 1), but there is a smallest n1 (by Well-Ordering Property) such that when n = n1, P(n1) is false but P(n1 – 1) is true By assumption, P(n1 – 1) ? P(n1) is true (for all k ? 1). By modus ponens law, P(n1) is true. This is a contradiction! Induction for Algorithm Correctness Prove that the Sum Algorithm is correct, or sum = a1,+ a2 + ?+ an procedure Sum(a1, ?, an: list, n: positive Integer) sum := 0 for i: = 1 to n sum := sum + ai endfor return sum { sum contains a1,+ a2 + ?+ an} Exercises #7 4.1, P329: 3, 4, 5, 19 4.2, P341: 3, 5 Decide how many terms in H2^(k+1) after 1/2k: there are 2k+1 – 2k = 2k terms * * * * The implication is that, if the smaller of the two stamps is m (3 here), you just need to verify m scenarios starting from the basis (18, 19, 20 here). Because from 18 to 21, you just add 3. From 19 to 22, you just add 3, …, keep going to get any number. * We can understand the second part by letting k =1, 2, … and applying modus ponens k-1 times. Mathematical induction can be applied k-1 times to receive all the premises P(1), P(2), … P(k-1). * Let a = 10 and d = 3. Then for all 10 – 3q =0: q = 3, 2, 1, 0, -1, -2, -3, … S = {1, 4, 7, 10, 13, 16, 19, …} q in S (or r) 3 1 2 4 1 7 0 10 -1 13 -2 16 -3 19 … … * If r – r’ 0, it is not divisible by –d. If it is 0 it is not divisible by d! * * Induction on n. 1 = 1. Assume n = k is correct ? prove n = k+1 is also correct * Chapter 5: Induction and Recursion (Part 1) Elements of Discrete Structures Climbing an Infinite Ladder We can reach step 1. … If we can reach step k, we can reach step k + 1. Then, we can reach any step n Mathematical Induction For a propositional function P(n) and any integers n ≥ b, b is a starting value of n in N (Basis Step) we prove: P(b) is true (Inductive Step) and we prove P(k) ? P(k+1) for any positive integ

文档评论(0)

shuwkb + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档