Engineering MathematicsVery hardGATE CSE

A uniformly random permutation of 9 distinct numbers is written in a row. An interior element (not first or last) is a local maximum if it is larger than both neighbours. What is the expected number of local maxima?

  1. A. 7/3
  2. B. 3
  3. C. 9/4
  4. D. 2

Correct answer: A. 7/3

Each of the 7 interior positions is a local maximum with probability 1/3 (the largest of 3 values is in the middle). By linearity, 7/3.

More Engineering Mathematics (GATE) questions

Exams that ask this topic