00:01
Worst case means you never hit the key early so you keep recursing until the subarray size becomes one.
00:10
So why the recurrence first is w of n equals 1 plus w of the ceiling of n over 2.
00:24
If one called a binary search when n is greater than 1, you do one main step.
00:30
You'd compute the mid and compare it and decide if it's left or right and then you recourse on one half of the array.
00:36
The worst case is you always recourse into the larger half.
00:41
If n is equal to 2k being even halves are size k, and k is going to be the result in the largest being k, the ceiling of n over 2.
00:55
If n is 2k plus 1 or odd, halves are size k and k plus 1, so the largest is k plus 1 equals the ceiling of n over 2.
01:04
So we'll say when n is greater than 1, w of 1 is 1...