Guest User

Untitled

a guest
Sep 21st, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. i ← 0
  2. while i < n+1
  3. i ← i+1
  4.  
  5. i ← 0 |
  6. while i < n |
  7. i ← i+1 | <--- i = f(n) = n once the loop completes, by the induction hypothesis
  8.  
  9. i ← i+1 <--- i = f(n)+1 = n+1, which proves the induction step f(n+1) = n+1
Add Comment
Please, Sign In to add comment