Understanding “median of medians” algorithm
The problem is in the step where you say to find the true median of the medians. In your example, you had these medians: 50 45 40 35 30 25 20 15 10 The true median of this data set is 30, not 15. You don’t find this median by splitting the groups into blocks … Read more