190 likes | 409 Views
Homogenious Recurrence Relations. Steps for solving homogeneous linear recurrence relation: . Ex1) Doubling Hamster Population. Every year Stephanie’s hamster population doubles. She started with 6 hamsters. How many hamsters does she have after 7 years? After n years?.
E N D
Ex1) Doubling Hamster Population • Every year Stephanie’s hamster population doubles. She started with 6 hamsters. How many hamsters does she have after 7 years? After n years?
Ex2) Compound Interest • A person invests $1000 at 12 % interest compounded annually. Find the amount at the end of n years using a recurrence relation and initial conditions.
Ex3) Second-Order Linear Recurrence Relation Solve the recurrence relation .
EX4) Fibonacci Relation (Climbing Stairs) • An elf has a staircase of n stairs to climb. Each step it takes can cover either 1 stair or 2 stairs. • Find a recurrence relation for the number of different ways for the elf to ascent the n-staircase.
Ex5)Dividing the Plane • Suppose we draw n straight lines on a piece of paper so that every pair of lines intersect, but no three lines intersect at a point. • The recurrence relation for the number of regions into which these n lines divide the plane is
Ex6)Tower of Hanoi • There are 3 pegs mounted on a board and n disks of various sizes with holes in their centers. Initially the disks are stacked from the largest to the smallest on one peg. • The goal is to move the entire tower to another peg. The rule is • You can move only one disk at a time. • You can not place a larger disk on a smaller one. • The recurrence relation is