00:01
Hey, it's clarso enumerate.
00:02
So we named the algorithm sort first four.
00:07
An input is a list of real numbers that contains at least one number.
00:12
So the procedure of the sort sort first four is a sub 1, a sub 2 all the way till a sub 10.
00:19
For real numbers, for n is bigger or equal to 2.
00:23
So we're going to compare the second element with the first element and the third with the first two.
00:28
And the fourth with the first three.
00:32
So for i to be defined as two, to min of four comma three, for j is defined to be one, two i minus one.
00:56
So we searched the place where the i's element should be inserted and then insert the i's element accordingly.
01:02
So if a sub one a sub i excuse me is less than a sub j then the temp is defined to be a sub i for k is defined to be j to i minus one and a sub k plus one is defined to be a sub k and a sub k plus one is defined to be a sub k and a sub j is to find to be temp.
01:43
So we're going to return the list of numbers and we get a sub 1, a sub 2, e sub 3, and all the way till a sub n...