Placement AptitudeVery hardProduct company OA · CAT level

What is the minimum value of f(x) = |x − 1| + |2x − 5| + |4x − 18| over all real x?

  1. A. 9.5
  2. B. 3.5
  3. C. 7.5
  4. D. 28/3

Correct answer: C. 7.5

f is piecewise linear with corners at 1, 2.5 and 4.5; its slope is −7, −5, −1 and then +7, so it falls until x = 4.5 and the minimum is f(4.5) = 3.5 + 4 + 0 = 7.5. The coefficients act as weights 1, 2, 4, so the minimum sits at the weighted median: the middle corner gives f(2.5) = 9.5, the mean 8/3 gives 28/3, and dropping the coefficients (|x − 2.5|, |x − 4.5|) gives 3.5.

More Advanced Quantitative Ability (Placement) questions

Exams that ask this topic