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?
- A. 7/3
- B. 3
- C. 9/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.
Practise more Engineering Mathematics (GATE) questionsEngineering Mathematics (GATE): notes and key points
More Engineering Mathematics (GATE) questions
- X₁, X₂, X₃ are independent exponential random variables, each with mean 1. What is the variance of max(X₁, X₂, X₃)?
- Let A be the 7 × 7 matrix with entries Aᵢⱼ = gcd(i, j) for 1 ≤ i, j ≤ 7. What is det(A)?
- A fair coin is tossed repeatedly. What is the expected number of tosses until the pattern HHTHH first appears?
- A fair coin is tossed repeatedly until either HTH or THH appears as three consecutive results. What is the probability that HTH appears…
- A fair die is rolled 10 times. What is the expected number of distinct faces that appear (correct to 4 decimal places)?
- A gambler starts with 3 rupees and bets 1 rupee at a time, winning each bet with probability 0.6 and losing with probability 0.4…