00:01
Hi, in this question we are asked to show that if we have n distinct real numbers, call them a1 to an, we need exactly n minus 1 multiplication to compute their product, regardless of how we put the parentheses on and so on.
00:25
Um like no matter how we put these is going to have n minus one multiplication and it's rather intuitive already that we're going to use n minus one multiplication but for formality sake let's do strong induction on this so first basic step we have n equal to one then it is only is in itself, right? we need no multiplication at all, so it's zero, which is 1 minus 1.
01:08
So the formula is correct.
01:11
Next, suppose it is true.
01:16
The formula is true for k from 1 to all the way to n.
01:21
We want to show that it's true for in plus 1 as well.
01:25
And this is not a complete version.
01:33
But it will give you a rough idea of what to do.
01:37
So when we have a 1 to a .n and we add a new one, a .n plus one, we can, you can think of finding a product as the process as first you pair this new one with some of the ais.
02:02
And then we consider this product of the two.
02:07
As one number one unit then the the rest of the process right after you pair them going to be finding a product of a 1 a 2 up to a n excluding ai and this new thing ai times a n plus 1 which is n objects there are n objects so using inductive hypothesis you're going to need n minus 1 multiplication for this but we also have to add one more multiplication which is the one that buy these two together so all in all all we will have n minus one from the like the latter process and one from the first process which we pair them up which is n so this is for n plus one numbers so this is for n plus one numbers so so is the formula right is in plus one minus one.
03:20
Yeah so that's how you do it when i said it's not complete because you have you can have all the choice as well you may have a situation where the product happened like we use up a 1 to a n and then we add the last one later or all or we add a n plus 1 in any step in the process, any step at all, right? because we have the freedom of choosing parentheses...