00:01
Okay, so for this problem, we are given that rn represents the number of moves used by the frames stewart algorithm.
00:08
Okay, we want to choose integer k to be the smallest integer such that n being the number of disks is less than equal to k times k plus one divided by two.
00:30
So, we want to prove that r of n, again, being the number of moves, is equal to 2 times r of n minus k, plus 2 to the k minus 1.
01:00
And additionally, we want to look at our initial condition, so that no disks requires no moves, and that having one disk requires one move.
01:12
Okay, so we start this proof off with the base case, or base step.
01:19
We'll take where we have zero disks.
01:21
So if we have our four pegs and no disks on it, we cannot do any moves to solve the puzzle, right? the puzzle is solved just in existence.
01:31
So r0 is equal to zero.
01:35
Okay, and then when we have one disc, to get that one disk to the fourth peg requires one move, right? from peg one to peg four.
01:49
So in the case where we have just one disk, it requires one move to solve.
01:54
And so those are the base steps.
01:58
It feels like just solving initial conditions.
02:01
Okay, then for recurrence, our recurrence step here, we consider where we have n disks.
02:16
Okay, we kind of break it down into, three broader states, right? so first, we're going to move the n minus k smallest disks...