Question: Let M3() be the function that takes as input an array B and computes the median of the |B|/3 contiguous groups of size 3

Let M3() be the function that takes as input an array B and computes the median of the |B|/3 contiguous groups of size 3 for B. Specifically, for an array B [b1,..., bn] of length n, we have that = M3(B) = [median(b1, b2, b3), . ,..., median (bn-2, bn1, bn)] We will call an array A of length n a bad array if the number of elements in A greater than median(M3(A)) is at least 2 Give a bad array of length n, where n = statement. 1. 3 for some integer i > 2. Prove your
Step by Step Solution
There are 3 Steps involved in it
Lets consider an array A of length n 3 where n is an integer great... View full answer
Get step-by-step solutions from verified subject matter experts
