11 - Recurrence Relations - 7.1

ucla | MATH 61 | 2022-10-23T16:26


Table of Contents

Recall

Notes

Examples

  • e.g. Sn=5+(n1)3,n1
    • i.e. 5, 8, 11, 14, 17, …
    • S1=5
    • S2=5+3=S1+3
    •  the recurrence relation is defined to be:
    • Sn=Sn1+3,n2,S1=5
  • e.g. Fibonacci
    • fi,i1: 1, 1, 2, 3, 5, 8, 13, 21, …
    • recurrence relation:
    • fn=fn1+fn2,n3,f1=f2=1
  • e.g. $S_n={\text{n-bit strings S}\text{S does not contain pattern 111}}$
  • e.g. Tower of Hanoi
    • have n discs decreasing in diameter stacked on one of 3 pegs
    • Let Cn= # of moves to move all discs to another peg where a larger disc can never be placed atop a smaller disc
    • recurrence relation
    • Cn=2Cn1+1,n>1,c1=1

Big Ideas

  • recurrence relation
    • on a sequence a0,
    • is an equation that relates an in terms of a0,,an1
    • I.e. the initial conditions for the sequence are provided values for finitely many terms of a sequence

Lecture

📌

**SUMMARY
**